fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int truc() {
  5. return 1;
  6. }
  7.  
  8. int main() {
  9. int test = 0;
  10. if (test = truc()) {
  11. cout << "succeeded" << endl;
  12. } else {
  13. cout << "failed" << endl;
  14. }
  15. // your code goes here
  16. return 0;
  17. }
Success #stdin #stdout 0s 3296KB
stdin
Standard input is empty
stdout
succeeded