Problem cpicsort
User rjdaddy69
Submission Time 2026-06-23 15:28:30
Score 0
Max Time N/A
Max Memory N/A

Compile Error

cpicsort.cpp: In function ‘int main()’:
cpicsort.cpp:6:19: error: a function-definition is not allowed here before ‘{’ token
6 | signed main() {
| ^
cpicsort.cpp:9:14: error: ‘i’ was not declared in this scope
9 | }for (int i = 0; i < n; i++){
| ^
cpicsort.cpp:9:25: error: ‘n’ was not declared in this scope; did you mean ‘yn’?
9 | }for (int i = 0; i < n; i++){
| ^
| yn
cpicsort.cpp:9:26: error: expected ‘)’ before ‘;’ token
9 | }for (int i = 0; i < n; i++){
| ~ ^
| )
cpicsort.cpp:9:28: error: ‘i’ was not declared in this scope
9 | }for (int i = 0; i < n; i++){
| ^
cpicsort.cpp:12:10: error: ‘nom’ was not declared in this scope
12 | sort(nom.begin(),vec.end(),greater<int>());