Submission #715987

# Submission time Handle Problem Language Result Execution time Memory
715987 2023-03-28T17:38:05 Z Nonoze Art Class (IOI13_artclass) C++14
Compilation error
0 ms 0 KB
#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

/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