Borderou de evaluare (job #2235980)

Utilizator mihai50000Mihai-Cristian Popescu mihai50000 Data 27 august 2018 15:30:06
Problema Subsir Binar Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:40:18: warning: overflow in implicit constant conversion [-Woverflow] const int LINF = 0x3f3f3f3f3f3f3f3f; ^~~~~~~~~~~~~~~~~~ user.cpp:53:1: error: ‘bitset’ does not name a type bitset <N> num = 0; ^~~~~~ user.cpp: In function ‘void add()’: user.cpp:60:8: error: ‘num’ was not declared in this scope while(num[r] == 1) ^~~ user.cpp:62:2: error: ‘num’ was not declared in this scope num[r] = 1; ^~~ user.cpp: In function ‘int main()’: user.cpp:78:10: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] while(i < s.size()) ~~^~~~~~~~~~ user.cpp:81:29: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int j = l; j < N && i < s.size(); j++) ~~^~~~~~~~~~ user.cpp:82:21: error: ‘num’ was not declared in this scope if(s[i] - '0' == num[j]) ^~~

Ceva nu functioneaza?