0_0_27012333_19430.cpp:1:10: error: #include expects "FILENAME" or <FILENAME>
#include
^
0_0_27012333_19430.cpp:2:11: error: '::main' must return 'int'
void main()
^
0_0_27012333_19430.cpp: In function 'int main()':
0_0_27012333_19430.cpp:5:21: error: 'scanf' was not declared in this scope
while(scanf("%d",&n)!=EOF)
^
0_0_27012333_19430.cpp:5:24: error: 'EOF' was not declared in this scope
while(scanf("%d",&n)!=EOF)
^
0_0_27012333_19430.cpp:18:24: error: 'printf' was not declared in this scope
printf("%d\n\n",sum);
^
0_0_27012333_19430.cpp:22:22: error: 'printf' was not declared in this scope
printf("%d\n",sum);
^
|