Borderou de evaluare (job #3235376)
Utilizator | Data | 17 iunie 2024 15:05:36 | |
---|---|---|---|
Problema | Lowest Common Ancestor | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'void afisare(node*)':
main.cpp:140:9: error: 'cout' was not declared in this scope
140 | cout << p->valoare << ' ';
| ^~~~
main.cpp:7:1: note: 'std::cout' is defined in header '<iostream>'; did you forget to '#include <iostream>'?
6 | #include <cmath>
+++ |+#include <iostream>
7 |
main.cpp:143:5: error: 'cout' was not declared in this scope
143 | cout << endl;
| ^~~~
main.cpp:143:5: note: 'std::cout' is defined in header '<iostream>'; did you forget to '#include <iostream>'?
main.cpp: In function 'node* mergeKLists(std::vector<node*>&)':
main.cpp:171:27: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<node*>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
171 | for (int i = 0; i < lists.size(); i++) {
| ~~^~~~~~~~~~~~~~
main.cpp: In function 'int minGroups(std::vector<std::vector<int> >&)':
main.cpp:198:27: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::vector<int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
198 | for (int i = 0; i < intervals.size(); i++) {
| ~~^~~~~~~~~~~~~~~~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !