Problem countalp
User retxed
Submission Time 2026-04-12 12:59:44
Score 0
Max Time N/A
Max Memory N/A

Compile Error

countalp.cpp:1:1: error: ‘include’ does not name a type
1 | include <bits/stdc++.h>
| ^~~~~~~
countalp.cpp: In function ‘int main()’:
countalp.cpp:6:2: error: ‘cin’ was not declared in this scope
6 | cin >> N;
| ^~~
countalp.cpp:8:2: error: ‘string’ was not declared in this scope
8 | string str;
| ^~~~~~
countalp.cpp:9:9: error: ‘str’ was not declared in this scope; did you mean ‘std’?
9 | cin >> str;
| ^~~
| std
countalp.cpp:20:6: error: ‘cout’ was not declared in this scope
20 | cout << (char) (i+97) << " " << arr[i] << endl;
| ^~~~
countalp.cpp:20:48: error: ‘endl’ was not declared in this scope
20 | cout << (char) (i+97) << " " << arr[i] << endl;
| ^~~~