0_0_35607739_5392.cpp:1:11: error: '::main' must return 'int'
void main()
^
0_0_35607739_5392.cpp: In function 'int main()':
0_0_35607739_5392.cpp:4:21: error: 'scanf' was not declared in this scope
while(scanf("%d",&n)!=EOF){
^
0_0_35607739_5392.cpp:4:24: error: 'EOF' was not declared in this scope
while(scanf("%d",&n)!=EOF){
^
0_0_35607739_5392.cpp:7:23: error: 'printf' was not declared in this scope
printf("%d\n\n",sum);
^
|