foo.cc:94:55: error: stray '\357' in program
for(int i=1;i<=n;i++) a[i] = (s[i-1] == '(' ? 1 : -1);
^
foo.cc:94:56: error: stray '\274' in program
for(int i=1;i<=n;i++) a[i] = (s[i-1] == '(' ? 1 : -1);
^
foo.cc:94:57: error: stray '\233' in program
for(int i=1;i<=n;i++) a[i] = (s[i-1] == '(' ? 1 : -1);
^
foo.cc:38:48: error: 'intr' has not been declared
void build(int a[], int n, int now, int l, intr)
^~~~
foo.cc: In member function 'void Segment_Tree::build(int*, int, int, int, int)':
foo.cc:40:17: error: 'r' was not declared in this scope
if(l == r)
^
foo.cc:45:22: error: 'r' was not declared in this scope
int mid = (l+r)/2;
^
foo.cc: In function 'int main()':
foo.cc:95:2: error: expected ';' before 'T'
T.build(a, n, 1, 1, n);
^
[Hydro](https://hydro.ac)提供评测服务