In file included from 0_0_16135767_17653.cpp:1:0: 0_0_16135767_17653.cpp: In function 'int main()': 0_0_16135767_17653.cpp:7:31: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] while(scanf("%d%d",&n,&k!=EOF)) ^