0_0_25075278_26542.cpp:2:11: error: '::main' must return 'int' void main() ^ 0_0_25075278_26542.cpp: In function 'int main()': 0_0_25075278_26542.cpp:4:16: error: 'str' was not declared in this scope while(gets(str)) ^