Submission #60689

#TimeUsernameProblemLanguageResultExecution timeMemory
60689mhndParrots (IOI11_parrots)C++14
Compilation error
0 ms0 KiB
#include "encoder.h"
#include "encoderlib.h"
#include <bits/stdc++.h>

using namespace std;

typedef long long ll;
typedef unsigned long long ull;
const int N = 1e5+50;
const ll oo = 1e18;
const ll mod = 1e9+7;

void encode(int N, int M[]) {
	for(int i=0;i<N;i++){
		for(int k=10;k>=0;k--){
			if((M[i]>>k)&1){
				send(16*k+i)
			}
		}
	}
}
#include "decoder.h"
#include "decoderlib.h"
#include <bits/stdc++.h>

using namespace std;

typedef long long ll;
typedef unsigned long long ull;
const int N = 1e5+50;
const ll oo = 1e18;
const ll mod = 1e9+7;

int num[65];
void decode(int N, int L, int X[]){
	for(int i=0;i<L;i++){
		num[X[i]%16] += (1<<(X[i]/16));
	}
	for(int i=0;i<N;i++)output(num[i]);
}

Compilation message (stderr)

encoder.cpp: In function 'void encode(int, int*)':
encoder.cpp:18:4: error: expected ';' before '}' token
    }
    ^