Borderou de evaluare (job #2729068)
Utilizator | Data | 24 martie 2021 01:36:57 | |
---|---|---|---|
Problema | Autostrazi | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:11:1: error: expected ',' or ';' before 'using'
using VI = vector<int>;
^~~~~
main.cpp:12:1: error: 'VI' does not name a type
VI r;
^~
main.cpp:13:8: error: 'VI' was not declared in this scope
vector<VI> G;
^~
main.cpp:13:10: error: template argument 1 is invalid
vector<VI> G;
^
main.cpp:13:10: error: template argument 2 is invalid
main.cpp:17:1: error: 'VI' does not name a type
VI Df(int x, int father)
^~
main.cpp: In function 'int main()':
main.cpp:52:4: error: request for member 'resize' in 'G', which is of non-class type 'int'
G.resize(N + 1);
^~~~~~
main.cpp:53:2: error: 'r' was not declared in this scope
r.resize(K + 1);
^
main.cpp:63:6: error: invalid types 'int[int]' for array subscript
G[x].push_back(y);
^
main.cpp:64:6: error: invalid types 'int[int]' for array subscript
G[y].push_back(x);
^
main.cpp:69:2: error: 'VI' was not declared in this scope
VI v = Df(1, 0);
^~
main.cpp:75:10: error: 'v' was not declared in this scope
sol += v[i];
^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !