Borderou de evaluare (job #2186279)
Utilizator | Data | 25 martie 2018 14:26:42 | |
---|---|---|---|
Problema | Intrus | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘int main()’:
user.cpp:94:16: error: found ‘:’ in nested-name-specifier, expected ‘::’
for(it : suspect)
^
user.cpp:94:13: error: ‘it’ is not a class, namespace, or enumeration
for(it : suspect)
^~
user.cpp:97:13: error: could not convert ‘std::sort<__gnu_cxx::__normal_iterator<INTRUS*, std::vector<INTRUS> > >(suspect.std::vector<_Tp, _Alloc>::begin<INTRUS, std::allocator<INTRUS> >(), suspect.std::vector<_Tp, _Alloc>::end<INTRUS, std::allocator<INTRUS> >())’ from ‘void’ to ‘bool’
sort(suspect.begin(), suspect.end());
~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
user.cpp:99:9: error: expected primary-expression before ‘for’
for(auto it: suspect)
^~~
user.cpp:99:9: error: expected ‘)’ before ‘for’
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !