Submission #1021995

#TimeUsernameProblemLanguageResultExecution timeMemory
1021995amine_arouaArt Class (IOI13_artclass)C++17
Compilation error
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); }

Compilation message (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);
      |                                            ^~~