Borderou de evaluare (job #712236)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Chibrituri (clasa a 5-a) | Compilator | cpp-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 27 mar. 2023 15:04:24 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:14:10: error: conflicting declaration 'bool stare'
14 | bool stare=false;
| ^~~~~
main.cpp:9:35: note: previous declaration as 'int stare'
9 | { int ora,min,c1,c2,c3,c4,nv,no,stare,p1,p2,p3,p4,con,m1,m2,m3,m4;
| ^~~~~
main.cpp:16:23: warning: range-based 'for' loops with initializer only available with '-std=c++20' or '-std=gnu++20'
16 | for(min=0;min<60:min++) {
| ^~~
main.cpp:16:29: error: expected ';' before ':' token
16 | for(min=0;min<60:min++) {
| ^
| ;
main.cpp:16:26: warning: statement has no effect [-Wunused-value]
16 | for(min=0;min<60:min++) {
| ~~~^~~
main.cpp:38:5: error: expected primary-expression before '}' token
38 | }
| ^
main.cpp:37:14: error: expected ';' before '}' token
37 | }
| ^
| ;
38 | }
| ~
main.cpp:38:5: error: expected primary-expression before '}' token
38 | }
| ^
main.cpp:37:14: error: expected ')' before '}' token
37 | }
| ^
| )
38 | }
| ~
main.cpp:16:16: note: to match this '('
16 | for(min=0;min<60:min++) {
| ^
main.cpp:38:5: error: expected primary-expression before '}' token
38 | }
| ^
main.cpp:9:17: warning: unused variable 'c1' [-Wunused-variable]
9 | { int ora,min,c1,c2,c3,c4,nv,no,stare,p1,p2,p3,p4,con,m1,m2,m3,m4;
| ^~
main.cpp:9:20: warning: unused variable 'c2' [-Wunused-variable]
9 | { int ora,min,c1,c2,c3,c4,nv,no,stare,p1,p2,p3,p4,con,m1,m2,m3,m4;
| ^~
main.cpp:9:23: warning: unused variable 'c3' [-Wunused-variable]
9 | { int ora,min,c1,c2,c3,c4,nv,no,stare,p1,p2,p3,p4,con,m1,m2,m3,m4;
| ^~