Borderou de evaluare (job #3210046)
Utilizator | Data | 4 martie 2024 15:52:20 | |
---|---|---|---|
Problema | Bemo | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'void lee(int, int)':
main.cpp:48:18: error: 'INT_MAX' was not declared in this scope
48 | int mn = INT_MAX, nexti = 0, nextj = 0;
| ^~~~~~~
main.cpp:6:1: note: 'INT_MAX' is defined in header '<climits>'; did you forget to '#include <climits>'?
5 | #include <bitset>
+++ |+#include <climits>
6 |
main.cpp:57:17: error: 'nexti' was not declared in this scope
57 | nexti = ii; nextj = jj;
| ^~~~~
main.cpp:57:29: error: 'nextj' was not declared in this scope
57 | nexti = ii; nextj = jj;
| ^~~~~
main.cpp:60:17: error: 'nexti' was not declared in this scope
60 | q.push({nexti, nextj});
| ^~~~~
main.cpp:60:24: error: 'nextj' was not declared in this scope
60 | q.push({nexti, nextj});
| ^~~~~
main.cpp:60:15: error: no matching function for call to 'std::queue<q_entry>::push(<brace-enclosed initializer list>)'
60 | q.push({nexti, nextj});
| ~~~~~~^~~~~~~~~~~~~~~~
In file included from /usr/include/c++/12.2.1/queue:64,
from main.cpp:4:
/usr/include/c++/12.2.1/bits/stl_queue.h:285:7: note: candidate: 'void std::queue<_Tp, _Sequence>::push(const value_type&) [with _Tp = q_entry; _Sequence = std::deque<q_entry, std::allocator<q_entry> >; value_type = q_entry]'
285 | push(const value_type& __x)
| ^~~~
/usr/include/c++/12.2.1/bits/stl_queue.h:285:30: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'const std::queue<q_entry>::value_type&' {aka 'const q_entry&'}
285 | push(const value_type& __x)
| ~~~~~~~~~~~~~~~~~~^~~
/usr/include/c++/12.2.1/bits/stl_queue.h:290:7: note: candidate: 'void std::queue<_Tp, _Sequence>::push(value_type&&) [with _Tp = q_entry; _Sequence = std::deque<q_entry, std::allocator<q_entry> >; value_type = q_entry]'
290 | push(value_type&& __x)
| ^~~~
/usr/include/c++/12.2.1/bits/stl_queue.h:290:25: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'std::queue<q_entry>::value_type&&' {aka 'q_entry&&'}
290 | push(value_type&& __x)
| ~~~~~~~~~~~~~^~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !