Borderou de evaluare (job #698082)

Utilizator avatar DumitrescuA DumitrescuAndrei DumitrescuA IP ascuns
Problemă Tir (clasa a 7-a) Compilator cpp-32
Rundă Arhiva de probleme Status evaluat
Dată 22 feb. 2023 12:16:42 Scor 0

Raport evaluator

Eroare de compilare: main.cpp:7:5: error: expected primary-expression before 'int' 7 | int c,l; | ^~~ main.cpp:7:5: error: expected '}' before 'int' main.cpp:6:12: note: to match this '{' 6 | int sageata{ | ^ main.cpp:8:1: error: expected declaration before '}' token 8 | }sg[301]; | ^ main.cpp:8:2: error: 'sg' does not name a type 8 | }sg[301]; | ^~ main.cpp: In function 'int main()': main.cpp:17:13: error: 'sg' was not declared in this scope 17 | sg[j].l=lin; | ^~ main.cpp:31:20: error: 'sg' was not declared in this scope 31 | l1=sg[i].l-lin+1; | ^~ main.cpp:37:30: error: expected ';' before 'mt' 37 | mc=min(c1,c2) | ^ | ; 38 | ///minim total 39 | mt=min(mc,ml); | ~~