Borderou de evaluare (job #3338549)
| Utilizator | Data | 3 februarie 2026 20:58:48 | |
|---|---|---|---|
| Problema | Fractii | Status | done |
| Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
| Scor | 0 | ||
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:18:21: error: expected primary-expression before '=' token
18 | #define lgt = n+1;
| ^
main.cpp:20:15: note: in expansion of macro 'lgt'
20 | int a[lgt][lgt];
| ^~~
main.cpp:18:26: error: expected ']' before ';' token
18 | #define lgt = n+1;
| ^
main.cpp:20:15: note: in expansion of macro 'lgt'
20 | int a[lgt][lgt];
| ^~~
main.cpp:20:18: error: expected primary-expression before ']' token
20 | int a[lgt][lgt];
| ^
main.cpp:20:23: error: expected primary-expression before ']' token
20 | int a[lgt][lgt];
| ^
main.cpp:27:25: error: 'a' was not declared in this scope
27 | a[k][j] = 1;
| ^
main.cpp:35:30: error: 'a' was not declared in this scope
35 | s += a[i][j];
| ^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !
