0_0_17016405_14842.cpp: In function 'int main()':
0_0_17016405_14842.cpp:5:23: error: 'scanf' was not declared in this scope
while(~scanf("%d", &n) && n)
^
0_0_17016405_14842.cpp:7:32: error: 'printf' was not declared in this scope
printf("%d %d\n", n, sum[n-1]);
^
|