combo.cpp:24:17: warning: overflow in conversion from 'double' to 'int' changes value from '1.0e+18' to '2147483647' [-Woverflow]
24 | const int INF = 1e18;
| ^~~~
combo.cpp: In function 'std::string guess_sequence(int)':
combo.cpp:34:48: error: could not convert 'f' from 'char' to 'std::string' {aka 'std::__cxx11::basic_string<char>'}
34 | char f = getBeginChar(); if(N == 1) return f; vector<string> againstChar;
| ^
| |
| char
combo.cpp:40:37: error: invalid types 'char[int]' for array subscript
40 | string mergeString = pre + f[0] + pre + f[1] + f[0] + pre + f[1] + f[1] +
| ^
combo.cpp:40:50: error: invalid types 'char[int]' for array subscript
40 | string mergeString = pre + f[0] + pre + f[1] + f[0] + pre + f[1] + f[1] +
| ^
combo.cpp:40:57: error: invalid types 'char[int]' for array subscript
40 | string mergeString = pre + f[0] + pre + f[1] + f[0] + pre + f[1] + f[1] +
| ^
combo.cpp:40:70: error: invalid types 'char[int]' for array subscript
40 | string mergeString = pre + f[0] + pre + f[1] + f[0] + pre + f[1] + f[1] +
| ^
combo.cpp:40:77: error: invalid types 'char[int]' for array subscript
40 | string mergeString = pre + f[0] + pre + f[1] + f[0] + pre + f[1] + f[1] +
| ^
combo.cpp:41:16: error: invalid types 'char[int]' for array subscript
41 | pre + f[1] + [2];
| ^
combo.cpp:41:23: error: expected identifier before numeric constant
41 | pre + f[1] + [2];
| ^
combo.cpp: In lambda function:
combo.cpp:41:25: error: expected '{' before ';' token
41 | pre + f[1] + [2];
| ^
combo.cpp: In function 'std::string guess_sequence(int)':
combo.cpp:43:37: error: invalid types 'char[int]' for array subscript
43 | if(answer == M + 1) pre += f[0]; else if(answer == M + 2) pre += f[1]; else {
| ^
combo.cpp:43:75: error: invalid types 'char[int]' for array subscript
43 | if(answer == M + 1) pre += f[0]; else if(answer == M + 2) pre += f[1]; else {
| ^
combo.cpp:44:21: error: invalid types 'char[int]' for array subscript
44 | pre += f[2];
| ^
combo.cpp:47:12: error: 'answer' was not declared in this scope
47 | return answer;
| ^~~~~~