Problem celldivision
User mofumofu
Submission Time 2023-01-20 15:50:10
Score 0
Max Time N/A
Max Memory N/A

Compile Error

celldivision.cpp:28:12: error: ‘int getchar_unlocked()’ redeclared inline without ‘gnu_inline’ attribute
28 | inline int getchar_unlocked() { return getchar(); }
| ^~~~~~~~~~~~~~~~
In file included from /usr/include/stdio.h:864,
from /usr/include/c++/9/cstdio:42,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:46,
from celldivision.cpp:1:
/usr/include/x86_64-linux-gnu/bits/stdio.h:73:1: note: ‘int getchar_unlocked()’ previously defined here
73 | getchar_unlocked (void)
| ^~~~~~~~~~~~~~~~
celldivision.cpp: In function ‘int main()’:
celldivision.cpp:62:38: error: expected primary-expression before ‘)’ token
62 | ll ans = upper_bound(all(v), query-) - v.begin() + 1;
| ^