Borderou de evaluare (job #2474483)
Utilizator | Data | 15 octombrie 2019 11:59:30 | |
---|---|---|---|
Problema | Abc2 | 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:22:5: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
for(i=2;i<=len;i++)p*=3; lens=strlen(s);
^~~
main.cpp:22:30: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
for(i=2;i<=len;i++)p*=3; lens=strlen(s);
^~~~
main.cpp:29:40: error: no matching function for call to 'std::vector<unsigned int>::at(std::vector<unsigned int>::iterator&)'
if(v[auxmod].at(it)==nr){ok=1;break;} it++;}
^
In file included from /usr/include/c++/6/vector:64:0,
from /usr/include/c++/6/queue:61,
from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:86,
from main.cpp:1:
/usr/include/c++/6/bits/stl_vector.h:823:7: note: candidate: std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::at(std::vector<_Tp, _Alloc>::size_type) [with _Tp = unsigned int; _Alloc = std::allocator<unsigned int>; std::vector<_Tp, _Alloc>::reference = unsigned int&; std::vector<_Tp, _Alloc>::size_type = long unsigned int]
at(size_type __n)
^~
/usr/include/c++/6/bits/stl_vector.h:823:7: note: no known conversion for argument 1 from 'std::vector<unsigned int>::iterator {aka __gnu_cxx::__normal_iterator<unsigned int*, std::vector<unsigned int> >}' to 'std::vector<unsigned int>::size_type {aka long unsigned int}'
/usr/include/c++/6/bits/stl_vector.h:841:7: note: candidate: std::vector<_Tp, _Alloc>::const_reference std::vector<_Tp, _Alloc>::at(std::vector<_Tp, _Alloc>::size_type) const [with _Tp = unsigned int; _Alloc = std::allocator<unsigned int>; std::vector<_Tp, _Alloc>::const_reference = const unsigned int&; std::vector<_Tp, _Alloc>::size_type = long unsigned int]
at(size_type __n) const
^~
/usr/include/c++/6/bits/stl_vector.h:841:7: note: no known conversion for argument 1 from 'std::vector<unsigned int>::iterator {aka __gnu_cxx::__normal_iterator<unsigned int*, std::vector<unsigned int> >}' to 'std::vector<unsigned int>::size_type {aka long unsigned int}'
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !