match.cpp:1:8: error: stray '#' in program
1 | abbaaaa#include <bits/stdc++.h>
| ^
match.cpp:1:1: error: 'abbaaaa' does not name a type
1 | abbaaaa#include <bits/stdc++.h>
| ^~~~~~~
match.cpp:10:1: error: 'string' does not name a type
10 | string s ;
| ^~~~~~
match.cpp:11:1: error: 'stack' does not name a type
11 | stack<char>st ;
| ^~~~~
match.cpp: In function 'void solve(int, int)':
match.cpp:21:19: error: 's' was not declared in this scope
21 | int idx = prv[r][s[l]-'a'] ;
| ^
match.cpp: In function 'int main()':
match.cpp:28:2: error: 'ios_base' has not been declared
28 | ios_base::sync_with_stdio(0) ;
| ^~~~~~~~
match.cpp:29:2: error: 'cin' was not declared in this scope
29 | cin.tie(0) ;
| ^~~
match.cpp:30:7: error: 's' was not declared in this scope
30 | cin>>s ;
| ^
match.cpp:35:6: error: 'st' was not declared in this scope; did you mean 'std'?
35 | if(st.size() && st.top() == s[i])
| ^~
| std
match.cpp:40:5: error: 'st' was not declared in this scope; did you mean 'std'?
40 | if(st.size())
| ^~
| std
match.cpp:41:10: error: 'cout' was not declared in this scope
41 | return cout<<-1<<"\n" , 0 ;
| ^~~~
match.cpp:55:3: error: 'cout' was not declared in this scope
55 | cout<<ans[i] ;
| ^~~~
match.cpp:56:2: error: 'cout' was not declared in this scope
56 | cout<<"\n" ;
| ^~~~