int main() { int i; srand(time(NULL)); for (i = 0; i < 100; i++) { int n = rand() % 10; printf("%d\n", n); } return 0; }
Standard input is empty
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
Standard output is empty