Problem | bacteria |
---|---|
User | Rolo |
Submission Time | 2024-01-04 16:05:18 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
bacteria.cpp:6:1: error: expected initializer before ‘int’
6 | int a[N];
| ^~~
bacteria.cpp: In function ‘void build(int, int, int)’:
bacteria.cpp:12:9: error: ‘seg’ was not declared in this scope
12 | seg[pos] = a[l];
| ^~~
bacteria.cpp:12:20: error: ‘a’ was not declared in this scope
12 | seg[pos] = a[l];
| ^
bacteria.cpp:18:5: error: ‘seg’ was not declared in this scope
18 | seg[pos] = seg[pos*2 + 1] + seg[pos*2];
| ^~~
bacteria.cpp: In function ‘long long int sum(int, int, int, int, int)’:
bacteria.cpp:31:16: error: ‘seg’ was not declared in this scope
31 | return seg[pos];
| ^~~
bacteria.cpp: In function ‘void update(int, int, int, int, int)’:
bacteria.cpp:42:9: error: ‘seg’ was not declared in this scope
42 | seg[pos] = qval;
| ^~~
bacteria.cpp:54:5: error: ‘seg’ was not decl