In file included from /usr/include/c++/13/random:37,
from answer.code:8:
/usr/include/c++/13/bits/c++0x_warning.h:32:2: error: #error This file requires compiler and library support for the ISO C++ 2011 standard. This support must be enabled with the -std=c++11 or -std=gnu++11 compiler options.
32 | #error This file requires compiler and library support \
| ^~~~~
answer.code: In function ‘bool _4()’:
answer.code:51:25: warning: extended initializer lists only available with ‘-std=c++11’ or ‘-std=gnu++11’ [-Wc++11-extensions]
51 | return cn > max({ p[5][3], p[6][2], p[7][3], p[8][2] });
| ^
answer.code:51:24: error: no matching function for call to ‘max(<brace-enclosed initializer list>)’
51 | return cn > max({ p[5][3], p[6][2], p[7][3], p[8][2] });
| ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/13/string:51,
from /usr/include/c++/13/bits/locale_classes.h:40,
from /usr/include/c++/13/bits/ios_base.h:41,
from /usr/include/c++/13/ios:44,
from /usr/include/c++/13/ostream:40,
from /usr/include/c++/13/iostream:41,
from answer.code:1:
/usr/include/c++/13/bits/stl_algobase.h:257:5: note: candidate: ‘template<class _Tp> const _Tp& std::max(const _Tp&, const _Tp&)’
257 | max(const _Tp& __a, const _Tp& __b)
| ^~~
/usr/include/c++/13/bits/stl_algobase.h:257:5: note: template argument deduction/substitution failed:
answer.code:51:24: note: candidate expects 2 arguments, 1 provided
51 | return cn > max({ p[5][3], p[6][2], p[7][3], p[8][2] });
| ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/13/bits/stl_algobase.h:303:5: note: candidate: ‘template<class _Tp, class _Compare> const _Tp& std::max(const _Tp&, const _Tp&, _Compare)’
303 | max(const _Tp& __a, const _Tp& __b, _Compare __comp)
| ^~~
/usr/include/c++/13/bits/stl_algobase.h:303:5: note: template argument deduction/substitution failed:
answer.code:51:24: note: candidate expects 3 arguments, 1 provided
51 | return cn > max({ p[5][3], p[6][2], p[7][3], p[8][2] });
| ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
answer.code:54:25: warning: extended initializer lists only available with ‘-std=c++11’ or ‘-std=gnu++11’ [-Wc++11-extensions]
54 | return cn > max({ p[5][2], p[6][3], p[7][2], p[8][3] });
| ^
answer.code:54:24: error: no matching function for call to ‘max(<brace-enclosed initializer list>)’
54 | return cn > max({ p[5][2], p[6][3], p[7][2], p[8][3] });
| ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/13/bits/stl_algobase.h:257:5: note: candidate: ‘template<class _Tp> const _Tp& std::max(const _Tp&, const _Tp&)’
257 | max(const _Tp& __a, const _Tp& __b)
| ^~~
/usr/include/c++/13/bits/stl_algobase.h:257:5: note: template argument deduction/substitution failed:
answer.code:54:24: note: candidate expects 2 arguments, 1 provided
54 | return cn > max({ p[5][2], p[6][3], p[7][2], p[8][3] });
| ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/13/bits/stl_algobase.h:303:5: note: candidate: ‘template<class _Tp, class _Compare> const _Tp& std::max(const _Tp&, const _Tp&, _Compare)’
303 | max(const _Tp& __a, const _Tp& __b, _Compare __comp)
| ^~~
/usr/include/c++/13/bits/stl_algobase.h:303:5: note: template argument deduction/substitution failed:
answer.code:54:24: note: candidate expects 3 arguments, 1 provided
54 | return cn > max({ p[5][2], p[6][3], p[7][2], p[8][3] });
| ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
answer.code: In function ‘long long int read()’:
answer.code:84:33: error: ‘getchar’ was not declared in this scope
84 | int x = 0, f = 1; char ch = getchar();
| ^~~~~~~
answer.code:13:1: note: ‘getchar’ is defined in header ‘<cstdio>’; did you forget to ‘#include <cstdio>’?
12 | #include<set>
+++ |+#include <cstdio>
13 | using namespace std;