Borderou de evaluare (job #2928381)

Utilizator Andreeamiruna27Mindrescu Andreea Andreeamiruna27 Data 22 octombrie 2022 20:48:47
Problema Componente tare conexe Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'void dfs(int)': main.cpp:33:19: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 33 | for(int i=0; i<ad[n].size(); i++) | ~^~~~~~~~~~~~~ main.cpp:38:25: error: expected ')' before ']' token 38 | dfs(ad[n][i]]); | ~ ^ | ) main.cpp: In function 'void dfs_t(int)': main.cpp:48:15: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 48 | for(j=0; j<ad_t[n].size(); j++) | ~^~~~~~~~~~~~~~~ main.cpp: In function 'void afis()': main.cpp:61:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 61 | for(int i=0; i<comp[j].size(); i++) | ~^~~~~~~~~~~~~~~ Non zero exit status: 1

Ceva nu functioneaza?