Borderou de evaluare (job #2697304)

Utilizator kovacsvictorKovacs Victor kovacsvictor Data 18 ianuarie 2021 09:54:50
Problema Sortare topologica Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'void afisare(std::vector<int>)': main.cpp:18:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (int i = 0; i < v.size(); i++) ~~^~~~~~~~~~ main.cpp: In function 'int adiacente(int, int)': main.cpp:26:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (int i = 0; i < la[x].size(); i++) ~~^~~~~~~~~~~~~~ main.cpp: In function 'int grad(int)': main.cpp:45:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (int i = 0; i < la[x].size(); i++) ~~^~~~~~~~~~~~~~ main.cpp: At global scope: main.cpp:68:5: error: redefinition of 'int n' int n; ^ main.cpp:14:5: note: 'int n' previously declared here int n, mat[1001][1001]; ^ main.cpp: In function 'void dfs(int)': main.cpp:84:6: error: redefinition of 'void dfs(int)' void dfs(int nod) { ^~~ main.cpp:72:6: note: 'void dfs(int)' previously defined here void dfs(int nod) { ^~~ main.cpp:89:24: error: 'v' was not declared in this scope for(int j=0;j<=v[i].;j++) ^ main.cpp:89:29: error: expected unqualified-id before ';' token for(int j=0;j<=v[i].;j++) ^ main.cpp:93:8: error: expected primary-expression before '==' token if ( == 1) { ^~ main.cpp:94:12: error: 'vecin' was not declared in this scope if (viz[vecin] == false) { ^~~~~ main.cpp:103:12: error: a function-definition is not allowed here before '{' token int main() { ^ main.cpp:127:1: error: expected '}' at end of input } ^ Non zero exit status: 1

Ceva nu functioneaza?