fork download
  1. #include <iostream>
  2. #include <string>
  3. using namespace std;
  4.  
  5. bool blind(string s,int f , int l)
  6. {
  7. if (f == l)
  8. return false;
  9. if (s[f] != s[l])
  10. return false;
  11. if (f < =l )
  12. return blind(s, f + 1, l - 1);
  13. else
  14. return true;
  15. }
  16. int main()
  17. {
  18. string s;
  19. int f = 0;
  20. int l;
  21. cin >> s >> l;
  22. if (blind(s,f,l))
  23. cout << "yes";
  24. else
  25. cout << "no";
  26.  
  27. return 0;
  28. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
abbba
4
compilation info
prog.cpp: In function ‘bool blind(std::__cxx11::string, int, int)’:
prog.cpp:11:13: error: expected primary-expression before ‘=’ token
     if (f < =l )
             ^
stdout
Standard output is empty