Submission #83854

# Submission time Handle Problem Language Result Execution time Memory
83854 2018-11-11T12:21:25 Z aminra Question (Grader is different from the original contest) (CEOI14_question_grader) C++14
Compilation error
0 ms 0 KB
#include <stdio.h>
#include <stdlib.h>
int encode(int n, int x, int y)
{
	int bt = -1;
	for (int i = 0; i < 10; i++)
		if(((x >> i) & 1) != ((y >> i) & 1))	
			bt = i;
	if(x > y)	
		return bt + 11;
	else
		return bt + 1;
}



    

Compilation message

/tmp/ccAg8KN0.o: In function `main':
grader_decode.c:(.text.startup+0x19f): undefined reference to `decode(int, int, int)'
collect2: error: ld returned 1 exit status