Borderou de evaluare (job #2145702)

Utilizator andreicoman299Coman Andrei andreicoman299 Data 27 februarie 2018 16:00:43
Problema Componente biconexe Status done
Runda Arhiva educationala Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘void tarjan(int, int)’: user.cpp:10:37: error: ‘father’ was not declared in this scope pos[node] = lowlink[node] = pos[father] + 1; ^ user.cpp: In function ‘int main()’: user.cpp:43:32: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘std::vector<std::vector<int> >::size_type {aka long unsigned int}’ [-Wformat=] fprintf(fo,"%d\n", M.size()); ^ user.cpp:44:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i = 0; i < M.size(); i++){ ^ user.cpp:35:30: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(fi,"%d%d", &n, &m); ^ user.cpp:38:34: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(fi,"%d%d", &a, &b); ^

Ceva nu functioneaza?