Problem dna_ioi
User jamestan
Submission Time 2024-08-12 14:40:50
Score 0
Max Time N/A
Max Memory N/A

Compile Error

dna_ioi.cpp: In function ‘int get_distance(int, int)’:
dna_ioi.cpp:39:34: error: lvalue required as left operand of assignment
39 | int a=val[0]+val[1]-val[2]=val[4],c=val[2]+val[3]-val[0]-val[5],t=val[4]+val[5]-val[1]-val[3];
| ^
dna_ioi.cpp:40:11: error: ‘c’ was not declared in this scope
40 | if (a || c||t) return -1;
| ^
dna_ioi.cpp:40:14: error: ‘t’ was not declared in this scope
40 | if (a || c||t) return -1;
| ^