0_0_27387602_3921.cpp:3:11: error: '::main' must return 'int'
void main()
^
In file included from 0_0_27387602_3921.cpp:1:0:
0_0_27387602_3921.cpp: In function 'int main()':
0_0_27387602_3921.cpp:6:18: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
while(gets(str)!=EOF)
^
0_0_27387602_3921.cpp:7:4: error: invalid conversion from 'char*' to 'char' [-fpermissive]
{ p=str;
^
0_0_27387602_3921.cpp:9:10: error: invalid conversion from 'char*' to 'char' [-fpermissive]
for(p=str+1;p!='\0';p++)
^
|