Borderou de evaluare (job #2279223)
Utilizator | Data | 9 noiembrie 2018 10:26:45 | |
---|---|---|---|
Problema | Ciclu Eulerian | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:34:24: error: no matching function for call to 'std::vector<std::pair<int, int> >::size(bool)'
if(v[i].size(5%2!=0)
^
In file included from /usr/include/c++/6/vector:64:0,
from main.cpp:2:
/usr/include/c++/6/bits/stl_vector.h:655:7: note: candidate: std::vector<_Tp, _Alloc>::size_type std::vector<_Tp, _Alloc>::size() const [with _Tp = std::pair<int, int>; _Alloc = std::allocator<std::pair<int, int> >; std::vector<_Tp, _Alloc>::size_type = long unsigned int]
size() const _GLIBCXX_NOEXCEPT
^~~~
/usr/include/c++/6/bits/stl_vector.h:655:7: note: candidate expects 0 arguments, 1 provided
main.cpp:35:3: error: expected ')' before '{' token
{
^
main.cpp:40:3: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
for(i=1;i<=k;i++)
^~~
main.cpp:42:5: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
return 0;
^~~~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !