Borderou de evaluare (job #807821)

Utilizator avatar BogdanPetre Bogdan BogdanPetre IP ascuns
Problemă Trei Divizori (clasa a 6-a) Compilator cpp-32
Rundă Arhiva de probleme Status evaluat
Dată 2 feb. 2025 22:39:27 Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'int prim(long long int)': main.cpp:9:5: warning: this 'for' clause does not guard... [-Wmisleading-indentation] 9 | for(int d=3;d*d<=x;d=d+2) | ^~~ main.cpp:11:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for' 11 | return 1; | ^~~~~~ main.cpp: In function 'int main()': main.cpp:14:18: error: variable 'std::ifstream fin' has initializer but incomplete type 14 | { ifstream fin ("treidiv.in"); | ^ main.cpp:3:1: note: 'std::ifstream' is defined in header '<fstream>'; this is probably fixable by adding '#include <fstream>' 2 | #include<cmath> +++ |+#include <fstream> 3 | using namespace std; main.cpp:15:19: error: variable 'std::ofstream fout' has initializer but incomplete type 15 | ofstream fout ("treidiv.out"); | ^ main.cpp:15:19: note: 'std::ofstream' is defined in header '<fstream>'; this is probably fixable by adding '#include <fstream>'