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