Problem | poklon |
---|---|
User | 0 |
Submission Time | 2023-12-12 02:01:19 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
poklon.cpp: In function ‘int main()’:
poklon.cpp:77:12: error: assignment of read-only location ‘*(std::right + ((sizetype)n))’
77 | right[n] = n;
| ~~~~~~~~~^~~
poklon.cpp:80:23: error: invalid conversion from ‘std::ios_base& (*)(std::ios_base&)’ to ‘int’ [-fpermissive]
80 | int rpos = right[i];
| ^
| |
| std::ios_base& (*)(std::ios_base&)
poklon.cpp:82:37: error: invalid conversion from ‘std::ios_base& (*)(std::ios_base&)’ to ‘int’ [-fpermissive]
82 | query_update(1, 0, n-1, left[i] + 1, i, rpos, right[rpos]);
| ~~~~~~~~^~~
| |
| std::ios_base& (*)(std::ios_base&)
poklon.cpp:28:45: note: initializing argument 4 of ‘void query_update(int, int, int, int, int, int, int)’
28 | void query_update (int x, int l, int