Borderou de evaluare (job #3332878)
| Utilizator | Data | 9 ianuarie 2026 16:51:25 | |
|---|---|---|---|
| Problema | Struti | Status | done |
| Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
| Scor | 0 | ||
Raport evaluator
Eroare de compilare:
main.cpp:6:10: error: conflicting declaration 'std::ofstream fin'
6 | ofstream fin("struti.out");
| ^~~
main.cpp:5:10: note: previous declaration as 'std::ifstream fin'
5 | ifstream fin("struti.in");
| ^~~
main.cpp: In function 'int main()':
main.cpp:32:28: error: invalid use of non-static member function 'void std::deque<_Tp, _Alloc>::pop_back() [with _Tp = int; _Alloc = std::allocator<int>]'
32 | dq_min.pop_back;
| ~~~~~~~^~~~~~~~
In file included from /usr/include/c++/12.2.1/deque:64,
from /usr/include/c++/12.2.1/x86_64-pc-linux-gnu/bits/stdc++.h:68,
from main.cpp:1:
/usr/include/c++/12.2.1/bits/stl_deque.h:1597:7: note: declared here
1597 | pop_back() _GLIBCXX_NOEXCEPT
| ^~~~~~~~
main.cpp:59:28: error: invalid use of non-static member function 'void std::deque<_Tp, _Alloc>::pop_back() [with _Tp = int; _Alloc = std::allocator<int>]'
59 | dq_min.pop_back;
| ~~~~~~~^~~~~~~~
/usr/include/c++/12.2.1/bits/stl_deque.h:1597:7: note: declared here
1597 | pop_back() _GLIBCXX_NOEXCEPT
| ^~~~~~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !
