Problem cny
User StormyGood
Submission Time 2025-11-09 15:49:55
Score 0
Max Time N/A
Max Memory N/A

Compile Error

cny.cpp: In function ‘int main()’:
cny.cpp:14:43: error: expected ‘;’ before ‘int’
14 | sort(n.begin(),n.end(),greater<int>())
| ^
| ;
15 | int ss=n.size();
| ~~~
cny.cpp:16:24: error: ‘ss’ was not declared in this scope
16 | for (int i = 0; i<min(ss,a);i++)
| ^~
cny.cpp:18:9: error: ‘cnt’ was not declared in this scope; did you mean ‘int’?
18 | cnt+=n.front();
| ^~~
| int
cny.cpp:21:11: error: ‘cnt’ was not declared in this scope; did you mean ‘int’?
21 | cout<<cnt;
| ^~~
| int