Borderou de evaluare (job #2969136)
Utilizator | Data | 22 ianuarie 2023 16:56:49 | |
---|---|---|---|
Problema | Cele mai apropiate puncte din plan | 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:39:54: error: no match for 'operator=' (operand types are 'std::_Rb_tree_const_iterator<Point>' and 'std::set<Point, bool (*)(const Point&, const Point&)>::size_type' {aka 'long unsigned int'})
39 | firstIt = activePoints.erase(*firstIt);
| ^
In file included from /usr/include/c++/10/map:60,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:81,
from main.cpp:1:
/usr/include/c++/10/bits/stl_tree.h:328:12: note: candidate: 'constexpr std::_Rb_tree_const_iterator<Point>& std::_Rb_tree_const_iterator<Point>::operator=(const std::_Rb_tree_const_iterator<Point>&)'
328 | struct _Rb_tree_const_iterator
| ^~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/10/bits/stl_tree.h:328:12: note: no known conversion for argument 1 from 'std::set<Point, bool (*)(const Point&, const Point&)>::size_type' {aka 'long unsigned int'} to 'const std::_Rb_tree_const_iterator<Point>&'
/usr/include/c++/10/bits/stl_tree.h:328:12: note: candidate: 'constexpr std::_Rb_tree_const_iterator<Point>& std::_Rb_tree_const_iterator<Point>::operator=(std::_Rb_tree_const_iterator<Point>&&)'
/usr/include/c++/10/bits/stl_tree.h:328:12: note: no known conversion for argument 1 from 'std::set<Point, bool (*)(const Point&, const Point&)>::size_type' {aka 'long unsigned int'} to 'std::_Rb_tree_const_iterator<Point>&&'
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !