Borderou de evaluare (job #2277461)
Utilizator | Data | 6 noiembrie 2018 12:08:42 | |
---|---|---|---|
Problema | Gravity | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'void bfs(int, int, int)':
main.cpp:18:5: error: 'd' was not declared in this scope
d[i][j] = x;
^
main.cpp:22:9: error: 'viz' was not declared in this scope
viz[i][j] = true;
^~~
main.cpp:30:43: error: no matching function for call to 'std::deque<sparanghel>::push_front(int, int&, int)'
deq.push_front(i - 1, j, x + 1);
^
In file included from /usr/include/c++/6/deque:64:0,
from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:68,
from main.cpp:1:
/usr/include/c++/6/bits/stl_deque.h:1484:7: note: candidate: void std::deque<_Tp, _Alloc>::push_front(const value_type&) [with _Tp = sparanghel; _Alloc = std::allocator<sparanghel>; std::deque<_Tp, _Alloc>::value_type = sparanghel]
push_front(const value_type& __x)
^~~~~~~~~~
/usr/include/c++/6/bits/stl_deque.h:1484:7: note: candidate expects 1 argument, 3 provided
/usr/include/c++/6/bits/stl_deque.h:1499:7: note: candidate: void std::deque<_Tp, _Alloc>::push_front(std::deque<_Tp, _Alloc>::value_type&&) [with _Tp = sparanghel; _Alloc = std::allocator<sparanghel>; std::deque<_Tp, _Alloc>::value_type = sparanghel]
push_front(value_type&& __x)
^~~~~~~~~~
/usr/include/c++/6/bits/stl_deque.h:1499:7: note: candidate expects 1 argument, 3 provided
main.cpp: In function 'int main()':
main.cpp:45:13: error: 'd' was not declared in this scope
d[i][j] = INF;
^
main.cpp:51:17: error: expected primary-expression before ']' token
ans[x + ]
^
main.cpp:53:12: error: expected primary-expression before ')' token
if()
^
main.cpp:53:11: warning: suggest explicit braces to avoid ambiguous 'else' [-Wparentheses]
if()
^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !