Borderou de evaluare (job #1064593)
Utilizator | Data | 22 decembrie 2013 01:47:09 | |
---|---|---|---|
Problema | Dtcsu | 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:23:23: error: could not convert ‘S.std::unordered_set<_Value, _Hash, _Pred, _Alloc>::find<long long int, std::hash<long long int>, std::equal_to<long long int>, std::allocator<long long int> >((*(const key_type*)(& val)))’ from ‘std::unordered_set<long long int>::iterator {aka std::__detail::_Node_iterator<long long int, true, false>}’ to ‘bool’
if(S.find(val)) cnt++;
^
user.cpp:23:25: error: ‘cnt’ was not declared in this scope
if(S.find(val)) cnt++;
^
user.cpp:25:39: error: ‘cnt’ was not declared in this scope
ofstream out("dtcsu.out"); out << cnt << "\n"; out.close();
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !