0_0_18576370_20791.cpp: In function 'int main()': 0_0_18576370_20791.cpp:46:26: error: 'sum' was not declared in this scope bef[a[i]]=i; sum[a[i]]++; ^