Borderou de evaluare (job #3271767)

Utilizator PescaPescariu Matei Alexandru Pesca Data 27 ianuarie 2025 12:04:56
Problema Ciclu hamiltonian de cost minim Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:129:5: error: 'ifstream' does not name a type 129 | ifstream fin("hamilton.in"); | ^~~~~~~~ main.cpp:130:5: error: 'ofstream' does not name a type 130 | ofstream fout("hamilton.out"); | ^~~~~~~~ main.cpp: In function 'int hamilton::hamilton(std::vector<std::vector<std::pair<int, int> > >)': main.cpp:182:32: error: 'log2' was not declared in this scope 182 | int node = log2(lsb) + 1; | ^~~~ main.cpp: In function 'void hamilton::run()': main.cpp:202:9: error: 'fin' was not declared in this scope 202 | fin >> n >> m; | ^~~ main.cpp:211:13: error: 'fout' was not declared in this scope 211 | fout << "Nu exista solutie"; | ^~~~ main.cpp:213:13: error: 'fout' was not declared in this scope 213 | fout << rez; | ^~~~ Non zero exit status: 1

Ceva nu functioneaza?