Borderou de evaluare (job #2862169)

Utilizator horiaSefHoria Oprescu horiaSef Data 4 martie 2022 23:10:31
Problema Sdistante Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:7:11: error: expected unqualified-id before numeric constant 7 | const int 1000000007; | ^~~~~~~~~~ main.cpp: In function 'int main()': main.cpp:17:22: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'long unsigned int'} [-Wsign-compare] 17 | for(int i = 0; i < strlen(s); i <<= 1) | ~~^~~~~~~~~~~ main.cpp:18:26: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'long unsigned int'} [-Wsign-compare] 18 | for(int j = 0; j < strlen(s); j <<= 1) | ~~^~~~~~~~~~~ main.cpp:19:30: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'long unsigned int'} [-Wsign-compare] 19 | for(int l = 1; l <= strlen(s)-j; l <<= 1) | ~~^~~~~~~~~~~~~~ main.cpp:22:25: error: 'cnt' was not declared in this scope; did you mean 'int'? 22 | cnt += 1%ciudat; | ^~~ | int main.cpp:22:34: error: 'ciudat' was not declared in this scope 22 | cnt += 1%ciudat; | ^~~~~~ main.cpp:23:10: error: 'cnt' was not declared in this scope; did you mean 'int'? 23 | g << cnt; | ^~~ | int Non zero exit status: 1

Ceva nu functioneaza?