0_0_39292116_12523.cpp: In function 'int main()': 0_0_39292116_12523.cpp:44:9: error: 'idx' was not declared in this scope 44 | idx=0; | ^~~