Borderou de evaluare (job #837212)
| Utilizator |
|
IP | ascuns |
|---|---|---|---|
| Problemă | Faleza (clasa a 6-a) | Compilator | cpp |
| Rundă | Arhiva de probleme | Status | evaluat |
| Dată | 16 oct. 2025 15:10:39 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:13:19: error: 'dp0' was not declared in this scope
13 | if (A0[0]==1) dp0 = 0; else dp0 = 1;
| ^~~
main.cpp:13:33: error: 'dp0' was not declared in this scope
13 | if (A0[0]==1) dp0 = 0; else dp0 = 1;
| ^~~
main.cpp:14:19: error: 'dp1' was not declared in this scope
14 | if (A1[0]==1) dp1 = 0; else dp1 = 1;
| ^~~
main.cpp:14:33: error: 'dp1' was not declared in this scope
14 | if (A1[0]==1) dp1 = 0; else dp1 = 1;
| ^~~
main.cpp:21:20: error: 'dp0' was not declared in this scope; did you mean 'ndp0'?
21 | int ndp0 = dp0 + c0;
| ^~~
| ndp0
main.cpp:22:17: error: 'dp1' was not declared in this scope
22 | int x = dp1 + c0+c1;
| ^~~
main.cpp:33:9: error: 'dp1' was not declared in this scope
33 | if (dp1 < dp0) fout << dp1 << endl;
| ^~~
main.cpp:33:15: error: 'dp0' was not declared in this scope
33 | if (dp1 < dp0) fout << dp1 << endl;
| ^~~