Borderou de evaluare (job #656496)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Triunghiurile de 5 bani (clasa a 5-a) | Compilator | cpp-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 31 iul. 2022 12:14:43 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:8:14: error: conflicting declaration 'std::ofstream cin'
8 | ofstream cin("triunghiuri.out");
| ^~~
main.cpp:7:14: note: previous declaration as 'std::ifstream cin'
7 | ifstream cin("triunghiuri.in");
| ^~~
main.cpp:16:5: error: 'cout' was not declared in this scope
16 | cout << mon * 5 / 100 << ' ' << mon * 5 % 100;
| ^~~~
main.cpp:2:1: note: 'std::cout' is defined in header '<iostream>'; did you forget to '#include <iostream>'?
1 | #include <fstream>
+++ |+#include <iostream>
2 |