Error when executing program | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
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 Réponse
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