Borderou de evaluare (job #729090)

Utilizator avatar Adrian1234 Niculae Adrian Adrian1234 IP ascuns
Problemă Insule ( clasa a 10-a ) Compilator cpp-32
Rundă Arhiva de probleme Status evaluat
Dată 18 aug. 2023 14:38:42 Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'int Lee()': main.cpp:64:1: warning: no return statement in function returning non-void [-Wreturn-type] 64 | } | ^ main.cpp: In function 'int main()': main.cpp:85:5: warning: this 'for' clause does not guard... [-Wmisleading-indentation] 85 | for(int j = 1; j<=m; j++) | ^~~ main.cpp:107:7: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for' 107 | cout << R << ' ' << G << ' ' << B << ' '; | ^~~~ main.cpp:116:19: error: 'harta' was not declared in this scope 116 | vec[harta[i+xi[r]][j+yi[r]]]++; | ^~~~~ main.cpp:118:28: error: 'r' was not declared in this scope 118 | q.push({i+xi[r], j+yi[r]}); | ^ main.cpp:118:21: error: no matching function for call to 'std::queue<cord>::push(<brace-enclosed initializer list>)' 118 | q.push({i+xi[r], j+yi[r]}); | ~~~~~~^~~~~~~~~~~~~~~~~~~~ In file included from /usr/lib/gcc/i686-pc-linux-gnu/12/include/g++-v12/queue:64, from main.cpp:2: /usr/lib/gcc/i686-pc-linux-gnu/12/include/g++-v12/bits/stl_queue.h:285:7: note: candidate: 'void std::queue<_Tp, _Sequence>::push(const value_type&) [with _Tp = cord; _Sequence = std::deque<cord, std::allocator<cord> >; value_type = cord]' 285 | push(const value_type& __x) | ^~~~ /usr/lib/gcc/i686-pc-linux-gnu/12/include/g++-v12/bits/stl_queue.h:285:30: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'const std::queue<cord>::value_type&' {aka 'const cord&'} 285 | push(const value_type& __x) | ~~~~~~~~~~~~~~~~~~^~~ /usr/lib/gcc/i686-pc-linux-gnu/12/include/g++-v12/bits/stl_queue.h:290:7: note: candidate: 'void std::queue<_Tp, _Sequence>::push(value_type&&) [with _Tp = cord; _Sequence = std::deque<cord, std::allocator<cord> >; value_type = cord]' 290 | push(value_type&& __x) | ^~~~ /usr/lib/gcc/i686-pc-linux-gnu/12/include/g++-v12/bits/stl_queue.h:290:25: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'std::queue<cord>::value_type&&' {aka 'cord&&'} 290 | push(value_type&& __x) | ~~~~~~~~~~~~~^~~