Borderou de evaluare (job #776296)

Utilizator avatar superbibi victor hudea superbibi IP ascuns
Problemă Numere1 (clasa a 5-a) Compilator cpp-32
Rundă Arhiva de probleme Status evaluat
Dată 25 apr. 2024 19:17:10 Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'int main()': main.cpp:25:1: error: 'FILE' was not declared in this scope 25 | FILE* f = fopen("numere1.in", "r"); | ^~~~ main.cpp:1:1: note: 'FILE' is defined in header '<cstdio>'; did you forget to '#include <cstdio>'? +++ |+#include <cstdio> 1 | int este_prim(int n) { main.cpp:25:7: error: 'f' was not declared in this scope 25 | FILE* f = fopen("numere1.in", "r"); | ^ main.cpp:25:11: error: 'fopen' was not declared in this scope 25 | FILE* f = fopen("numere1.in", "r"); | ^~~~~ main.cpp:25:11: note: 'fopen' is defined in header '<cstdio>'; did you forget to '#include <cstdio>'? main.cpp:29:1: error: 'fscanf' was not declared in this scope 29 | fscanf(f, "%d", &n); | ^~~~~~ main.cpp:37:1: error: 'fclose' was not declared in this scope 37 | fclose(f); | ^~~~~~ main.cpp:39:7: error: 'g' was not declared in this scope 39 | FILE* g = fopen("numere1.out", "w"); | ^ main.cpp:40:1: error: 'fprintf' was not declared in this scope 40 | fprintf(g, "%d", contor); | ^~~~~~~