Problem lboard
User tunauwu
Submission Time 2025-01-30 19:49:06
Score 0
Max Time N/A
Max Memory N/A

Compile Error

lboard.cpp:25:16: error: expected ‘,’ or ‘...’ before ‘a’
25 | void sub1(int &a[n + 5][m + 5])
| ^
lboard.cpp: In function ‘void sub1(long long int&)’:
lboard.cpp:27:14: error: ‘a’ was not declared in this scope
27 | int s1 = a[1][1] + a[1][2] + a[2][1];
| ^
lboard.cpp:37:85: error: no matching function for call to ‘max(<brace-enclosed initializer list>)’
37 | cout << max({s1, s2, s3, s4, s5, s6, s7, s8, a[1][1], a[1][2], a[2][1], a[2][2]});
| ^
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 lboard.cpp:1:
/usr/include/c++/9/bits/stl_algobase.h:222:5: note: candidate: ‘template<class _Tp> constexpr const _Tp& std::max(cons