Borderou de evaluare (job #3330329)

Utilizator ultra980Alex Stan ultra980 Data 18 decembrie 2025 18:53:43
Problema Logic3 Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:13:1: error: 'bitset' does not name a type 13 | bitset<1 << MAXNIV> inputs[MAXK]; | ^~~~~~ main.cpp: In function 'void citire()': main.cpp:23:14: error: 'inputs' was not declared in this scope; did you mean 'puts'? 23 | fin >> inputs[i]; | ^~~~~~ | puts main.cpp: At global scope: main.cpp:28:13: error: 'bitset' was not declared in this scope 28 | int rez_sir(bitset<1 << MAXNIV> s) { | ^~~~~~ main.cpp:2:1: note: 'std::bitset' is defined in header '<bitset>'; did you forget to '#include <bitset>'? 1 | #include <fstream> +++ |+#include <bitset> 2 | #include <string> main.cpp:28:33: error: 's' was not declared in this scope 28 | int rez_sir(bitset<1 << MAXNIV> s) { | ^ main.cpp: In function 'void cer1()': main.cpp:43:21: error: 'inputs' was not declared in this scope; did you mean 'puts'? 43 | fout << rez_sir(inputs[i]) << '\n'; | ^~~~~~ | puts main.cpp:43:30: error: 'rez_sir' cannot be used as a function 43 | fout << rez_sir(inputs[i]) << '\n'; | ^ Non zero exit status: 1

Ceva nu functioneaza?