Borderou de evaluare (job #2781524)
Utilizator | Data | 9 octombrie 2021 18:39:30 | |
---|---|---|---|
Problema | Arbore partial de cost minim | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:7:1: error: 'ofsteram' does not name a type
7 | ofsteram cout("apm.out");
| ^~~~~~~~
main.cpp: In function 'int main()':
main.cpp:38:21: warning: comparison of integer expressions of different signedness: 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
38 | while(ans.size()<n-1)
| ~~~~~~~~~~^~~~
main.cpp:57:5: error: 'cout' was not declared in this scope
57 | cout<<suma<<'\n'<<ans.size()<<'\n';
| ^~~~
main.cpp:5:1: note: 'std::cout' is defined in header '<iostream>'; did you forget to '#include <iostream>'?
4 | #include <queue>
+++ |+#include <iostream>
5 | using namespace std;
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !