| Problem | railgun |
|---|---|
| User | ForgottenDragon |
| Submission Time | 2025-12-10 10:49:13 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
railgun.cpp: In function ‘int main()’:
railgun.cpp:4:17: error: expected primary-expression before ‘long’
4 | #define int long long
| ^~~~
railgun.cpp:124:28: note: in expansion of macro ‘int’
124 | int left = int(answers[i]);
| ^~~
railgun.cpp:4:17: error: expected primary-expression before ‘long’
4 | #define int long long
| ^~~~
railgun.cpp:125:29: note: in expansion of macro ‘int’
125 | int right = int(answers[i+K-1]);
| ^~~
railgun.cpp:126:39: error: no matching function for call to ‘min(long long int)’
126 | ans = min(right - left);
| ^
In file included from /usr/include/c++/9/bits/specfun.h:45,
from /usr/include/c++/9/cmath:1927,
from /usr/include/x86_64-linux-gnu/c++/9/bi