Borderou de evaluare (job #860579)
| Utilizator |
|
IP | ascuns |
|---|---|---|---|
| Problemă | Teren2 (clasa a 6-a) | Compilator | cpp |
| Rundă | Arhiva de probleme | Status | evaluat |
| Dată | 21 mai 2026 10:24:46 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:36:13: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
36 | if (i == r && j == c)
| ^~
main.cpp:40:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
40 | if (dp[i][j] > laturaMaxima)
| ^~
main.cpp:42:15: error: 'else' without a previous 'if'
42 | } else {
| ^~~~
main.cpp:43:23: error: 'j' was not declared in this scope
43 | dp[i][j] = 0;
| ^
main.cpp:29:9: warning: unused variable 'raspunsCerinta2' [-Wunused-variable]
29 | int raspunsCerinta2 = 0;
| ^~~~~~~~~~~~~~~
main.cpp: At global scope:
main.cpp:48:5: error: expected unqualified-id before 'if'
48 | if (p == 1) {
| ^~
main.cpp:50:7: error: expected unqualified-id before 'else'
50 | } else if (p == 2) {
| ^~~~
main.cpp:52:7: error: expected unqualified-id before 'else'
52 | } else {
| ^~~~
main.cpp:56:5: error: expected unqualified-id before 'return'
56 | return 0;
| ^~~~~~
main.cpp:57:1: error: expected declaration before '}' token
57 | }
| ^