Borderou de evaluare (job #2783083)
Utilizator | Data | 13 octombrie 2021 19:15:16 | |
---|---|---|---|
Problema | Parcurgere DFS - componente conexe | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:58:5: error: ISO C++ forbids declaration of 'get_size' with no type [-fpermissive]
58 | get_size(){
| ^~~~~~~~
main.cpp:62:5: error: ISO C++ forbids declaration of 'gett' with no type [-fpermissive]
62 | gett(){
| ^~~~
main.cpp:66:5: error: ISO C++ forbids declaration of 'build' with no type [-fpermissive]
66 | build(){
| ^~~~~
main.cpp:76:5: error: ISO C++ forbids declaration of 'print' with no type [-fpermissive]
76 | print(){
| ^~~~~
main.cpp:86:5: error: ISO C++ forbids declaration of 'dfs' with no type [-fpermissive]
86 | dfs(int nod){
| ^~~
main.cpp:96:5: error: ISO C++ forbids declaration of 'getCconexe' with no type [-fpermissive]
96 | getCconexe(){
| ^~~~~~~~~~
main.cpp: In member function 'int Graph::gett()':
main.cpp:64:5: warning: no return statement in function returning non-void [-Wreturn-type]
64 | }
| ^
main.cpp: In member function 'int Graph::build()':
main.cpp:74:5: warning: no return statement in function returning non-void [-Wreturn-type]
74 | }
| ^
main.cpp: In member function 'int Graph::print()':
main.cpp:79:30: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
79 | for(int j = 0; j < adj[i].size(); ++j)
| ~~^~~~~~~~~~~~~~~
main.cpp:84:5: warning: no return statement in function returning non-void [-Wreturn-type]
84 | }
| ^
main.cpp: In member function 'int Graph::dfs(int)':
main.cpp:91:26: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
91 | for(int i = 0; i < adj[nod].size(); ++i)
| ~~^~~~~~~~~~~~~~~~~
main.cpp:94:5: warning: no return statement in function returning non-void [-Wreturn-type]
94 | }
| ^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !