Borderou de evaluare (job #3353495)
| Utilizator | Data | 7 mai 2026 18:44:39 | |
|---|---|---|---|
| Problema | Mstack | Status | done |
| Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
| Scor | 0 | ||
Raport evaluator
Eroare de compilare:
main.cpp: In function 'void reinsert(std::stack<int>&, std::stack<int>&, int, int)':
main.cpp:15:23: warning: comparison of integer expressions of different signedness: 'std::stack<int>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
15 | while (dq2.size() > sz)
| ~~~~~~~~~~~^~~~
main.cpp: In function 'void push()':
main.cpp:35:19: warning: comparison of integer expressions of different signedness: 'std::stack<int>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
35 | if (st.size() < sz / 2)
| ~~~~~~~~~~^~~~~~~~
main.cpp: In function 'void pop()':
main.cpp:69:9: error: continue statement not within a loop
69 | continue;
| ^~~~~~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !
