Borderou de evaluare (job #3348741)

Utilizator TomMMMMatei Toma TomMMM Data 23 martie 2026 20:00:03
Problema Ro Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'int get_score(sint&)': main.cpp:105:23: warning: comparison of integer expressions of different signedness: 'char' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 105 | for(char i = 0; i < bicon_comp[cnt_bicon].size(); i++) | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.cpp: At global scope: main.cpp:180:1: error: 'bitset' does not name a type 180 | bitset<N_MAX> turned; | ^~~~~~ main.cpp:181:1: error: 'queue' does not name a type 181 | queue<int> que; | ^~~~~ main.cpp: In function 'void reconstruct_solution()': main.cpp:183:36: error: 'turned' was not declared in this scope 183 | if(best[1][ON] < best[1][OFF]) turned[1] = ON; | ^~~~~~ main.cpp:184:36: error: 'turned' was not declared in this scope 184 | else turned[1] = OFF; | ^~~~~~ main.cpp:185:29: error: 'que' was not declared in this scope 185 | for(int g: art_sons[1]) que.push(g); | ^~~ main.cpp:187:12: error: 'que' was not declared in this scope 187 | while(!que.empty()){ | ^~~ main.cpp:190:32: error: 'turned' was not declared in this scope 190 | sint states = mask_[g][turned[bicon_comp[g][0]]]; | ^~~~~~ main.cpp:191:26: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 191 | for(int i = 1; i < bicon_comp[g].size(); i++){ | ~~^~~~~~~~~~~~~~~~~~~~~~ main.cpp: In function 'void get_capitals()': main.cpp:202:12: error: 'turned' was not declared in this scope 202 | if(turned[i]) que.push(i); | ^~~~~~ main.cpp:202:23: error: 'que' was not declared in this scope 202 | if(turned[i]) que.push(i); | ^~~ main.cpp: In function 'void print_solution()': main.cpp:209:13: error: 'que' was not declared in this scope 209 | fout << que.size() << '\n'; | ^~~ Non zero exit status: 1

Ceva nu functioneaza?