Borderou de evaluare (job #794397)

Utilizator avatar MihneaDragomir Mihnea Dragomir MihneaDragomir IP ascuns
Problemă Melci (clasa a 6-a) Compilator c-32
Rundă Arhiva de probleme Status evaluat
Dată 13 nov. 2024 00:43:39 Scor 0

Raport evaluator

Eroare de compilare: main.c: In function 'main': main.c:5:5: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'int' 5 | int n, p, timp_andrei, timp_mihai, distanta_andrei, distanta_mihai, secunda; | ^~~ main.c:8:27: error: 'n' undeclared (first use in this function) 8 | fscanf(fin, "%d %d", &n, &p); | ^ main.c:8:27: note: each undeclared identifier is reported only once for each function it appears in main.c:8:31: error: 'p' undeclared (first use in this function) 8 | fscanf(fin, "%d %d", &n, &p); | ^ main.c:11:5: error: 'timp_andrei' undeclared (first use in this function) 11 | timp_andrei = 2; | ^~~~~~~~~~~ main.c:12:5: error: 'timp_mihai' undeclared (first use in this function) 12 | timp_mihai = 3; | ^~~~~~~~~~ main.c:13:5: error: 'distanta_andrei' undeclared (first use in this function) 13 | distanta_andrei = p; | ^~~~~~~~~~~~~~~ main.c:14:5: error: 'distanta_mihai' undeclared (first use in this function) 14 | distanta_mihai = 0; | ^~~~~~~~~~~~~~ main.c:16:5: error: 'secunda' undeclared (first use in this function) 16 | secunda = 1; | ^~~~~~~ main.c:29:5: error: 'fout' undeclared (first use in this function) 29 | fout = fopen("melci.out", "w"); | ^~~~