Problem makingparallelograms
User PlayVoltz
Submission Time 2023-12-30 22:29:31
Score 0
Max Time N/A
Max Memory N/A

Compile Error

makingparallelograms.cpp: In function ‘int main()’:
makingparallelograms.cpp:13:20: error: invalid conversion from ‘int*’ to ‘int’ [-fpermissive]
13 | if (!(c[a]%2))ans+=c, c=!c;
| ~~~^~~
| |
| int*
makingparallelograms.cpp:13:28: error: incompatible types in assignment of ‘bool’ to ‘int [1000005]’
13 | if (!(c[a]%2))ans+=c, c=!c;
| ^