Problem hungrycats2
User xd490
Submission Time 2026-02-28 10:36:15
Score 0
Max Time N/A
Max Memory N/A

Compile Error

hungrycats2.cpp: In function ‘int main()’:
hungrycats2.cpp:21:64: error: array of runtime bound cannot be captured by copy, only by reference
21 | if (arr[0] == arr[1] or arr[1] == arr[2] or arr[1]+1==[arr]2) {
| ^~~
hungrycats2.cpp: In lambda function:
hungrycats2.cpp:21:68: error: expected ‘{’ before numeric constant
21 | if (arr[0] == arr[1] or arr[1] == arr[2] or arr[1]+1==[arr]2) {
| ^
hungrycats2.cpp: In function ‘int main()’:
hungrycats2.cpp:21:61: error: no match for ‘operator==’ (operand types are ‘int’ and ‘main()::<lambda()>’)
21 | if (arr[0] == arr[1] or arr[1] == arr[2] or arr[1]+1==[arr]2) {
In file included from /usr/include/c++/9/regex:62,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:110,
from hungrycats2.cpp:1