void main() {
int pid = 12;
int data1 = [12][1];
for (int i = 0; i < pid; i+{
data1[i][0] = 0;/this i is wrong/
}
}
//Error message:The operator ‘[]’ isn’t defined for the type ‘int’.Try defining the operator ‘[]’
// This is not wrong in other languages,Please help answer thank you.
//Why doesn’t this expression work? How to write it correctly