Problem platonic16
User YSH2020
Submission Time 2025-12-12 10:50:40
Score 0
Max Time N/A
Max Memory N/A

Compile Error

platonic16.cpp: In function ‘int main()’:
platonic16.cpp:7:69: error: request for member ‘a’ in ‘a[i].std::pair<int, int>::first’, which is of non-class type ‘int’
7 | pair<int,int> a[n]; for (int i = 0; i < n; i++) cin >> a[i].first. a[i].second=i;
| ^
platonic16.cpp:17:39: error: expected primary-expression before ‘<<’ token
17 | for (auto i:dq) cout << a[i].second; << ' ';
| ^~