fork download
  1. #include <iostream>
  2.  
  3. int main(int argc, const char * argv[]) {
  4. std::string s;
  5. std::cin>>s;
  6.  
  7. int a[28] = {0};
  8. for(unsigned int i=0;i<s.length();i++)
  9. {
  10. int c;
  11. if (isalpha(s[i]))
  12. {
  13. c= tolower(s[i]) - 'a';
  14. a[c]++;
  15. }
  16. }
  17. for(unsigned int i=0;i<(sizeof(a) / sizeof(a[0]));i++)
  18. std::cout<<a[i];
  19.  
  20. return 0;
  21. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.c:1:20: fatal error: iostream: No such file or directory
 #include <iostream>
                    ^
compilation terminated.
stdout
Standard output is empty