제출 #1021995

#제출 시각아이디문제언어결과실행 시간메모리
1021995amine_aroua미술 수업 (IOI13_artclass)C++17
컴파일 에러
0 ms0 KiB
#include "artclass.h" mt19937 rng(chrono::steady_clock::now().time_since_epoch().count()); int style(int H, int W, int R[500][500], int G[500][500], int B[500][500]) { return uniform_int_distribution(1 , 4)(rng); }

컴파일 시 표준 에러 (stderr) 메시지

artclass.cpp:2:1: error: 'mt19937' does not name a type
    2 | mt19937 rng(chrono::steady_clock::now().time_since_epoch().count());
      | ^~~~~~~
artclass.cpp: In function 'int style(int, int, int (*)[500], int (*)[500], int (*)[500])':
artclass.cpp:4:12: error: 'uniform_int_distribution' was not declared in this scope
    4 |     return uniform_int_distribution(1 , 4)(rng);
      |            ^~~~~~~~~~~~~~~~~~~~~~~~
artclass.cpp:4:44: error: 'rng' was not declared in this scope
    4 |     return uniform_int_distribution(1 , 4)(rng);
      |                                            ^~~