Rikis

Taškai: 0

Compile: FAIL

rikis.cpp: In function ‘void bfs(int, int, int, int, int)’: rikis.cpp:13:19: error: invalid use of member function ‘std::queue<_Tp, _Sequence>::const_reference std::queue<_Tp, _Sequence>::front() const [with _Tp = std::pair<int, int>; _Sequence = std::deque<std::pair<int, int>, std::allocator<std::pair<int, int> > >; std::queue<_Tp, _Sequence>::const_reference = const std::pair<int, int>&]’ (did you forget the ‘()’ ?) 13 | if (Q.front.first+i < n && Q.front.second+i < n) { | ~~^~~~~ | () rikis.cpp:13:25: error: expected ‘)’ before ‘first’ 13 | if (Q.front.first+i < n && Q.front.second+i < n) { | ~ ^~~~~ | ) rikis.cpp:14:29: error: invalid use of member function ‘std::queue<_Tp, _Sequence>::const_reference std::queue<_Tp, _Sequence>::front() const [with _Tp = std::pair<int, int>; _Sequence = std::deque<std::pair<int, int>, std::allocator<std::pair<int, int> > >; std::queue<_Tp, _Sequence>::const_reference = const std::pair<int, int>&]’ (did you forget the ‘()’ ?) 14 | if (board[Q.front.second+i][Q.front.first+i] == -1) { | ~~^~~~~ | () rikis.cpp:14:35: error: expected ‘]’ before ‘second’ 14 | if (board[Q.front.second+i][Q.front.first+i] == -1) { | ^~~~~~ | ] rikis.cpp:14:35: error: expected ‘)’ before ‘second’ 14 | if (board[Q.front.second+i][Q.front.first+i] == -1) { | ~ ^~~~~~ | ) rikis.cpp:14:43: error: expected primary-expression before ‘]’ token 14 | if (board[Q.front.second+i][Q.front.first+i] == -1) { | ^ rikis.cpp:17:29: error: invalid use of member function ‘std::queue<_Tp, _Sequence>::const_reference std::queue<_Tp, _Sequence>::front() const [with _Tp = std::pair<int, int>; _Sequence = std::deque<std::pair<int, int>, std::allocator<std::pair<int, int> > >; std::queue<_Tp, _Sequence>::const_reference = const std::pair<int, int>&]’ (did you forget the ‘()’ ?) 17 | board[Q.front.second+i][Q.front.first+i] = board[Q.front.second][Q.front.first]+1; | ~~^~~~~ | () rikis.cpp:17:35: error: expected ‘]’ before ‘second’ 17 | board[Q.front.second+i][Q.front.first+i] = board[Q.front.second][Q.front.first]+1; | ^~~~~~ | ] rikis.cpp:22:19: error: invalid use of member function ‘std::queue<_Tp, _Sequence>::const_reference std::queue<_Tp, _Sequence>::front() const [with _Tp = std::pair<int, int>; _Sequence = std::deque<std::pair<int, int>, std::allocator<std::pair<int, int> > >; std::queue<_Tp, _Sequence>::const_reference = const std::pair<int, int>&]’ (did you forget the ‘()’ ?) 22 | if (Q.front.first+i < n && Q.front.second-i >= 0) { | ~~^~~~~ | () rikis.cpp:22:25: error: expected ‘)’ before ‘first’ 22 | if (Q.front.first+i < n && Q.front.second-i >= 0) { | ~ ^~~~~ | ) rikis.cpp:23:29: error: invalid use of member function ‘std::queue<_Tp, _Sequence>::const_reference std::queue<_Tp, _Sequence>::front() const [with _Tp = std::pair<int, int>; _Sequence = std::deque<std::pair<int, int>, std::allocator<std::pair<int, int> > >; std::queue<_Tp, _Sequence>::const_reference = const std::pair<int, int>&]’ (did you forget the ‘()’ ?) 23 | if (board[Q.front.second+i][Q.front.first-i] == -1) { | ~~^~~~~ | () rikis.cpp:23:35: error: expected ‘]’ before ‘second’ 23 | if (board[Q.front.second+i][Q.front.first-i] == -1) { | ^~~~~~ | ] rikis.cpp:23:35: error: expected ‘)’ before ‘second’ 23 | if (board[Q.front.second+i][Q.front.first-i] == -1) { | ~ ^~~~~~ | ) rikis.cpp:23:43: error: expected primary-expression before ‘]’ token 23 | if (board[Q.front.second+i][Q.front.first-i] == -1) { | ^ rikis.cpp:26:29: error: invalid use of member function ‘std::queue<_Tp, _Sequence>::const_reference std::queue<_Tp, _Sequence>::front() const [with _Tp = std::pair<int, int>; _Sequence = std::deque<std::pair<int, int>, std::allocator<std::pair<int, int> > >; std::queue<_Tp, _Sequence>::const_reference = const std::pair<int, int>&]’ (did you forget the ‘()’ ?) 26 | board[Q.front.second-i][Q.front.first+i] = board[Q.front.second][Q.front.first]+1; | ~~^~~~~ | () rikis.cpp:26:35: error: expected ‘]’ before ‘second’ 26 | board[Q.front.second-i][Q.front.first+i] = board[Q.front.second][Q.front.first]+1; | ^~~~~~ | ] rikis.cpp:31:19: error: invalid use of member function ‘std::queue<_Tp, _Sequence>::const_reference std::queue<_Tp, _Sequence>::front() const [with _Tp = std::pair<int, int>; _Sequence = std::deque<std::pair<int, int>, std::allocator<std::pair<int, int> > >; std::queue<_Tp, _Sequence>::const_reference = const std::pair<int, int>&]’ (did you forget the ‘()’ ?) 31 | if (Q.front.first-i >= 0 && Q.front.second+i < n) { | ~~^~~~~ | () rikis.cpp:31:25: error: expected ‘)’ before ‘first’ 31 | if (Q.front.first-i >= 0 && Q.front.second+i < n) { | ~ ^~~~~ | ) rikis.cpp:32:29: error: invalid use of member function ‘std::queue<_Tp, _Sequence>::const_reference std::queue<_Tp, _Sequence>::front() const [with _Tp = std::pair<int, int>; _Sequence = std::deque<std::pair<int, int>, std::allocator<std::pair<int, int> > >; std::queue<_Tp, _Sequence>::const_reference = const std::pair<int, int>&]’ (did you forget the ‘()’ ?) 32 | if (board[Q.front.second+i][Q.front.first-i] == -1) { | ~~^~~~~ | () rikis.cpp:32:35: error: expected ‘]’ before ‘second’ 32 | if (board[Q.front.second+i][Q.front.first-i] == -1) { | ^~~~~~ | ] rikis.cpp:32:35: error: expected ‘)’ before ‘second’ 32 | if (board[Q.front.second+i][Q.front.first-i] == -1) { | ~ ^~~~~~ | ) rikis.cpp:32:43: error: expected primary-expression before ‘]’ token 32 | if (board[Q.front.second+i][Q.front.first-i] == -1) { | ^ rikis.cpp:35:29: error: invalid use of member function ‘std::queue<_Tp, _Sequence>::const_reference std::queue<_Tp, _Sequence>::front() const [with _Tp = std::pair<int, int>; _Sequence = std::deque<std::pair<int, int>, std::allocator<std::pair<int, int> > >; std::queue<_Tp, _Sequence>::const_reference = const std::pair<int, int>&]’ (did you forget the ‘()’ ?) 35 | board[Q.front.second+i][Q.front.first-i] = board[Q.front.second][Q.front.first]+1; | ~~^~~~~ | () rikis.cpp:35:35: error: expected ‘]’ before ‘second’ 35 | board[Q.front.second+i][Q.front.first-i] = board[Q.front.second][Q.front.first]+1; | ^~~~~~ | ] rikis.cpp:40:19: error: invalid use of member function ‘std::queue<_Tp, _Sequence>::const_reference std::queue<_Tp, _Sequence>::front() const [with _Tp = std::pair<int, int>; _Sequence = std::deque<std::pair<int, int>, std::allocator<std::pair<int, int> > >; std::queue<_Tp, _Sequence>::const_reference = const std::pair<int, int>&]’ (did you forget the ‘()’ ?) 40 | if (Q.front.first-i >= 0 && Q.front.second-i >= 0) { | ~~^~~~~ | () rikis.cpp:40:25: error: expected ‘)’ before ‘first’ 40 | if (Q.front.first-i >= 0 && Q.front.second-i >= 0) { | ~ ^~~~~ | ) rikis.cpp:41:29: error: invalid use of member function ‘std::queue<_Tp, _Sequence>::const_reference std::queue<_Tp, _Sequence>::front() const [with _Tp = std::pair<int, int>; _Sequence = std::deque<std::pair<int, int>, std::allocator<std::pair<int, int> > >; std::queue<_Tp, _Sequence>::const_reference = const std::pair<int, int>&]’ (did you forget the ‘()’ ?) 41 | if (board[Q.front.second-i][Q.front.first-i] == -1) { | ~~^~~~~ | () rikis.cpp:41:35: error: expected ‘]’ before ‘second’ 41 | if (board[Q.front.second-i][Q.front.first-i] == -1) { | ^~~~~~ | ] rikis.cpp:41:35: error: expected ‘)’ before ‘second’ 41 | if (board[Q.front.second-i][Q.front.first-i] == -1) { | ~ ^~~~~~ | ) rikis.cpp:41:43: error: expected primary-expression before ‘]’ token 41 | if (board[Q.front.second-i][Q.front.first-i] == -1) { | ^ rikis.cpp:44:29: error: invalid use of member function ‘std::queue<_Tp, _Sequence>::const_reference std::queue<_Tp, _Sequence>::front() const [with _Tp = std::pair<int, int>; _Sequence = std::deque<std::pair<int, int>, std::allocator<std::pair<int, int> > >; std::queue<_Tp, _Sequence>::const_reference = const std::pair<int, int>&]’ (did you forget the ‘()’ ?) 44 | board[Q.front.second-i][Q.front.first-i] = board[Q.front.second][Q.front.first]+1; | ~~^~~~~ | () rikis.cpp:44:35: error: expected ‘]’ before ‘second’ 44 | board[Q.front.second-i][Q.front.first-i] = board[Q.front.second][Q.front.first]+1; | ^~~~~~ | ] rikis.cpp: In function ‘int main()’: rikis.cpp:59:19: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] 59 | if (c == "R") { | ~~^~~~~~ rikis.cpp:64:19: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] 64 | if (c == "V") { | ~~^~~~~~ rikis.cpp:69:19: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] 69 | if (c == "0") { | ~~^~~~~~ rikis.cpp:74:19: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] 74 | if (c == "1") { | ~~^~~~~~

nr.resulttimemessage