Borderou de evaluare (job #742488)

Utilizator avatar Costache_Andrei_paul Costache Andrei Paul Costache_Andrei_paul IP ascuns
Problemă Apropiate1 (clasa a 6-a) Compilator c-32
Rundă Arhiva de probleme Status evaluat
Dată 4 nov. 2023 15:03:43 Scor 0

Raport evaluator

Eroare de compilare: main.c:3:1: error: unknown type name 'using' 3 | using namespace std; | ^~~~~ main.c:3:17: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'std' 3 | using namespace std; | ^~~ main.c:5:6: error: variably modified 'ciur' at file scope 5 | char ciur[MAXN]; | ^~~~ main.c: In function 'main': main.c:33:5: error: 'j' undeclared (first use in this function) 33 | j=nr; | ^ main.c:33:5: note: each undeclared identifier is reported only once for each function it appears in main.c:45:27: warning: format '%d' expects argument of type 'int *', but argument 3 has type 'int' [-Wformat=] 45 | fscanf(fin, "%d", c1); | ~^ ~~ | | | | | int | int * main.c:48:27: warning: format '%d' expects argument of type 'int *', but argument 3 has type 'int' [-Wformat=] 48 | fscanf(fin, "%d", c2); | ~^ ~~ | | | | | int | int * main.c:52:23: warning: format '%d' expects argument of type 'int *', but argument 3 has type 'int' [-Wformat=] 52 | fscanf(fin, "%d", c1); | ~^ ~~ | | | | | int | int * main.c:55:23: warning: format '%d' expects argument of type 'int *', but argument 3 has type 'int' [-Wformat=] 55 | fscanf(fin, "%d", c2); | ~^ ~~ | | | | | int | int * main.c:19:11: warning: unused variable 'fout' [-Wunused-variable] 19 | FILE *fout=fopen("apropiate1.out", "w"); | ^~~~ main.c:22:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 22 | fscanf(fin, "%d%d", &n, &c); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ main.c:25:9: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 25 | fscanf(fin, "%d", &nr); | ^~~~~~~~~~~~~~~~~~~~~~ main.c:45:13: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 45 | fscanf(fin, "%d", c1); | ^~~~~~~~~~~~~~~~~~~~~