| Problem | waveway7 |
|---|---|
| User | gOrDoN |
| Submission Time | 2026-11-06 16:24:10 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
waveway7.cpp: In function ‘int main()’:
waveway7.cpp:7:51: error: expected primary-expression before ‘<’ token
7 | else if(n==2)cout<<max(A[0],A[1])<<' '<<1<<"\n"<<<max(A[0],A[1]);
| ^
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/bits/stdc++.h:41,
from waveway7.cpp:1:
/usr/include/c++/9/bits/stl_algobase.h: In instantiation of ‘constexpr const _Tp& std::max(const _Tp&, const _Tp&, _Compare) [with _Tp = int; _Compare = int]’:
waveway7.cpp:8:31: required from here
/usr/include/c++/9/bits/stl_algobase.h:271:17: error: ‘__comp’ cannot be used as a function
271 | if (__comp(__a, __b))
| ~~~~~~^~~~~~~~~~