Borderou de evaluare (job #2581368)
Utilizator | Data | 15 martie 2020 00:49:59 | |
---|---|---|---|
Problema | Generare de permutari | 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:15:32: error: no matching function for call to 'next_permutation(std::vector<int>&)'
} while (next_permutation(v));
^
In file included from /usr/include/c++/6/algorithm:62:0,
from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:65,
from main.cpp:1:
/usr/include/c++/6/bits/stl_algo.h:2951:5: note: candidate: template<class _BIter> bool std::next_permutation(_BIter, _BIter)
next_permutation(_BidirectionalIterator __first,
^~~~~~~~~~~~~~~~
/usr/include/c++/6/bits/stl_algo.h:2951:5: note: template argument deduction/substitution failed:
main.cpp:15:32: note: candidate expects 2 arguments, 1 provided
} while (next_permutation(v));
^
In file included from /usr/include/c++/6/algorithm:62:0,
from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:65,
from main.cpp:1:
/usr/include/c++/6/bits/stl_algo.h:2983:5: note: candidate: template<class _BIter, class _Compare> bool std::next_permutation(_BIter, _BIter, _Compare)
next_permutation(_BidirectionalIterator __first,
^~~~~~~~~~~~~~~~
/usr/include/c++/6/bits/stl_algo.h:2983:5: note: template argument deduction/substitution failed:
main.cpp:15:32: note: candidate expects 3 arguments, 1 provided
} while (next_permutation(v));
^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !