ISO C++ forbids comparison between pointer and integer [-fpermissive]
问题 The Code int cycle_length(int i, int j) { int cycleLength = 0; for (int k = i; k <= j; k++) { cout << algorithm(k) << endl; if (algorithm(k) > cycle_length) { cycleLength = algorithm(k); } } return cycleLength; } ISO C++ forbids comparison between pointer and integer [-fpermissive] I got this error in this line if ( algorithm(k) > cycle_length) . How is that, however, the same code works right in the main() ?? and what is this error mean ??? Added algorithm is a function take an integer input