0

Ignoring Command

I'm working on arrays, but whenever I add ; to this line, the system ignores it and makes an error. https://sololearn.com/compiler-playground/cv8sU4itQ5Hl/?ref=app

17th Nov 2024, 2:31 AM
StarCodes
2 ответов
+ 4
This one is a little tricky because I'm not sure exactly what you want to do here, but: table[a, b] = a, b; Is not valid. While it looks like table[a,b] might refer to two locations, it does not. It can hold only one value. It looks like you want to store the value of a and the value of b but you can't put two things in one spot.
17th Nov 2024, 3:22 AM
Jerry Hobby
Jerry Hobby - avatar
+ 2
17th Nov 2024, 3:43 AM
BroFar
BroFar - avatar