0_0_19892886_27462.cpp:3:11: error: '::main' must return 'int' void main() ^ 0_0_19892886_27462.cpp: In function 'int main()': 0_0_19892886_27462.cpp:14:13: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] if(s[i]==" ") ^