zagrade.cpp: In function 'int main()':
zagrade.cpp:14:10: error: 'n' was not declared in this scope; did you mean 'yn'?
14 | cin>>n>>q;
| ^
| yn
zagrade.cpp:14:13: error: 'q' was not declared in this scope
14 | cin>>n>>q;
| ^
zagrade.cpp:15:5: error: 'v' was not declared in this scope
15 | v.pb(i);
| ^
zagrade.cpp:15:10: error: 'i' was not declared in this scope
15 | v.pb(i);
| ^
zagrade.cpp:22:9: error: 'b1' was not declared in this scope; did you mean 'y1'?
22 | b1=query(v[v.size()-2],v[v.size()-1]);
| ^~
| y1
zagrade.cpp:24:13: error: 'c' was not declared in this scope
24 | c[v[v.size()-2]]='(';
| ^
zagrade.cpp:40:19: error: 'c' was not declared in this scope
40 | cout<<c[i];
| ^