Problem bracketcount
User bribritt
Submission Time 2025-10-11 11:08:56
Score 0
Max Time N/A
Max Memory N/A

Compile Error

bracketcount.cpp: In function ‘std::vector<int> getVec(std::vector<int>&, int, int)’:
bracketcount.cpp:69:26: error: ‘m’ was not declared in this scope
69 | vector<int> seg[2*(r-m)];
| ^
bracketcount.cpp:71:9: error: ‘seg’ was not declared in this scope
71 | seg[i+r-l] = {s[i+l]!=')',0,s[i+l]!='('};
| ^~~
bracketcount.cpp:73:9: error: ‘seg’ was not declared in this scope
73 | seg[i] = convolution(seg[i<<1],seg[i<<1|1]);
| ^~~
bracketcount.cpp:74:12: error: ‘seg’ was not declared in this scope
74 | return seg[1];
| ^~~
bracketcount.cpp: In function ‘void dnc(std::vector<int>&, int, int)’:
bracketcount.cpp:78:19: error: ‘i’ was not declared in this scope
78 | v[0] = (s[i] == '(' ? 0 : v[1]);
| ^
bracketcount.cpp:81:35: error: ‘m’ was not declared in this sco