0_0_24487394_22323.cpp: In function 'int main()': 0_0_24487394_22323.cpp:57:33: error: 'par' was not declared in this scope scanf("%d",&val[i]),par[i]=i; ^