fork download
  1. #include <iostream>
  2. #include <string>
  3. using namespace std;
  4.  
  5. int main() {
  6. int c[10] = {1,0,2,3,4,5,6,7,8,9,};
  7. string s = "10";
  8. for(auto s1 : s)
  9. {
  10. cout << "Char has founded " << s[s1];
  11. /*if(s[s1] == c[s1])
  12. {
  13. cout << "Char has founded " << s[s1];
  14. continue;
  15. } */
  16. }
  17. // your code goes here
  18. return 0;
  19. }
Success #stdin #stdout 0.01s 5280KB
stdin
Standard input is empty
stdout
Char has founded �Char has founded �