Problem | ballot |
---|---|
User | blob |
Submission Time | 2023-11-22 15:40:45 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
ballot.cpp: In function ‘int main()’:
ballot.cpp:18:60: error: cannot deduce template arguments of ‘std::greater<_Tp>’, as it has no viable deduction guides
18 | sort(labels.begin(), labels.end(), greater(int a, int b) {
| ^
ballot.cpp:18:60: error: expression list treated as compound expression in functional cast [-fpermissive]
ballot.cpp:18:47: error: missing template arguments before ‘(’ token
18 | sort(labels.begin(), labels.end(), greater(int a, int b) {
| ^
ballot.cpp:18:48: error: expected primary-expression before ‘int’
18 | sort(labels.begin(), labels.end(), greater(int a, int b) {
| ^~~
ballot.cpp:18:55: error: expected primary-expression before ‘int’
18 | sort(labels.begin(), labels.end(), greater(int a, int b) {
|