fork download
  1. #include <iostream>
  2. #include <string>
  3. using namespace std;
  4.  
  5. int main() {
  6. // your code goes here
  7. string a("foo");
  8. string b("foo");
  9. if(a == b) {
  10. cout << "true" << endl;
  11. } else {
  12. cout << "fail" << endl;
  13. }
  14. return 0;
  15. }
Success #stdin #stdout 0s 3472KB
stdin
Standard input is empty
stdout
true