0_0_24147480_866.cpp:1:9: error: #include expects "FILENAME" or <FILENAME>
#include
^
0_0_24147480_866.cpp:2:11: error: '::main' must return 'int'
void main()
^
0_0_24147480_866.cpp: In function 'int main()':
0_0_24147480_866.cpp:5:21: error: 'scanf' was not declared in this scope
while (scanf('%d',&n) != EOF)
^
0_0_24147480_866.cpp:5:26: error: 'EOF' was not declared in this scope
while (scanf('%d',&n) != EOF)
^
0_0_24147480_866.cpp:8:1: error: expected ';' before '{' token
{
^
0_0_24147480_866.cpp:8:1: error: expected primary-expression before '{' token
0_0_24147480_866.cpp:8:1: error: expected ')' before '{' token
0_0_24147480_866.cpp:13:18: error: 'printf' was not declared in this scope
printf('%d\n',sum);
^
|