Problem speakers
User R9q5P8
Submission Time 2026-11-03 14:18:05
Score 0
Max Time N/A
Max Memory N/A

Compile Error

speakers.cpp: In function ‘int main()’:
speakers.cpp:9:38: error: template argument 1 is invalid
9 | vector<pair<int, pair<int, int>> a(n);
| ^
speakers.cpp:9:38: error: template argument 2 is invalid
speakers.cpp:10:21: error: ‘a’ was not declared in this scope
10 | for (auto &thing : a) { int a, b; cin >> a >> b; thing = make_pair(a+b, make_pair(a, b)); }
| ^
speakers.cpp:10:30: error: redeclaration of ‘int a’
10 | for (auto &thing : a) { int a, b; cin >> a >> b; thing = make_pair(a+b, make_pair(a, b)); }
| ^
speakers.cpp:10:21: note: ‘<typeprefixerror>a’ previously declared here
10 | for (auto &thing : a) { int a, b; cin >> a >> b; thing = make_pair(a+b, make_pair(a, b)); }
| ^
speakers.cpp:11:7: error: ‘a’ was not declared in this scope