fork(11) download
  1. #include <iostream>
  2. #include <string>
  3.  
  4. int main() {
  5. using namespace std;
  6. string input;
  7. cout << ( cin >> input && input.length() == 1 && !input.find_first_of("123456789") ?
  8. "correct" : "wornog" ) << endl;
  9. }
Success #stdin #stdout 0.01s 2728KB
stdin
Standard input is empty
stdout
wornog