| Problem | robotbombs |
|---|---|
| User | WJR |
| Submission Time | 2025-12-28 22:22:55 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
robotbombs.cpp: In function ‘int main()’:
robotbombs.cpp:14:15: error: reference to ‘left’ is ambiguous
14 | ans += max(left,right);
| ^~~~
In file included from /usr/include/c++/9/ios:42,
from /usr/include/c++/9/istream:38,
from /usr/include/c++/9/sstream:38,
from /usr/include/c++/9/complex:45,
from /usr/include/c++/9/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:54,
from robotbombs.cpp:1:
/usr/include/c++/9/bits/ios_base.h:1011:3: note: candidates are: ‘std::ios_base& std::left(std::ios_base&)’
1011 | left(ios_base& __base)
| ^~~~
robotbombs.cpp:3:5: note: ‘int left’
3 | int left,right,ans;
| ^~~~
robotbombs.cpp:14:20: error: reference to ‘right’ is ambiguous
14 | ans += max(left,right);
| ^~~~~
In file inc