combo.cpp: In function 'std::string guess_sequence(int)':
combo.cpp:39:37: error: invalid types 'char[int]' for array subscript
39 | string mergeString = pre + f[0] + pre + f[1] + f[0] + pre + f[1] + f[1] +
| ^
combo.cpp:39:50: error: invalid types 'char[int]' for array subscript
39 | string mergeString = pre + f[0] + pre + f[1] + f[0] + pre + f[1] + f[1] +
| ^
combo.cpp:39:57: error: invalid types 'char[int]' for array subscript
39 | string mergeString = pre + f[0] + pre + f[1] + f[0] + pre + f[1] + f[1] +
| ^
combo.cpp:39:70: error: invalid types 'char[int]' for array subscript
39 | string mergeString = pre + f[0] + pre + f[1] + f[0] + pre + f[1] + f[1] +
| ^
combo.cpp:39:77: error: invalid types 'char[int]' for array subscript
39 | string mergeString = pre + f[0] + pre + f[1] + f[0] + pre + f[1] + f[1] +
| ^
combo.cpp:40:16: error: invalid types 'char[int]' for array subscript
40 | pre + f[1] + [2];
| ^
combo.cpp:40:23: error: expected identifier before numeric constant
40 | pre + f[1] + [2];
| ^
combo.cpp: In lambda function:
combo.cpp:40:25: error: expected '{' before ';' token
40 | pre + f[1] + [2];
| ^
combo.cpp: In function 'std::string guess_sequence(int)':
combo.cpp:42:37: error: invalid types 'char[int]' for array subscript
42 | if(answer == M + 1) pre += f[0]; else if(answer == M + 2) pre += f[1]; else {
| ^
combo.cpp:42:75: error: invalid types 'char[int]' for array subscript
42 | if(answer == M + 1) pre += f[0]; else if(answer == M + 2) pre += f[1]; else {
| ^
combo.cpp:43:21: error: invalid types 'char[int]' for array subscript
43 | pre += f[2];
| ^
combo.cpp:46:12: error: 'answer' was not declared in this scope
46 | return answer;
| ^~~~~~