| Problem | descsort |
|---|---|
| User | god |
| Submission Time | 2026-02-13 15:56:16 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
descsort.cpp: In function ‘int main()’:
descsort.cpp:6:5: error: structured binding declaration cannot have type ‘int’
6 | int[x] tomcat;
| ^~~
descsort.cpp:6:5: note: type must be cv-qualified ‘auto’ or reference to cv-qualified ‘auto’
descsort.cpp:6:6: error: conflicting declaration ‘auto x’
6 | int[x] tomcat;
| ^
descsort.cpp:4:6: note: previous declaration as ‘int x’
4 | int x;
| ^
descsort.cpp:6:9: error: expected initializer before ‘tomcat’
6 | int[x] tomcat;
| ^~~~~~
descsort.cpp:7:7: error: ‘tomcat’ was not declared in this scope
7 | sort(tomcat, tomcat + x; greater<int>);
| ^~~~~~
descsort.cpp:7:39: error: expected unqualified-id before ‘)’ token
7 | sort(tomcat, tomcat + x; greater<int>);
| ^