| Problem | platonic28 |
|---|---|
| User | pearl333 |
| Submission Time | 2025-12-22 11:32:02 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
platonic28.cpp: In function ‘int main()’:
platonic28.cpp:13:26: error: conflicting declaration ‘std::unordered_map<char, long long int> m’
13 | unordered_map<char,int> m;
| ^
platonic28.cpp:6:8: note: previous declaration as ‘long long int m’
6 | int n,m; cin>>n>>m;
| ^
platonic28.cpp:15:9: error: request for member ‘find’ in ‘m’, which is of non-class type ‘long long int’
15 | if (m.find(s[i])==m.end()) m[s[i]] = 0;
| ^~~~
platonic28.cpp:15:23: error: request for member ‘end’ in ‘m’, which is of non-class type ‘long long int’
15 | if (m.find(s[i])==m.end()) m[s[i]] = 0;
| ^~~
platonic28.cpp:15:36: error: invalid types ‘long long int[__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type {aka char}]’ for array subscript
15 | if (m.find(s[i])==m.end()) m[s[i]] = 0;
|