fork download
  1. #include <iostream>
  2.  
  3. int main()
  4. {
  5. unsigned a;
  6. if (std::cin >> a)
  7. {
  8. std::cout << "success" << std::endl;
  9. }
  10. else
  11. {
  12. std::cout << "error" << std::endl;
  13. }
  14. }
Success #stdin #stdout 0s 3144KB
stdin
-1
stdout
success