Problem | descsort |
---|---|
User | TheAccomplice |
Submission Time | 2024-04-27 09:32:42 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
descsort.cpp: In function ‘int main()’:
descsort.cpp:18:11: error: found ‘:’ in nested-name-specifier, expected ‘::’
18 | for (num : li){
| ^
| ::
descsort.cpp:18:7: error: ‘num’ has not been declared
18 | for (num : li){
| ^~~
descsort.cpp:21:2: error: expected primary-expression before ‘return’
21 | return 0;
| ^~~~~~
descsort.cpp:20:3: error: expected ‘;’ before ‘return’
20 | }
| ^
| ;
21 | return 0;
| ~~~~~~
descsort.cpp:21:2: error: expected primary-expression before ‘return’
21 | return 0;
| ^~~~~~
descsort.cpp:20:3: error: expected ‘)’ before ‘return’
20 | }
| ^
| )
21 | return 0;
| ~~~~~~
descsort.cpp:18:6: note: to match this ‘(’
18 | for (num : li){
| ^