Borderou de evaluare (job #2950747)
Utilizator | Data | 4 decembrie 2022 17:01:46 | |
---|---|---|---|
Problema | A+B | 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:17:3: error: 'fin' was not declared in this scope
17 | fin >> n;
| ^~~
main.cpp:44:52: error: no match for 'operator<=' (operand types are 'int' and 'punct')
44 | if( !(puncte[lat_dr].x <= y_curent && y_curent <= puncte[lat_dr] ))
| ~~~~~~~~ ^~ ~~~~~~~~~~~~~~
| | |
| int punct
In file included from /usr/include/c++/10/bits/stl_algobase.h:64,
from /usr/include/c++/10/bits/char_traits.h:39,
from /usr/include/c++/10/ios:40,
from /usr/include/c++/10/istream:38,
from /usr/include/c++/10/fstream:38,
from main.cpp:1:
/usr/include/c++/10/bits/stl_pair.h:508:5: note: candidate: 'template<class _T1, class _T2> constexpr bool std::operator<=(const std::pair<_T1, _T2>&, const std::pair<_T1, _T2>&)'
508 | operator<=(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y)
| ^~~~~~~~
/usr/include/c++/10/bits/stl_pair.h:508:5: note: template argument deduction/substitution failed:
main.cpp:44:68: note: mismatched types 'const std::pair<_T1, _T2>' and 'int'
44 | if( !(puncte[lat_dr].x <= y_curent && y_curent <= puncte[lat_dr] ))
| ^
In file included from /usr/include/c++/10/bits/stl_algobase.h:67,
from /usr/include/c++/10/bits/char_traits.h:39,
from /usr/include/c++/10/ios:40,
from /usr/include/c++/10/istream:38,
from /usr/include/c++/10/fstream:38,
from main.cpp:1:
/usr/include/c++/10/bits/stl_iterator.h:409:5: note: candidate: 'template<class _Iterator> bool std::operator<=(const std::reverse_iterator<_Iterator>&, const std::reverse_iterator<_Iterator>&)'
409 | operator<=(const reverse_iterator<_Iterator>& __x,
| ^~~~~~~~
/usr/include/c++/10/bits/stl_iterator.h:409:5: note: template argument deduction/substitution failed:
main.cpp:44:68: note: mismatched types 'const std::reverse_iterator<_Iterator>' and 'int'
44 | if( !(puncte[lat_dr].x <= y_curent && y_curent <= puncte[lat_dr] ))
| ^
In file included from /usr/include/c++/10/bits/stl_algobase.h:67,
from /usr/include/c++/10/bits/char_traits.h:39,
from /usr/include/c++/10/ios:40,
from /usr/include/c++/10/istream:38,
from /usr/include/c++/10/fstream:38,
from main.cpp:1:
/usr/include/c++/10/bits/stl_iterator.h:447:5: note: candidate: 'template<class _IteratorL, class _IteratorR> bool std::operator<=(const std::reverse_iterator<_Iterator>&, const std::reverse_iterator<_IteratorR>&)'
447 | operator<=(const reverse_iterator<_IteratorL>& __x,
| ^~~~~~~~
/usr/include/c++/10/bits/stl_iterator.h:447:5: note: template argument deduction/substitution failed:
main.cpp:44:68: note: mismatched types 'const std::reverse_iterator<_Iterator>' and 'int'
44 | if( !(puncte[lat_dr].x <= y_curent && y_curent <= puncte[lat_dr] ))
| ^
In file included from /usr/include/c++/10/bits/stl_algobase.h:67,
from /usr/include/c++/10/bits/char_traits.h:39,
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !