Problem fatty
User AndyChen
Submission Time 2026-08-27 19:32:37
Score 0
Max Time N/A
Max Memory N/A

Compile Error

fatty.cpp: In function ‘int main()’:
fatty.cpp:9:30: error: template argument 1 is invalid
9 | vector<pair<int, int> a(x);
| ^
fatty.cpp:9:30: error: template argument 2 is invalid
fatty.cpp:11:16: error: ‘a’ was not declared in this scope
11 | cin >> a[i].first;
| ^
fatty.cpp:14:16: error: ‘a’ was not declared in this scope
14 | cin >> a[i].second;
| ^
fatty.cpp:16:10: error: ‘a’ was not declared in this scope
16 | sort(a.begin(), a.end(), [](auto x, auto y){
| ^