0_0_39749957_18647.cpp:15:1: error: 'vector' does not name a type
15 | vector<int> sum[N];
| ^~~~~~
0_0_39749957_18647.cpp: In function 'void work()':
0_0_39749957_18647.cpp:19:34: error: 'sum' was not declared in this scope
19 | for(int i=1;i<=1e5;i++) sum[i].clear();
| ^~~
0_0_39749957_18647.cpp:30:33: error: 'sum' was not declared in this scope; did you mean 'num'?
30 | sum[x].push_back(i);
| ^~~
| num
0_0_39749957_18647.cpp:34:28: error: 'sum' was not declared in this scope; did you mean 'num'?
34 | if(num>1) sum[num].push_back(i);
| ^~~
| num
0_0_39749957_18647.cpp:56:54: error: 'sum' was not declared in this scope; did you mean 'sumlr'?
56 | int sumlr=(int)( upper_bound(sum[x].begin(),sum[x].end(),r) - lower_bound(sum[x].begin(),sum[x].end(),l) );
| ^~~
| sumlr
0_0_39749957_18647.cpp:64:54: error: 'sum' was not declared in this scope; did you mean 'sumlr'?
64 | int sumlr=(int)( upper_bound(sum[x].begin(),sum[x].end(),r) - lower_bound(sum[x].begin(),sum[x].end(),l) );
| ^~~
| sumlr
|