Borderou de evaluare (job #3288225)
Utilizator | Data | 20 martie 2025 21:14:52 | |
---|---|---|---|
Problema | Clică de dimensiune maximă | Status | done |
Runda | arhiva-utcn | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'std::vector<int> CalculeazaDimensiuniComp(const std::vector<short int>&, int)':
main.cpp:101:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<short int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
101 | for (int i = 0; i < MapNoduri.size(); i++) {
| ~~^~~~~~~~~~~~~~~~~~
main.cpp: In function 'int CelMaiLungLant(const std::vector<InchidereTr>&, const std::vector<int>&)':
main.cpp:121:5: error: 'queue' was not declared in this scope
121 | queue<int> q;
| ^~~~~
main.cpp:7:1: note: 'std::queue' is defined in header '<queue>'; did you forget to '#include <queue>'?
6 | #include<algorithm> // Pentru functia max_element
+++ |+#include <queue>
7 | using namespace std;
main.cpp:121:11: error: expected primary-expression before 'int'
121 | queue<int> q;
| ^~~
main.cpp:124:13: error: 'q' was not declared in this scope
124 | q.push(u);
| ^
main.cpp:129:13: error: 'q' was not declared in this scope
129 | while (!q.empty()) {
| ^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !