Problem | boxispull |
---|---|
User | Elnathan |
Submission Time | 2023-02-22 10:18:46 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
boxispull.cpp: In function ‘int main()’:
boxispull.cpp:17:23: error: array of runtime bound cannot be captured by copy, only by reference
17 | cout << ([x2[i] - x1[i]) + (y2[i] - y1[i]) + 2;
| ^~
boxispull.cpp:17:25: error: expected ‘,’ before ‘[’ token
17 | cout << ([x2[i] - x1[i]) + (y2[i] - y1[i]) + 2;
| ^
| ,
boxispull.cpp:17:25: error: expected identifier before ‘[’ token
boxispull.cpp:17:37: error: expected ‘]’ before ‘+’ token
17 | cout << ([x2[i] - x1[i]) + (y2[i] - y1[i]) + 2;
| ^~
| ]
boxispull.cpp: In lambda function:
boxispull.cpp:17:38: error: expected ‘{’ before ‘+’ token
17 | cout << ([x2[i] - x1[i]) + (y2[i] - y1[i]) + 2;
| ^