Borderou de evaluare (job #2653598)
Utilizator | Data | 28 septembrie 2020 16:58:21 | |
---|---|---|---|
Problema | Rj | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:21:42: error: declaration of 'm' as multidimensional array must have bounds for all dimensions except the first
void lee(int start1, int start2, int m[][])
^
main.cpp: In function 'void lee(...)':
main.cpp:23:13: error: 'start1' was not declared in this scope
q.push({start1, start2});
^~~~~~
main.cpp:23:21: error: 'start2' was not declared in this scope
q.push({start1, start2});
^~~~~~
main.cpp:23:28: error: no matching function for call to 'std::queue<std::pair<int, int> >::push(<brace-enclosed initializer list>)'
q.push({start1, start2});
^
In file included from /usr/include/c++/6/queue:64:0,
from main.cpp:3:
/usr/include/c++/6/bits/stl_queue.h:242:7: note: candidate: void std::queue<_Tp, _Sequence>::push(const value_type&) [with _Tp = std::pair<int, int>; _Sequence = std::deque<std::pair<int, int>, std::allocator<std::pair<int, int> > >; std::queue<_Tp, _Sequence>::value_type = std::pair<int, int>]
push(const value_type& __x)
^~~~
/usr/include/c++/6/bits/stl_queue.h:242:7: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'const value_type& {aka const std::pair<int, int>&}'
/usr/include/c++/6/bits/stl_queue.h:247:7: note: candidate: void std::queue<_Tp, _Sequence>::push(std::queue<_Tp, _Sequence>::value_type&&) [with _Tp = std::pair<int, int>; _Sequence = std::deque<std::pair<int, int>, std::allocator<std::pair<int, int> > >; std::queue<_Tp, _Sequence>::value_type = std::pair<int, int>]
push(value_type&& __x)
^~~~
/usr/include/c++/6/bits/stl_queue.h:247:7: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'std::queue<std::pair<int, int> >::value_type&& {aka std::pair<int, int>&&}'
main.cpp:33:20: error: invalid types 'int[int]' for array subscript
if(m[nx][ny] == 0)
^
main.cpp:35:21: error: invalid types 'int[int]' for array subscript
m[nx][ny] = m[x][y] + 1;
^
main.cpp:35:32: error: invalid types 'int[int]' for array subscript
m[nx][ny] = m[x][y] + 1;
^
main.cpp: In function 'int main()':
main.cpp:75:26: error: 'INT_MAX' was not declared in this scope
int resx, resy, mn = INT_MAX;
^~~~~~~
main.cpp:91:26: error: 'res' was not declared in this scope
fout << mn << " " << res << " " << resy;
^~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !