0_0_39642924_21927.cpp: In function 'int main()':
0_0_39642924_21927.cpp:3:12: error: 'scanf' was not declared in this scope
3 | while (scanf("%d", &N) == 1) { // Read N from the line
| ^~~~~
0_0_39642924_21927.cpp:14:9: error: 'printf' was not declared in this scope
14 | printf("%d\n", sum);
| ^~~~~~
0_0_39642924_21927.cpp:1:1: note: 'printf' is defined in header '<cstdio>'; did you forget to '#include <cstdio>'?
+++ |+#include <cstdio>
1 | int main() {
|