fork download
  1. int main()
  2. {
  3. int i;
  4.  
  5. srand(time(NULL));
  6.  
  7. for (i = 0; i < 100; i++)
  8. {
  9. int n = rand() % 10;
  10. printf("%d\n", n);
  11. }
  12.  
  13. return 0;
  14. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp: In function ‘int main()’:
prog.cpp:5: error: ‘NULL’ was not declared in this scope
prog.cpp:5: error: ‘time’ was not declared in this scope
prog.cpp:5: error: ‘srand’ was not declared in this scope
prog.cpp:9: error: ‘rand’ was not declared in this scope
prog.cpp:10: error: ‘printf’ was not declared in this scope
stdout
Standard output is empty