Error when executing program | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Error when executing program

.\Playground\:23: error: bad operand types for binary operator '<' if(m[j]<m[min]) ^ first type: String second type: String 1 error

5th Oct 2016, 8:59 AM
Aviral Verma
Aviral Verma - avatar
1 Answer
0
According to given error, you are comparing strings using binary operator '<'. Try to cast to int type.
6th Nov 2016, 11:33 AM
Nick V. Kondratiev
Nick V. Kondratiev - avatar