fork(1) download
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main() {
  6. char buf[256];
  7. char *ch = buf;
  8.  
  9. int i = 0;
  10. while (ch != 0) {
  11. if (++i > 256) {
  12. std::cout << "Error\n";
  13. break;
  14. }
  15. }
  16. return 0;
  17. }
Success #stdin #stdout 0s 15232KB
stdin
Standard input is empty
stdout
Error