fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. static bool containsNoDependence(char a) {
  5.  
  6. if (a != '=' || a != 'S' || a != 'I')
  7. return false;
  8.  
  9. return true;
  10. }
  11.  
  12. int main() {
  13. std::cout << "'=' " << containsNoDependence('=') << "\n";
  14. std::cout << "'S' " << containsNoDependence('S') << "\n";
  15. std::cout << "'T' " << containsNoDependence('T') << "\n";
  16. std::cout << "'O' " << containsNoDependence('O') << "\n";
  17. std::cout << "'X' " << containsNoDependence('X') << "\n";
  18. return 0;
  19. }
Success #stdin #stdout 0s 3456KB
stdin
Standard input is empty
stdout
'=' 0
'S' 0
'T' 0
'O' 0
'X' 0