0_0_18914265_8240.cpp: In function 'int main()': 0_0_18914265_8240.cpp:27:13: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] for(i=0;i<k;i++) ^