Problem | lengthsort |
---|---|
User | Henries |
Submission Time | 2024-10-02 12:04:39 |
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:7: error: declaration of ‘auto item’ has no initializer
16 | for (auto item ; m){
| ^~~~
lengthsort.cpp:16:19: error: could not convert ‘m’ from ‘std::map<long long int, std::__cxx11::basic_string<char>, std::greater<long long int> >’ to ‘bool’
16 | for (auto item ; m){
| ^
| |
| std::map<long long int, std::__cxx11::basic_string<char>, std::greater<long long int> >
lengthsort.cpp:16:20: error: expected ‘;’ before ‘)’ token
16 | for (auto item ; m){
| ^
| ;