Submission #427741

#TimeUsernameProblemLanguageResultExecution timeMemory
427741arayiArt Class (IOI13_artclass)C++17
Compilation error
0 ms0 KiB
#include "artclass.h" #include <bits/stdc++.h> using namespace std; int a[256][256][256]; int style(int H, int W, int R[500][500], int G[500][500], int B[500][500]) { a[227][192][186] = a[147][144][63] = a[216][217][221] = a[53][52][50] = a[202][191][195] = 1 a[254][252][253] = a[98][96][143] = a[14][15][10] = a[207][206][139] = 1; a[182][179][162] = a[196][187][180] = a[211][134][114] = a[52][60][45] = a[148][166][142] = 2 a[158][179][170] = a[171][160][164] = a[110][93][39] = a[81][90][73] = 2; a[189][193][170] = a[73][77][40] = a[174][168][142] = a[178][144][98] = a[87][86][55] = 3; a[218][209][180] = a[200][197][156] = a[214][186][147] = a[192][143][126] = 3; if(a[R[0][0]][G[0][0]][B[0][0]]) return a[R[0][0]][G[0][0]][B[0][0]]; return 4; }

Compilation message (stderr)

artclass.cpp: In function 'int style(int, int, int (*)[500], int (*)[500], int (*)[500])':
artclass.cpp:8:97: error: expected ';' before 'a'
    8 |     a[227][192][186] = a[147][144][63] = a[216][217][221] = a[53][52][50] = a[202][191][195] = 1
      |                                                                                                 ^
      |                                                                                                 ;
    9 |     a[254][252][253] = a[98][96][143] = a[14][15][10] = a[207][206][139] = 1;
      |     ~                                                                                            
artclass.cpp:10:98: error: expected ';' before 'a'
   10 |     a[182][179][162] = a[196][187][180] = a[211][134][114] = a[52][60][45] = a[148][166][142] = 2
      |                                                                                                  ^
      |                                                                                                  ;
   11 |     a[158][179][170] = a[171][160][164] = a[110][93][39] = a[81][90][73] = 2;
      |     ~