Problem musicscales
User Zubair
Submission Time 2026-06-23 16:55:56
Score 0
Max Time N/A
Max Memory N/A

Compile Error

musicscales.cpp: In function ‘int main()’:
musicscales.cpp:11:1: error: expected ‘,’ or ‘;’ before ‘const’
11 | const vector<int> MAJOR_PATTERN = {2, 2, 1, 2, 2, 2, 1};
| ^~~~~
musicscales.cpp:14:41: error: a function-definition is not allowed here before ‘{’ token
14 | int find_note_index(const string& note) {
| ^
musicscales.cpp:21:12: error: a function-definition is not allowed here before ‘{’ token
21 | int main() {
| ^