0_0_20614678_27246.cpp:14:25: error: stray '#' in program
using namespace std;#define INF 0x3f3f3f3f#define inf -0x3f3f3f3f#define lson l,m,rt<<1#define rson m+1,r,rt<<1|1#define mem0(a) memset(a,0,sizeof(a))#define mem1(a) memset(a,-1,sizeof(a))#define mem(a, b) memset(a, b, sizeof(a))typedef long long ll;char s[1010];int l[1010],r[1010]; int main(){ int t; scanf("%d",&t); while(t--){ scanf("%s",s); mem0(l); mem0(r); int len=strlen(s); for(int i=len-1;i>=0;i--){ if(i==len-1) r[i]=(s[i]==')'); else r[i]=r[i+1]+(s[i]==')'); } for(int i=0;i<len;i++){ if(i==0) l[i]=(s[i]=='('); else l[i]=l[i-1]+(s[i]=='('); } int ans=INF; for(int i=0;i<len;i++) ans=min(ans,l[i]+r[i]-1); printf("%d\n",ans); } return 0;}
^
0_0_20614678_27246.cpp:14:47: error: stray '#' in program
using namespace std;#define INF 0x3f3f3f3f#define inf -0x3f3f3f3f#define lson l,m,rt<<1#define rson m+1,r,rt<<1|1#define mem0(a) memset(a,0,sizeof(a))#define mem1(a) memset(a,-1,sizeof(a))#define mem(a, b) memset(a, b, sizeof(a))typedef long long ll;char s[1010];int l[1010],r[1010]; int main(){ int t; scanf("%d",&t); while(t--){ scanf("%s",s); mem0(l); mem0(r); int len=strlen(s); for(int i=len-1;i>=0;i--){ if(i==len-1) r[i]=(s[i]==')'); else r[i]=r[i+1]+(s[i]==')'); } for(int i=0;i<len;i++){ if(i==0) l[i]=(s[i]=='('); else l[i]=l[i-1]+(s[i]=='('); } int ans=INF; for(int i=0;i<len;i++) ans=min(ans,l[i]+r[i]-1); printf("%d\n",ans); } return 0;}
^
0_0_20614678_27246.cpp:14:70: error: stray '#' in program
using namespace std;#define INF 0x3f3f3f3f#define inf -0x3f3f3f3f#define lson l,m,rt<<1#define rson m+1,r,rt<<1|1#define mem0(a) memset(a,0,sizeof(a))#define mem1(a) memset(a,-1,sizeof(a))#define mem(a, b) memset(a, b, sizeof(a))typedef long long ll;char s[1010];int l[1010],r[1010]; int main(){ int t; scanf("%d",&t); while(t--){ scanf("%s",s); mem0(l); mem0(r); int len=strlen(s); for(int i=len-1;i>=0;i--){ if(i==len-1) r[i]=(s[i]==')'); else r[i]=r[i+1]+(s[i]==')'); } for(int i=0;i<len;i++){ if(i==0) l[i]=(s[i]=='('); else l[i]=l[i-1]+(s[i]=='('); } int ans=INF; for(int i=0;i<len;i++) ans=min(ans,l[i]+r[i]-1); printf("%d\n",ans); } return 0;}
^
0_0_20614678_27246.cpp:14:92: error: stray '#' in program
using namespace std;#define INF 0x3f3f3f3f#define inf -0x3f3f3f3f#define lson l,m,rt<<1#define rson m+1,r,rt<<1|1#define mem0(a) memset(a,0,sizeof(a))#define mem1(a) memset(a,-1,sizeof(a))#define mem(a, b) memset(a, b, sizeof(a))typedef long long ll;char s[1010];int l[1010],r[1010]; int main(){ int t; scanf("%d",&t); while(t--){ scanf("%s",s); mem0(l); mem0(r); int len=strlen(s); for(int i=len-1;i>=0;i--){ if(i==len-1) r[i]=(s[i]==')'); else r[i]=r[i+1]+(s[i]==')'); } for(int i=0;i<len;i++){ if(i==0) l[i]=(s[i]=='('); else l[i]=l[i-1]+(s[i]=='('); } int ans=INF; for(int i=0;i<len;i++) ans=min(ans,l[i]+r[i]-1); printf("%d\n",ans); } return 0;}
^
0_0_20614678_27246.cpp:14:118: error: stray '#' in program
using namespace std;#define INF 0x3f3f3f3f#define inf -0x3f3f3f3f#define lson l,m,rt<<1#define rson m+1,r,rt<<1|1#define mem0(a) memset(a,0,sizeof(a))#define mem1(a) memset(a,-1,sizeof(a))#define mem(a, b) memset(a, b, sizeof(a))typedef long long ll;char s[1010];int l[1010],r[1010]; int main(){ int t; scanf("%d",&t); while(t--){ scanf("%s",s); mem0(l); mem0(r); int len=strlen(s); for(int i=len-1;i>=0;i--){ if(i==len-1) r[i]=(s[i]==')'); else r[i]=r[i+1]+(s[i]==')'); } for(int i=0;i<len;i++){ if(i==0) l[i]=(s[i]=='('); else l[i]=l[i-1]+(s[i]=='('); } int ans=INF; for(int i=0;i<len;i++) ans=min(ans,l[i]+r[i]-1); printf("%d\n",ans); } return 0;}
^
0_0_20614678_27246.cpp:14:155: error: stray '#' in program
using namespace std;#define INF 0x3f3f3f3f#define inf -0x3f3f3f3f#define lson l,m,rt<<1#define rson m+1,r,rt<<1|1#define mem0(a) memset(a,0,sizeof(a))#define mem1(a) memset(a,-1,sizeof(a))#define mem(a, b) memset(a, b, sizeof(a))typedef long long ll;char s[1010];int l[1010],r[1010]; int main(){ int t; scanf("%d",&t); while(t--){ scanf("%s",s); mem0(l); mem0(r); int len=strlen(s); for(int i=len-1;i>=0;i--){ if(i==len-1) r[i]=(s[i]==')'); else r[i]=r[i+1]+(s[i]==')'); } for(int i=0;i<len;i++){ if(i==0) l[i]=(s[i]=='('); else l[i]=l[i-1]+(s[i]=='('); } int ans=INF; for(int i=0;i<len;i++) ans=min(ans,l[i]+r[i]-1); printf("%d\n",ans); } return 0;}
^
0_0_20614678_27246.cpp:14:193: error: stray '#' in program
using namespace std;#define INF 0x3f3f3f3f#define inf -0x3f3f3f3f#define lson l,m,rt<<1#define rson m+1,r,rt<<1|1#define mem0(a) memset(a,0,sizeof(a))#define mem1(a) memset(a,-1,sizeof(a))#define mem(a, b) memset(a, b, sizeof(a))typedef long long ll;char s[1010];int l[1010],r[1010]; int main(){ int t; scanf("%d",&t); while(t--){ scanf("%s",s); mem0(l); mem0(r); int len=strlen(s); for(int i=len-1;i>=0;i--){ if(i==len-1) r[i]=(s[i]==')'); else r[i]=r[i+1]+(s[i]==')'); } for(int i=0;i<len;i++){ if(i==0) l[i]=(s[i]=='('); else l[i]=l[i-1]+(s[i]=='('); } int ans=INF; for(int i=0;i<len;i++) ans=min(ans,l[i]+r[i]-1); printf("%d\n",ans); } return 0;}
^
0_0_20614678_27246.cpp:14:26: error: 'define' does not name a type
using namespace std;#define INF 0x3f3f3f3f#define inf -0x3f3f3f3f#define lson l,m,rt<<1#define rson m+1,r,rt<<1|1#define mem0(a) memset(a,0,sizeof(a))#define mem1(a) memset(a,-1,sizeof(a))#define mem(a, b) memset(a, b, sizeof(a))typedef long long ll;char s[1010];int l[1010],r[1010]; int main(){ int t; scanf("%d",&t); while(t--){ scanf("%s",s); mem0(l); mem0(r); int len=strlen(s); for(int i=len-1;i>=0;i--){ if(i==len-1) r[i]=(s[i]==')'); else r[i]=r[i+1]+(s[i]==')'); } for(int i=0;i<len;i++){ if(i==0) l[i]=(s[i]=='('); else l[i]=l[i-1]+(s[i]=='('); } int ans=INF; for(int i=0;i<len;i++) ans=min(ans,l[i]+r[i]-1); printf("%d\n",ans); } return 0;}
^
0_0_20614678_27246.cpp: In function 'int main()':
0_0_20614678_27246.cpp:14:380: error: 'mem0' was not declared in this scope
using namespace std;#define INF 0x3f3f3f3f#define inf -0x3f3f3f3f#define lson l,m,rt<<1#define rson m+1,r,rt<<1|1#define mem0(a) memset(a,0,sizeof(a))#define mem1(a) memset(a,-1,sizeof(a))#define mem(a, b) memset(a, b, sizeof(a))typedef long long ll;char s[1010];int l[1010],r[1010]; int main(){ int t; scanf("%d",&t); while(t--){ scanf("%s",s); mem0(l); mem0(r); int len=strlen(s); for(int i=len-1;i>=0;i--){ if(i==len-1) r[i]=(s[i]==')'); else r[i]=r[i+1]+(s[i]==')'); } for(int i=0;i<len;i++){ if(i==0) l[i]=(s[i]=='('); else l[i]=l[i-1]+(s[i]=='('); } int ans=INF; for(int i=0;i<len;i++) ans=min(ans,l[i]+r[i]-1); printf("%d\n",ans); } return 0;}
^
0_0_20614678_27246.cpp:14:750: error: 'INF' was not declared in this scope
using namespace std;#define INF 0x3f3f3f3f#define inf -0x3f3f3f3f#define lson l,m,rt<<1#define rson m+1,r,rt<<1|1#define mem0(a) memset(a,0,sizeof(a))#define mem1(a) memset(a,-1,sizeof(a))#define mem(a, b) memset(a, b, sizeof(a))typedef long long ll;char s[1010];int l[1010],r[1010]; int main(){ int t; scanf("%d",&t); while(t--){ scanf("%s",s); mem0(l); mem0(r); int len=strlen(s); for(int i=len-1;i>=0;i--){ if(i==len-1)
|