Borderou de evaluare (job #2653597)
Utilizator | Data | 28 septembrie 2020 16:57:32 | |
---|---|---|---|
Problema | Rj | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:16:1: error: expected initializer before 'int'
int r1, r2, j1, j2;
^~~
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:49:31: error: 'b' was not declared in this scope
a[i][0] = a[i][m+1] = b[i][m+1] = b[i][0] = -1;
^
main.cpp:51:31: error: 'b' was not declared in this scope
a[0][i] = a[n+1][i] = b[0][i] = b[n+1][i] = -1;
^
main.cpp:58:17: error: 'r1' was not declared in this scope
r1 = i;
^~
main.cpp:59:17: error: 'r2' was not declared in this scope
r2 = j;
^~
main.cpp:64:17: error: 'j1' was not declared in this scope
j1 = i;
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !