0_0_22302122_5650.cpp: In function 'int main()': 0_0_22302122_5650.cpp:58:53: error: expected ';' before ')' token for(int i = 0;i < n;++i) cin >> p[i] >> a[i]); ^