0_0_21026323_27120.cpp: In function 'int main()': 0_0_21026323_27120.cpp:26:24: error: 'i' was not declared in this scope printf("%d\n",num[id[i]] - 1); ^