Those are actually warnings, not errors. And it means the compiler doesn't know what 'strtok' is, and because this is C, all undeclared function prototypes implicitly default to a prototype which returns int (resulting in those incorrect assignments, since the actual function was meant to return a char*).
The solution is to find the correct header for strtok. A quick google search tells me it's "string.h", so make sure you have included this file in your project, with:
Also, what are your compiler settings? Some particular combinations may produce false positives, in particular if you request extensions from the compiler via command-line argument, but don't set the appropriate macro, and others will just plain not work until you tell the compiler you want such and such function (if it's non-standard).
Edited by Bacterius, 20 January 2013 - 04:38 AM.
The slowsort algorithm is a perfect illustration of the multiply and surrender paradigm, which is perhaps the single most important paradigm in the development of reluctant algorithms. The basic multiply and surrender strategy consists in replacing the problem at hand by two or more subproblems, each slightly simpler than the original, and continue multiplying subproblems and subsubproblems recursively in this fashion as long as possible. At some point the subproblems will all become so simple that their solution can no longer be postponed, and we will have to surrender. Experience shows that, in most cases, by the time this point is reached the total work will be substantially higher than what could have been wasted by a more direct approach.
- Pessimal Algorithms and Simplexity Analysis