cc1plus: error: '::main' must return 'int'
chessboard.cpp: In function 'int main()':
chessboard.cpp:13:9: error: 'N' was not declared in this scope
13 | int x1[N], y1[N], x2[N], y2[N];
| ^
chessboard.cpp:16:7: error: 'i' was not declared in this scope
16 | for (i = 0; i < k; i++){
| ^
chessboard.cpp:17:14: error: 'x1' was not declared in this scope
17 | cin >> x1[i] >> y1[i] >> x2[i] >> y2[i];
| ^~
chessboard.cpp:17:23: error: 'y1' was not declared in this scope
17 | cin >> x1[i] >> y1[i] >> x2[i] >> y2[i];
| ^~
chessboard.cpp:17:32: error: 'x2' was not declared in this scope
17 | cin >> x1[i] >> y1[i] >> x2[i] >> y2[i];
| ^~
chessboard.cpp:17:41: error: 'y2' was not declared in this scope
17 | cin >> x1[i] >> y1[i] >> x2[i] >> y2[i];
| ^~
chessboard.cpp:21:7: error: 'i' was not declared in this scope
21 | for (i = 1; i < n; i++)
| ^
chessboard.cpp:24:42: error: 'x2' was not declared in this scope
24 | for (i = 0; i < n; i++) temp += (f(i, x2[i]) - f(i, x1[i])) * (f(i, y2[i]) - f(i, y1[i]));
| ^~
chessboard.cpp:24:56: error: 'x1' was not declared in this scope
24 | for (i = 0; i < n; i++) temp += (f(i, x2[i]) - f(i, x1[i])) * (f(i, y2[i]) - f(i, y1[i]));
| ^~
chessboard.cpp:24:72: error: 'y2' was not declared in this scope
24 | for (i = 0; i < n; i++) temp += (f(i, x2[i]) - f(i, x1[i])) * (f(i, y2[i]) - f(i, y1[i]));
| ^~
chessboard.cpp:24:86: error: 'y1' was not declared in this scope
24 | for (i = 0; i < n; i++) temp += (f(i, x2[i]) - f(i, x1[i])) * (f(i, y2[i]) - f(i, y1[i]));
| ^~