Submission #122943

#TimeUsernameProblemLanguageResultExecution timeMemory
122943onjo0127Amusement Park (JOI17_amusement_park)C++17
Compilation error
0 ms0 KiB
#include "Joi.h"
#include <bits/stdc++.h>
using namespace std;

void Joi(int N, int M, int A[], int B[], long long X, int T) {
	for(int i=0; i<N; i++) MessageBoard(i, (X >> (i%60)) & 1);
}
#include "Ioi.h"
#include <bits/stdc++.h>
using namespace std;
using pii = pair<int, int>;

static int move(int x) {
	// printf("dest: %d\n", x);
	return Move(x);
}

long long Ioi(int N, int M, int A[], int B[], int P, int V, int T) {
	int xx = V;
	while(P % 60 || P + 60 > N) xx = move(--P);
	for(int i=0; i<60; i++) {
		ret |= (xx << i);
		if(i+1 < 60) xx = move(++P);
	}
	return ret;
}

Compilation message (stderr)

Ioi.cpp: In function 'long long int Ioi(int, int, int*, int*, int, int, int)':
Ioi.cpp:15:3: error: 'ret' was not declared in this scope
   ret |= (xx << i);
   ^~~
Ioi.cpp:15:3: note: suggested alternative: 'getw'
   ret |= (xx << i);
   ^~~
   getw
Ioi.cpp:18:9: error: 'ret' was not declared in this scope
  return ret;
         ^~~
Ioi.cpp:18:9: note: suggested alternative: 'getw'
  return ret;
         ^~~
         getw