Borderou de evaluare (job #2928623)
Utilizator | Data | 23 octombrie 2022 15:21:59 | |
---|---|---|---|
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_1(int)':
main.cpp:40:21: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
40 | for(auto i=0; i < ad_1[nod].size();i++)
| ~~^~~~~~~~~~~~~~~~~~
main.cpp: In function 'void dfs_2(int)':
main.cpp:59:24: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
59 | for( auto i = 0 ;i < ad_2[nod].size(); i++)
| ~~^~~~~~~~~~~~~~~~~~
main.cpp: At global scope:
main.cpp:68:1: error: ISO C++ forbids declaration of 'creare_lista' with no type [-fpermissive]
68 | creare_lista(int m)
| ^~~~~~~~~~~~
main.cpp: In function 'int creare_lista(int)':
main.cpp:77:1: warning: no return statement in function returning non-void [-Wreturn-type]
77 | }
| ^
main.cpp: In function 'int main()':
main.cpp:80:15: warning: unused variable 'i' [-Wunused-variable]
80 | int m,nod,i;
| ^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !