Problem | swords |
---|---|
User | personjs |
Submission Time | 2024-12-25 13:22:58 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
swords.cpp: In function ‘int main()’:
swords.cpp:10:9: error: expected ‘;’ before ‘scanf’
10 | ans = 0
| ^
| ;
11 | scanf("%d", &n);
| ~~~~~
swords.cpp:17:37: error: ‘greater’ was not declared in this scope
17 | sort(swords.begin(), swords.end(), greater<int>);
| ^~~~~~~
swords.cpp:17:45: error: expected primary-expression before ‘int’
17 | sort(swords.begin(), swords.end(), greater<int>);
| ^~~
swords.cpp:17:2: error: ‘sort’ was not declared in this scope; did you mean ‘short’?
17 | sort(swords.begin(), swords.end(), greater<int>);
| ^~~~
| short