Problem lengthsort
User Henries
Submission Time 2024-10-02 12:08:35
Score 0
Max Time N/A
Max Memory N/A

Compile Error

lengthsort.cpp: In function ‘int main()’:
lengthsort.cpp:14:7: error: conflicting declaration ‘auto count’
14 | map[count] = s;
| ^~~~~
lengthsort.cpp:10:13: note: previous declaration as ‘long long int count’
10 | long long count =0;
| ^~~~~
lengthsort.cpp:16:13: error: found ‘:’ in nested-name-specifier, expected ‘::’
16 | for ( item : m){
| ^
| ::
lengthsort.cpp:16:8: error: ‘item’ has not been declared
16 | for ( item : m){
| ^~~~
lengthsort.cpp:19:1: error: expected primary-expression before ‘}’ token
19 | }
| ^
lengthsort.cpp:18:3: error: expected ‘;’ before ‘}’ token
18 | }
| ^
| ;
19 | }
| ~
lengthsort.cpp:19:1: error: expected primary-expression before ‘}’ token
19 | }
| ^
lengthsort.cpp:18:3: error: expected ‘)’ before ‘}’ token
18 | }
|