Problem | lengthsort |
---|---|
User | Henries |
Submission Time | 2024-10-02 12:05:28 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
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:24: error: cannot convert ‘std::pair<const long long int, std::__cxx11::basic_string<char> >’ to ‘long long int’ in initialization
16 | for (long long item : m){
| ^
lengthsort.cpp:17:16: error: request for member ‘second’ in ‘item’, which is of non-class type ‘long long int’
17 | cout << item.second;
| ^~~~~~