Borderou de evaluare (job #2601108)

Utilizator Dobricean_IoanDobricean Ionut Dobricean_Ioan Data 13 aprilie 2020 19:06:32
Problema Djok Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:14:21: error: template argument 1 is invalid vector<pair<int,int>order; ^~~~~ main.cpp:14:21: error: template argument 2 is invalid main.cpp: In function 'int main()': main.cpp:27:3: error: 'order' was not declared in this scope order.push_back({power[i],i}); ^~~~~ main.cpp:28:7: error: 'order' was not declared in this scope sort(order.begin(),order.end()); ^~~~~ main.cpp:29:16: error: unable to deduce 'auto&&' from 'order' for(auto it : order) ^~~~~ main.cpp:29:2: warning: this 'for' clause does not guard... [-Wmisleading-indentation] for(auto it : order) ^~~ main.cpp:31:3: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for' viz[nod] = 1; ^~~ main.cpp:30:7: warning: unused variable 'nod' [-Wunused-variable] int nod = it.second; ^~~ main.cpp:31:7: error: 'nod' was not declared in this scope viz[nod] = 1; ^~~ main.cpp:37:1: error: expected primary-expression before '}' token } ^ Non zero exit status: 1

Ceva nu functioneaza?