Error when executing program | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
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 Resposta
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