Problem lineup
User sleepyfishy
Submission Time 2025-12-01 10:07:49
Score 0
Max Time N/A
Max Memory N/A

Compile Error

lineup.cpp: In function ‘int main()’:
lineup.cpp:11:42: error: template argument 1 is invalid
11 | vector<pair<long long, long long> cows(N);
| ^
lineup.cpp:11:42: error: template argument 2 is invalid
lineup.cpp:12:37: error: ‘cows’ was not declared in this scope; did you mean ‘cos’?
12 | for (int i = 0; i < N; i++) cin >> cows[i].first >> cows[i].second;
| ^~~~
| cos
lineup.cpp:14:7: error: ‘cows’ was not declared in this scope; did you mean ‘cos’?
14 | sort(cows.begin(), cows.end());
| ^~~~
| cos
lineup.cpp:16:37: error: expected initializer before ‘freq’
16 | unordered_map<long long, int> main freq;
| ^~~~
lineup.cpp:19:8: error: ‘freq’ was not declared in this scope; did you mean ‘free’?
1