Borderou de evaluare (job #806687)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Die Hard | Compilator | cpp-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 26 ian. 2025 17:48:08 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:6:1: error: expected ',' or ';' before 'ofstream'
6 | ofstream cout("diehard.out");
| ^~~~~~~~
main.cpp: In function 'int main()':
main.cpp:91:5: error: 'cout' was not declared in this scope
91 | cout << sol << '\n' << linieStart << ' ' << traseu;
| ^~~~
main.cpp:4:1: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
3 | #include <algorithm>
+++ |+#include <iostream>
4 | using namespace std;