Main.cpp: In function 'void solve()':
Main.cpp:2:15: error: 'cin' was not declared in this scope
2 | int n, q; cin >> n >> q;
| ^~~
Main.cpp:3:5: error: 'string' was not declared in this scope
3 | string a, b; cin >> a >> b;
| ^~~~~~
Main.cpp:3:25: error: 'a' was not declared in this scope
3 | string a, b; cin >> a >> b;
| ^
Main.cpp:3:30: error: 'b' was not declared in this scope
3 | string a, b; cin >> a >> b;
| ^
Main.cpp:4:11: error: expected ';' before 'x'
4 | string x = a, y = b;
| ^~
| ;
Main.cpp:10:13: error: 'x' was not declared in this scope
10 | x[p] = c;
| ^
Main.cpp:12:15: error: 'y' was not declared in this scope
12 | b=y;
| ^
Main.cpp:25:9: error: 'cout' was not declared in this scope
25 | cout << (a==b?"da":"ne") << '\n';
| ^~~~