0_0_16969937_11139.cpp: In function 'int main()': 0_0_16969937_11139.cpp:25:20: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] if(num<k) break; ^