Borderou de evaluare (job #584886)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Patrate 1 (clasa a 6-a) | Compilator | cpp-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 7 mar. 2021 09:28:11 | 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:3: error: 'FILE' was not declared in this scope
6 | FILE *fin, *fout;
| ^~~~
main.cpp:1:1: note: 'FILE' is defined in header '<cstdio>'; did you forget to '#include <cstdio>'?
+++ |+#include <cstdio>
1 | include <stdio.h>
main.cpp:6:9: error: 'fin' was not declared in this scope
6 | FILE *fin, *fout;
| ^~~
main.cpp:6:15: error: 'fout' was not declared in this scope
6 | FILE *fin, *fout;
| ^~~~
main.cpp:9:9: error: 'fopen' was not declared in this scope
9 | fin = fopen("patrate1.in", "r");
| ^~~~~
main.cpp:9:9: note: 'fopen' is defined in header '<cstdio>'; did you forget to '#include <cstdio>'?
main.cpp:10:3: error: 'fscanf' was not declared in this scope
10 | fscanf(fin, "%d", &n);
| ^~~~~~
main.cpp:11:3: error: 'fgetc' was not declared in this scope
11 | fgetc( fin );
| ^~~~~
main.cpp:16:7: error: 'sp' was not declared in this scope
16 | sp[i][j] = nr + sp[i - 1][j] + sp[i][j - 1] - sp[i - 1][j - 1];
| ^~
main.cpp:20:3: error: 'fclose' was not declared in this scope
20 | fclose( fin );
| ^~~~~~
main.cpp:27:17: error: 'sp' was not declared in this scope
27 | sum = sp[i + l - 1][j + l - 1];
| ^~
main.cpp:37:3: error: 'fprintf' was not declared in this scope
37 | fprintf(fout, "%d", sol);
| ^~~~~~~