Borderou de evaluare (job #2975905)
Utilizator | Data | 7 februarie 2023 20:41:26 | |
---|---|---|---|
Problema | Aquapark | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'void dfs(int)':
main.cpp:16:14: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
16 | for(i=0;i<adj[curr].size();i++)
| ~^~~~~~~~~~~~~~~~~
main.cpp: In function 'int main()':
main.cpp:58:14: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<operatie>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
58 | for(i=0;i<op.size();i++)
| ~^~~~~~~~~~
main.cpp:80:35: error: no matching function for call to 'find(<brace-enclosed initializer list>)'
80 | it=find({a[index]+1,0});
| ^
In file included from /usr/include/c++/10/bits/locale_facets.h:48,
from /usr/include/c++/10/bits/basic_ios.h:37,
from /usr/include/c++/10/ios:44,
from /usr/include/c++/10/istream:38,
from /usr/include/c++/10/fstream:38,
from main.cpp:1:
/usr/include/c++/10/bits/streambuf_iterator.h:422:5: note: candidate: 'template<class _CharT2> typename __gnu_cxx::__enable_if<std::__is_char<_CharT2>::__value, std::istreambuf_iterator<_CharT> >::__type std::find(std::istreambuf_iterator<_CharT>, std::istreambuf_iterator<_CharT>, const _CharT2&)'
422 | find(istreambuf_iterator<_CharT> __first,
| ^~~~
/usr/include/c++/10/bits/streambuf_iterator.h:422:5: note: template argument deduction/substitution failed:
main.cpp:80:35: note: candidate expects 3 arguments, 1 provided
80 | it=find({a[index]+1,0});
| ^
In file included from /usr/include/c++/10/algorithm:62,
from main.cpp:3:
/usr/include/c++/10/bits/stl_algo.h:3895:5: note: candidate: 'template<class _IIter, class _Tp> _IIter std::find(_IIter, _IIter, const _Tp&)'
3895 | find(_InputIterator __first, _InputIterator __last,
| ^~~~
/usr/include/c++/10/bits/stl_algo.h:3895:5: note: template argument deduction/substitution failed:
main.cpp:80:35: note: candidate expects 3 arguments, 1 provided
80 | it=find({a[index]+1,0});
| ^
main.cpp:44:13: warning: unused variable 'j' [-Wunused-variable]
44 | int n,i,j,k,l,cer,m,index,val,f;
| ^
main.cpp:44:15: warning: unused variable 'k' [-Wunused-variable]
44 | int n,i,j,k,l,cer,m,index,val,f;
| ^
main.cpp:44:17: warning: unused variable 'l' [-Wunused-variable]
44 | int n,i,j,k,l,cer,m,index,val,f;
| ^
main.cpp:44:35: warning: unused variable 'f' [-Wunused-variable]
44 | int n,i,j,k,l,cer,m,index,val,f;
| ^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !