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

Compile Error

speakers.cpp: In function ‘int main()’:
speakers.cpp:10:22: error: template argument 1 is invalid
10 | for (auto &thing : a) { int a, b; cin >> a >> b; thing = make_pair(a+b, make_pair(a, b)); }
| ^
speakers.cpp:10:22: error: template argument 2 is invalid
speakers.cpp:11:7: error: ‘a’ was not declared in this scope
11 | sort(a.begin(), a.end());
| ^