Borderou de evaluare (job #2494038)
Utilizator | Data | 17 noiembrie 2019 11:38:56 | |
---|---|---|---|
Problema | Path | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:10:1: error: 'vector' does not name a type
vector <int> g[256];
^~~~~~
main.cpp: In function 'void dfs(int)':
main.cpp:14:8: error: 'g' was not declared in this scope
if(g[nod].size()==0)
^
main.cpp:16:19: error: 'g' was not declared in this scope
for(int i=0;i<g[nod].size();i++)
^
main.cpp: In function 'int main()':
main.cpp:37:12: warning: array subscript has type 'char' [-Wchar-subscripts]
a[x][y]=1;
^
main.cpp:37:15: warning: array subscript has type 'char' [-Wchar-subscripts]
a[x][y]=1;
^
main.cpp:38:13: warning: array subscript has type 'char' [-Wchar-subscripts]
fr[x]=1;
^
main.cpp:46:17: error: 'g' was not declared in this scope
g[i].push_back(j);
^
main.cpp:49:13: error: 'g' was not declared in this scope
g[i].push_back(j);
^
main.cpp:53:13: error: 'g' was not declared in this scope
g[1].push_back(i);
^
main.cpp:56:13: error: 'g' was not declared in this scope
g[1].push_back(i);
^
main.cpp:62:23: error: 'g' was not declared in this scope
for(int i=0;i<g[nod].size();i++)
^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !