Problem | countalp |
---|---|
User | TheRaptor |
Submission Time | 2023-01-20 09:24:31 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
countalp.cpp: In function ‘int main()’:
countalp.cpp:40:6: error: redeclaration of ‘int n’
40 | int n;
| ^
countalp.cpp:5:9: note: ‘int n’ previously declared here
5 | int n;
| ^
countalp.cpp:41:9: error: redeclaration of ‘std::string s’
41 | string s;
| ^
countalp.cpp:6:12: note: ‘std::string s’ previously declared here
6 | string s;
| ^
countalp.cpp:44:3: error: ‘arr’ was not declared in this scope
44 | arr[s[i] - 'a']++;
| ^~~
countalp.cpp:47:35: error: ‘arr’ was not declared in this scope
47 | cout << (char)('a'+i) << ' ' << arr[i] << '\n';
| ^~~