Problem poi
User noel
Submission Time 2024-06-18 15:20:43
Score 0
Max Time N/A
Max Memory N/A

Compile Error

poi.cpp: In lambda function:
poi.cpp:28:7: error: expected ‘{’ before ‘[’ token
28 | if([i][2] == p)
| ^
poi.cpp: In function ‘int main()’:
poi.cpp:28:7: error: no match for ‘operator[]’ (operand types are ‘main()::<lambda()>’ and ‘int’)
poi.cpp: In lambda function:
poi.cpp:29:12: error: expected ‘{’ before ‘[’ token
29 | cout << [i][0] << ' ' << r << '\n';
| ^
poi.cpp: In function ‘int main()’:
poi.cpp:29:12: error: no match for ‘operator[]’ (operand types are ‘main()::<lambda()>’ and ‘int’)