Borderou de evaluare (job #2965159)
Utilizator | Fares Yusuf YusyBoss | Data | 14 ianuarie 2023 15:54:17 |
---|---|---|---|
Problema | Sum Max | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:11:14: error: conflicting declaration 'std::vector<int> mat [2001]'
11 | vector <int> mat[NMAX + 1];
| ^~~
main.cpp:7:5: note: previous declaration as 'int mat [2001][2001]'
7 | int mat[NMAX + 1][NMAX + 1];
| ^~~
main.cpp: In function 'int main()':
main.cpp:71:12: error: request for member 'push_back' in 'mat[i]', which is of non-class type 'int [2001]'
71 | mat[i].push_back(0);
| ^~~~~~~~~
main.cpp:73:14: error: request for member 'push_back' in 'mat[i]', which is of non-class type 'int [2001]'
73 | mat[i].push_back(x);
| ^~~~~~~~~
main.cpp:73:24: error: 'x' was not declared in this scope
73 | mat[i].push_back(x);
| ^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !