Borderou de evaluare (job #2171416)

Utilizator albucristianAlbu Cristian-Gabriel albucristian Data 15 martie 2018 12:18:12
Problema Ninjago Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘void dfs(int)’: user.cpp:15:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i=0;i<graf[nod].size();i++) ^ user.cpp:17:16: error: no match for ‘operator[]’ (operand types are ‘int [31202]’ and ‘std::pair<int, int>’) if(!viz[graf[nod][i].first]&&) ^ user.cpp:17:38: error: expected primary-expression before ‘)’ token if(!viz[graf[nod][i].first]&&) ^ user.cpp:18:5: error: expected primary-expression before ‘}’ token } ^ user.cpp: In function ‘int main()’: user.cpp:23:14: error: expected initializer before ‘in’ ifstream in("ninjago.in"); ^ user.cpp:25:5: error: ‘in’ was not declared in this scope in>>cerinta; ^ user.cpp:25:9: error: ‘cerinta’ was not declared in this scope in>>cerinta; ^ user.cpp:26:9: error: ‘n’ was not declared in this scope in>>n>>m; ^ user.cpp:26:12: error: ‘m’ was not declared in this scope in>>n>>m; ^ user.cpp:29:13: error: ‘a’ was not declared in this scope in>>a>>b>>vect; ^ user.cpp:29:16: error: ‘b’ was not declared in this scope in>>a>>b>>vect; ^ user.cpp:30:9: error: ‘c’ was not declared in this scope c=en=0; ^ user.cpp:30:11: error: ‘en’ was not declared in this scope c=en=0; ^ user.cpp:31:9: error: ‘k’ was not declared in this scope k=1; ^ user.cpp:36:17: error: ‘cost’ was not declared in this scope cost=cost+(vect[j]-'A'+1)*k; ^ user.cpp:44:32: error: ‘cost’ was not declared in this scope graf[a].pusk_back({b,c,cost}); ^

Ceva nu functioneaza?