Borderou de evaluare (job #1181079)

Utilizator flore77Simion Florentin flore77 Data 1 mai 2014 19:21:57
Problema Sortare topologica Status done
Runda Arhiva educationala Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘int main()’: user.cpp:13:5: error: expected ‘;’ before ‘int’ int N, M, i, n1, n2, varf, vecin; ^ user.cpp:14:11: error: ‘N’ was not declared in this scope in >> N >> M; ^ user.cpp:14:16: error: ‘M’ was not declared in this scope in >> N >> M; ^ user.cpp:19:10: error: ‘i’ was not declared in this scope for (i = 0; i < N; i++) { ^ user.cpp:20:15: error: ‘n1’ was not declared in this scope in >> n1 >> n2; ^ user.cpp:20:21: error: ‘n2’ was not declared in this scope in >> n1 >> n2; ^ user.cpp:22:13: error: ‘nodes’ was not declared in this scope nodes[n1].push_back(n2); ^ user.cpp:27:9: error: ‘varf’ was not declared in this scope varf = s.top(); ^ user.cpp:28:9: error: ‘vecin’ was not declared in this scope vecin = -1; ^ user.cpp:29:19: error: ‘nodes’ was not declared in this scope for (it = nodes[varf].begin(); it != nodes[varf].end(); it++) { ^ user.cpp:46:9: error: ‘g’ was not declared in this scope g << *it << " "; ^

Ceva nu functioneaza?