password.cpp: In function 'std::string guess(int, int)':
password.cpp:23:17: error: expected ';' before ')' token
23 | for(cnt[0]--){
| ^
| ;
password.cpp:26:5: error: expected primary-expression before 'for'
26 | for(int c = 'b'; c < 'a' + s; c++){
| ^~~
password.cpp:25:6: error: expected ';' before 'for'
25 | }
| ^
| ;
26 | for(int c = 'b'; c < 'a' + s; c++){
| ~~~
password.cpp:26:5: error: expected primary-expression before 'for'
26 | for(int c = 'b'; c < 'a' + s; c++){
| ^~~
password.cpp:25:6: error: expected ')' before 'for'
25 | }
| ^
| )
26 | for(int c = 'b'; c < 'a' + s; c++){
| ~~~
password.cpp:23:8: note: to match this '('
23 | for(cnt[0]--){
| ^
password.cpp:38:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
38 | if(b == slice.size()){
| ~~^~~~~~~~~~~~~~~