Borderou de evaluare (job #2605588)

Utilizator segtreapMihnea Andreescu segtreap Data 25 aprilie 2020 15:01:18
Problema Ulei 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[N], ord; ^~~~~~ main.cpp: In function 'void dfs(int)': main.cpp:17:11: error: 'g' was not declared in this scope while (!g[a].empty()) { ^ main.cpp:25:3: error: 'ord' was not declared in this scope ord.push_back(a); ^~~ main.cpp: In function 'int main()': main.cpp:36:7: error: 'g' was not declared in this scope g[i].clear(); ^ main.cpp:43:7: error: 'g' was not declared in this scope g[foo].push_back(i); ^ main.cpp:39:21: warning: unused variable 'kek' [-Wunused-variable] int foo, bar, kek; ^~~ main.cpp:47:12: error: 'g' was not declared in this scope sort(g[i].begin(), g[i].end(), cmp); ^ main.cpp:48:7: error: 'vector' was not declared in this scope vector<int> g2; ^~~~~~ main.cpp:48:14: error: expected primary-expression before 'int' vector<int> g2; ^~~ main.cpp:51:9: error: 'g2' was not declared in this scope g2.push_back(g[i][j]); ^~ main.cpp:54:14: error: 'g2' was not declared in this scope g[i] = g2; ^~ main.cpp:57:20: error: 'ord' was not declared in this scope for (auto &x : ord) { ^~~ main.cpp:61:5: error: 'ord' was not declared in this scope ord.clear(); ^~~ main.cpp:29:34: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] freopen ("ulei.in", "r", stdin); ^ main.cpp:30:36: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] freopen ("ulei.out", "w", stdout); ^ main.cpp:32:18: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &t); ^ Non zero exit status: 1

Ceva nu functioneaza?