Borderou de evaluare (job #2311115)
Utilizator | Data | 2 ianuarie 2019 17:25:20 | |
---|---|---|---|
Problema | Armonica | 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:27:10: error: invalid use of non-static member function 'std::set<_Key, _Compare, _Alloc>::size_type std::set<_Key, _Compare, _Alloc>::size() const [with _Key = std::pair<long long unsigned int, long long unsigned int>; _Compare = std::less<std::pair<long long unsigned int, long long unsigned int> >; _Alloc = std::allocator<std::pair<long long unsigned int, long long unsigned int> >; std::set<_Key, _Compare, _Alloc>::size_type = long unsigned int]'
fout << sol.size << '\n';
~~~~~^~~~~~~~~~~
In file included from /usr/include/c++/6/set:61:0,
from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:87,
from main.cpp:1:
/usr/include/c++/6/bits/stl_set.h:392:7: note: declared here
size() const _GLIBCXX_NOEXCEPT
^~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !