Submission #715987

#TimeUsernameProblemLanguageResultExecution timeMemory
715987NonozeArt Class (IOI13_artclass)C++14
Compilation error
0 ms0 KiB
#include <bits/stdc++.h> //#include "artclass.h" using namespace std; int style(int H, int W, int R[500][500], int G[500][500], int B[500][500]) { map<tuple<int, int, int>, bool> verif; int comp=0; for (int i = 0; i < H; ++i) { for (int j = 0; j < W; ++j) { if (!verif.count(make_tuple(R[i][j], G[i][j], B[i][j]))) { comp++; } verif[make_tuple(R[i][j], G[i][j], B[i][j])]=true; } } //cout << comp << endl; if (comp>=70000) { return 2; } if (comp>=30000) { return 3; } if (comp>=17000) { return 1; } return 4; }

Compilation message (stderr)

/usr/bin/ld: /tmp/cc7rNQMH.o: in function `main':
grader.c:(.text.startup+0x200): undefined reference to `style'
collect2: error: ld returned 1 exit status