Problem | artswap |
---|---|
User | OviyanGandhi |
Submission Time | 2024-03-29 12:55:15 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
artswap.cpp:3:31: error: ‘pair’ does not name a type
3 | typedef long long ll; typedef pair<int, int> pii;
| ^~~~
artswap.cpp: In function ‘void combine(int, int, bool)’:
artswap.cpp:11:30: error: return-statement with a value, in function returning ‘void’ [-fpermissive]
11 | return r == -1 ? l : r;
| ^
artswap.cpp:12:26: error: return-statement with a value, in function returning ‘void’ [-fpermissive]
12 | return l == -1 ? r : l;
| ^
artswap.cpp: In function ‘void build(int, int, int)’:
artswap.cpp:23:22: error: void value not ignored as it ought to be
23 | fw[pos] = combine(fw[2*pos], fw[2*pos+1], false);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
artswap.cpp:24:19: error: void value not ignored as it ought to be
24 | bw[pos] = combine(bw[2*pos], bw[2*pos+1], true);
|