Borderou de evaluare (job #736395)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Puzzle2 | Compilator | cpp-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 6 oct. 2023 20:49:11 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:4:1: error: 'ifstream' does not name a type
4 | ifstream cin ("puzzle2.in");
| ^~~~~~~~
main.cpp:5:1: error: 'ofstream' does not name a type
5 | ofstream cout ("puzzle2.out");
| ^~~~~~~~
main.cpp: In function 'int main()':
main.cpp:31:5: error: 'cin' was not declared in this scope
31 | cin >> n;
| ^~~
main.cpp:3:1: note: 'std::cin' is defined in header '<iostream>'; did you forget to '#include <iostream>'?
2 | #include <algorithm>
+++ |+#include <iostream>
3 |
main.cpp:44:13: error: 'cout' was not declared in this scope
44 | cout << x[i] << " ";
| ^~~~
main.cpp:44:13: note: 'std::cout' is defined in header '<iostream>'; did you forget to '#include <iostream>'?