Borderou de evaluare (job #810492)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Cmmdc2 (clasa a 9-a) | Compilator | cpp-32 |
Rundă | lasm_21_02_2025_clasa10 | Status | evaluat |
Dată | 21 feb. 2025 15:31:25 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:63:18: error: variable 'std::ifstream fin' has initializer but incomplete type
63 | ifstream fin ("cmmdc2.in")
| ^
main.cpp:5:1: note: 'std::ifstream' is defined in header '<fstream>'; this is probably fixable by adding '#include <fstream>'
4 | #include <numeric>
+++ |+#include <fstream>
5 |
main.cpp:64:5: error: expected ',' or ';' before 'ofstream'
64 | ofstream fout ("cmmdc2.out")
| ^~~~~~~~
main.cpp:83:5: error: 'fout' was not declared in this scope
83 | fout << resultGCD << "\n";
| ^~~~