0_0_17070305_24548.cpp:2:11: error: '::main' must return 'int'
void main()
^
0_0_17070305_24548.cpp: In function 'int main()':
0_0_17070305_24548.cpp:5:21: error: 'n' was not declared in this scope
while((scanf("%d",&n)!=EOF)&&(n!=0))
^
0_0_17070305_24548.cpp:13:13: error: 'm' was not declared in this scope
sum=sum+m;
^
0_0_17070305_24548.cpp:17:1: error: expected '}' at end of input
}
^
0_0_17070305_24548.cpp:17:1: error: expected '}' at end of input
|