Submission #986444

# Submission time Handle Problem Language Result Execution time Memory
986444 2024-05-20T14:54:28 Z Muaath_5 Art Class (IOI13_artclass) C++17
Compilation error
0 ms 0 KB
int style(int H, int W, int R[500][500], int G[500][500], int B[500][500]) {
  srand(time(0));
  return (rand()%4)+1;
}

Compilation message

artclass.cpp: In function 'int style(int, int, int (*)[500], int (*)[500], int (*)[500])':
artclass.cpp:2:9: error: 'time' was not declared in this scope
    2 |   srand(time(0));
      |         ^~~~
artclass.cpp:2:3: error: 'srand' was not declared in this scope
    2 |   srand(time(0));
      |   ^~~~~
artclass.cpp:3:11: error: 'rand' was not declared in this scope
    3 |   return (rand()%4)+1;
      |           ^~~~