Borderou de evaluare (job #737439)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Livada1 (clasa a 9-a) | Compilator | cpp-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 10 oct. 2023 21:33:10 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:2:1: error: 'ifstream' does not name a type
2 | ifstream cin("livada1.in");
| ^~~~~~~~
main.cpp:3:1: error: 'ofstream' does not name a type
3 | ofstream cout("livada1.out");
| ^~~~~~~~
main.cpp: In function 'int main()':
main.cpp:10:5: error: 'cin' was not declared in this scope
10 | cin>>n>>m>>k;
| ^~~
main.cpp:2:1: note: 'std::cin' is defined in header '<iostream>'; did you forget to '#include <iostream>'?
1 | #include <fstream>
+++ |+#include <iostream>
2 | ifstream cin("livada1.in");
main.cpp:43:5: error: 'cout' was not declared in this scope
43 | cout<<rez;
| ^~~~
main.cpp:43:5: note: 'std::cout' is defined in header '<iostream>'; did you forget to '#include <iostream>'?