Problem greenbeans
User Whatturtle
Submission Time 2024-07-06 11:59:25
Score 0
Max Time N/A
Max Memory N/A

Compile Error

greenbeans.cpp: In function ‘int main()’:
greenbeans.cpp:20:102: error: expected ‘;’ before ‘{’ token
20 | if(!(beans[1]-(beans[2]-beans[1])>=0) && beans[0]==beans[1] && (beans[0]+beans[2])%2 == 0{
| ^
| ;
greenbeans.cpp:22:14: error: expected primary-expression before ‘else’
22 | }else{
| ^~~~
greenbeans.cpp:22:14: error: expected ‘)’ before ‘else’
22 | }else{
| ^~~~
| )
greenbeans.cpp:20:15: note: to match this ‘(’
20 | if(!(beans[1]-(beans[2]-beans[1])>=0) && beans[0]==beans[1] && (beans[0]+beans[2])%2 == 0{
| ^