combo.cpp: In function 'std::string guess_sequence(int)':
combo.cpp:15:24: error: expected identifier before 'X'
15 | vector<char> btns = ['X','Y','B','A'];
| ^~~
combo.cpp:15:27: error: expected ']' before ',' token
15 | vector<char> btns = ['X','Y','B','A'];
| ^
| ]
combo.cpp: In lambda function:
combo.cpp:15:27: error: expected '{' before ',' token
combo.cpp: In function 'std::string guess_sequence(int)':
combo.cpp:15:27: error: conversion from 'guess_sequence(int)::<lambda()>' to non-scalar type 'std::vector<char>' requested
combo.cpp:15:28: error: expected unqualified-id before 'Y'
15 | vector<char> btns = ['X','Y','B','A'];
| ^~~
combo.cpp:18:9: error: 's' was not declared in this scope
18 | if (s.lenght() == 0) {
| ^
combo.cpp:19:14: error: 'let' was not declared in this scope
19 | for (let i = 0; i < 4; i++) {
| ^~~
combo.cpp:19:25: error: 'i' was not declared in this scope
19 | for (let i = 0; i < 4; i++) {
| ^