Submission #986444

#TimeUsernameProblemLanguageResultExecution timeMemory
986444Muaath_5Art Class (IOI13_artclass)C++17
Compilation error
0 ms0 KiB
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 (stderr)

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;
      |           ^~~~