제출 #986444

#제출 시각아이디문제언어결과실행 시간메모리
986444Muaath_5미술 수업 (IOI13_artclass)C++17
컴파일 에러
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; }

컴파일 시 표준 에러 (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;
      |           ^~~~