Borderou de evaluare (job #2676125)

Utilizator redstonegamer22Andrei Ion redstonegamer22 Data 23 noiembrie 2020 16:23:33
Problema Parb Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:10:25: error: expected ',' or ';' before ':' token ofstream out("parb.out"): ^ main.cpp:19:13: error: 'NMAX' was not declared in this scope char letter[NMAX]; ^~~~ main.cpp:20:15: error: 'NMAX' was not declared in this scope vector<int> g[NMAX]; ^~~~ main.cpp: In function 'std::__cxx11::string dfs(int)': main.cpp:26:20: error: 'letter' was not declared in this scope char current = letter[root]; ^~~~~~ main.cpp:30:8: error: 'g' was not declared in this scope if(g[root].size() == 0) { ret += current; maxim = max(maxim, ret); return ret; } ^ main.cpp:32:20: error: 'g' was not declared in this scope for(auto vec : g[root]) ^ main.cpp: In function 'int main()': main.cpp:44:16: error: 'letter' was not declared in this scope cin >> letter[i]; ^~~~~~ main.cpp:49:9: error: 'g' was not declared in this scope g[x].push_back(y); ^ main.cpp:53:14: error: 'g' was not declared in this scope sort(g[i].begin(), g[i].end(), [=](int index1, int index2) -> bool { return letter[index1] > letter[index2]; }); ^ main.cpp: In lambda function: main.cpp:53:85: error: 'letter' was not declared in this scope sort(g[i].begin(), g[i].end(), [=](int index1, int index2) -> bool { return letter[index1] > letter[index2]; }); ^~~~~~ Non zero exit status: 1

Ceva nu functioneaza?