Problem | countalp |
---|---|
User | eliasxyz |
Submission Time | 2025-06-12 18:39:19 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
countalp.cpp: In function ‘int main()’:
countalp.cpp:6:7: error: expected identifier before 'a'
6 | alp=['a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z'];
| ^~~
countalp.cpp:6:10: error: expected ‘]’ before ‘,’ token
6 | alp=['a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z'];
| ^
| ]
countalp.cpp: In lambda function:
countalp.cpp:6:10: error: expected ‘{’ before ‘,’ token
countalp.cpp: In function ‘int main()’:
countalp.cpp:6:10: error: incompatible types in assignment of ‘main()::<lambda()>’ to ‘char [26]’
countalp.cpp:13:10: error: no match for ‘operator[]’ (operand types are ‘std::unordered_multimap<char, int>’ and ‘__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type’ {aka ‘char’})
13 | letters[s[i]]=i;
| ^