Borderou de evaluare (job #651170)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Puteri2 (clasa a 8-a) | Compilator | cpp-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 25 mai 2022 17:04:44 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:1:1: error: 'include' does not name a type
1 | include <stdio.h>
| ^~~~~~~
main.cpp: In function 'int main()':
main.cpp:6:5: error: 'FILE' was not declared in this scope
6 | FILE *fin, *fout;
| ^~~~
main.cpp:3:1: note: 'FILE' is defined in header '<cstdio>'; did you forget to '#include <cstdio>'?
2 | #include <stdlib.h>
+++ |+#include <cstdio>
3 |
main.cpp:6:11: error: 'fin' was not declared in this scope
6 | FILE *fin, *fout;
| ^~~
main.cpp:6:17: error: 'fout' was not declared in this scope
6 | FILE *fin, *fout;
| ^~~~
main.cpp:9:11: error: 'fopen' was not declared in this scope
9 | fin = fopen("puteri2.in", "r");
| ^~~~~
main.cpp:9:11: note: 'fopen' is defined in header '<cstdio>'; did you forget to '#include <cstdio>'?
main.cpp:10:5: error: 'fscanf' was not declared in this scope
10 | fscanf(fin, "%d", &n);
| ^~~~~~
main.cpp:17:5: error: 'fclose' was not declared in this scope
17 | fclose(fin);
| ^~~~~~
main.cpp:30:5: error: 'fprintf' was not declared in this scope
30 | fprintf(fout, "%llu", sum);
| ^~~~~~~