Borderou de evaluare (job #2281522)
Utilizator | Data | 12 noiembrie 2018 13:55:51 | |
---|---|---|---|
Problema | Ciclu hamiltonian de cost minim | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:12:1: error: 'vector' does not name a type
vector <int> G[GMAX];
^~~~~~
main.cpp: In function 'int main()':
main.cpp:28:9: error: 'G' was not declared in this scope
G[y].push_back(x);
^
main.cpp:35:27: warning: suggest parentheses around comparison in operand of '&' [-Wparentheses]
if(i & (1<<j) == 0)
~~~~~~~^~~~
main.cpp:38:25: error: 'G' was not declared in this scope
for(auto it=G[j].begin();it!=G[j].end();it++)
^
main.cpp:46:19: error: 'G' was not declared in this scope
for(auto it = G[0].begin();it!=G[0].end();it++)
^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !