Problem redblue
User yc
Submission Time 2025-08-10 11:31:59
Score 0
Max Time N/A
Max Memory N/A

Compile Error

redblue.cpp: In function ‘int main()’:
redblue.cpp:55:15: error: expected primary-expression before ‘long’
55 | if (c1[0]>long long(n/2) or c1[1]>long long(n/2)) {cout<<"NO"; return 0;}
| ^~~~
redblue.cpp:55:15: error: expected ‘)’ before ‘long’
55 | if (c1[0]>long long(n/2) or c1[1]>long long(n/2)) {cout<<"NO"; return 0;}
| ~ ^~~~
| )
redblue.cpp:2:13: error: expected primary-expression before ‘long’
2 | #define int long long
| ^~~~
redblue.cpp:59:85: note: in expansion of macro ‘int’
59 | if ((union1(blue[i][j].first.first,blue[i][j].first.second)) and c1[i]!=int(n/2)) {
| ^~~
redblue.cpp:59:85: error: expected ‘)’ before ‘long’
59 | if ((union1(blue[i][j].first.first,blue[i][j].first.second)) and c1[i]!=i