Main.cc: In function ‘int main()’: Main.cc:35:13: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] if(time==2) break; ^