Borderou de evaluare (job #2461654)
Utilizator | Data | 25 septembrie 2019 22:00:53 | |
---|---|---|---|
Problema | Cobai | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:33:7: error: 'class std::queue<std::pair<int, int> >' has no member named 'insert'
Q.insert({startx,starty});
^~~~~~
main.cpp:35:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 0; i < strlen(d); ++i)
~~^~~~~~~~~~~
main.cpp:42:9: error: 'Q2' was not declared in this scope
Q2.clear();
^~
main.cpp:43:23: error: no matching function for call to 'begin(std::queue<std::pair<int, int> >&)'
for(auto it : Q)
^
In file included from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:95:0,
from main.cpp:1:
/usr/include/c++/6/valarray:1206:5: note: candidate: template<class _Tp> const _Tp* std::begin(const std::valarray<_Tp>&)
begin(const valarray<_Tp>& __va)
^~~~~
/usr/include/c++/6/valarray:1206:5: note: template argument deduction/substitution failed:
main.cpp:43:23: note: 'std::queue<std::pair<int, int> >' is not derived from 'const std::valarray<_Tp>'
for(auto it : Q)
^
In file included from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:95:0,
from main.cpp:1:
/usr/include/c++/6/valarray:1196:5: note: candidate: template<class _Tp> _Tp* std::begin(std::valarray<_Tp>&)
begin(valarray<_Tp>& __va)
^~~~~
/usr/include/c++/6/valarray:1196:5: note: template argument deduction/substitution failed:
main.cpp:43:23: note: 'std::queue<std::pair<int, int> >' is not derived from 'std::valarray<_Tp>'
for(auto it : Q)
^
In file included from /usr/include/c++/6/string:51:0,
from /usr/include/c++/6/bits/locale_classes.h:40,
from /usr/include/c++/6/bits/ios_base.h:41,
from /usr/include/c++/6/ios:42,
from /usr/include/c++/6/istream:38,
from /usr/include/c++/6/sstream:38,
from /usr/include/c++/6/complex:45,
from /usr/include/c++/6/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:52,
from main.cpp:1:
/usr/include/c++/6/bits/range_access.h:87:5: note: candidate: template<class _Tp, long unsigned int _Nm> constexpr _Tp* std::begin(_Tp (&)[_Nm])
begin(_Tp (&__arr)[_Nm])
^~~~~
/usr/include/c++/6/bits/range_access.h:87:5: note: template argument deduction/substitution failed:
main.cpp:43:23: note: mismatched types '_Tp [_Nm]' and 'std::queue<std::pair<int, int> >'
for(auto it : Q)
^
In file included from /usr/include/c++/6/string:51:0,
from /usr/include/c++/6/bits/locale_classes.h:40,
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !