0_0_32483828_10543.cpp: In function 'int main()': 0_0_32483828_10543.cpp:12:13: error: expected initializer before 'scanf' scanf("%d %d",&id,&g); ^ 0_0_32483828_10543.cpp:13:16: error: 'g' was not declared in this scope mp[g]=id; ^