0_0_39300439_14585.cpp: In function 'int main()':
0_0_39300439_14585.cpp:4:12: error: 'scanf' was not declared in this scope
4 | while(~scanf("%d",&n),n)
| ^~~~~
0_0_39300439_14585.cpp:12:9: error: 'printf' was not declared in this scope
12 | printf("%d\n",x);
| ^~~~~~
0_0_39300439_14585.cpp:1:1: note: 'printf' is defined in header '<cstdio>'; did you forget to '#include <cstdio>'?
+++ |+#include <cstdio>
1 | int main()
|