Borderou de evaluare (job #621922)
| Utilizator |
|
IP | ascuns |
|---|---|---|---|
| Problemă | Furnica (clasa a 6-a) | Compilator | cpp-32 |
| Rundă | Arhiva de probleme | Status | evaluat |
| Dată | 21 dec. 2021 13:55:39 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:1:9: error: #include expects "FILENAME" or <FILENAME>
1 | #include
| ^
main.cpp: In function 'int main()':
main.cpp:8:1: error: 'ifstream' was not declared in this scope
8 | ifstream cin ("furnica.in");
| ^~~~~~~~
main.cpp:1:1: note: 'std::ifstream' is defined in header '<fstream>'; did you forget to '#include <fstream>'?
+++ |+#include <fstream>
1 | #include
main.cpp:9:1: error: 'ofstream' was not declared in this scope
9 | ofstream cout ("furnica.out");
| ^~~~~~~~
main.cpp:9:1: note: 'std::ofstream' is defined in header '<fstream>'; did you forget to '#include <fstream>'?
main.cpp:11:1: error: 'cin' was not declared in this scope
11 | cin >> n;
| ^~~
main.cpp:1:1: note: 'std::cin' is defined in header '<iostream>'; did you forget to '#include <iostream>'?
+++ |+#include <iostream>
1 | #include
main.cpp:30:1: error: 'cout' was not declared in this scope
30 | cout << s << " ";
| ^~~~
main.cpp:30:1: note: 'std::cout' is defined in header '<iostream>'; did you forget to '#include <iostream>'?