Borderou de evaluare (job #2610917)

Utilizator andreea.nica1602Andreea Nica andreea.nica1602 Data 5 mai 2020 21:23:52
Problema Berarii2 Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'void dfs(int)': main.cpp:18:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (int i = 0; i < adj[nod].size(); i++) { ~~^~~~~~~~~~~~~~~~~ main.cpp: In function 'int main()': main.cpp:32:2: error: 'fin' was not declared in this scope fin >> n >> m >> p; ^~~ main.cpp:46:40: warning: format '%d' expects argument of type 'int', but argument 3 has type 'std::unordered_set<int>::size_type {aka long unsigned int}' [-Wformat=] fprintf(r, "%d\n", n - visited.size() ); ^ main.cpp:36:28: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] fscanf(f, "%d%d", &x, &y); ^ main.cpp:42:24: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] fscanf(f, "%d", &ber); ^ Non zero exit status: 1

Ceva nu functioneaza?