| Problem | waveway4 |
|---|---|
| User | Yangyuchen13 |
| Submission Time | 2026-11-06 15:11:16 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
waveway4.cpp: In function ‘int main()’:
waveway4.cpp:14:5: error: expected initializer before ‘for’
14 | for(int i=0;i<m;++i){
| ^~~
waveway4.cpp:14:17: error: ‘i’ was not declared in this scope
14 | for(int i=0;i<m;++i){
| ^
waveway4.cpp:20:13: error: ‘prefix’ was not declared in this scope
20 | prefix[i] = b[i] - a[i] +1;
| ^~~~~~
waveway4.cpp:22:13: error: ‘prefix’ was not declared in this scope
22 | prefix[i] = prefix[i-1] + b[i] - a[i] +1;
| ^~~~~~
waveway4.cpp:27:17: error: ‘prefix’ was not declared in this scope
27 | cout << prefix[query[i]];
| ^~~~~~