Submission #471598

# Submission time Handle Problem Language Result Execution time Memory
471598 2021-09-10T03:12:11 Z flappybird Navigation 2 (JOI21_navigation2) C++17
Compilation error
0 ms 0 KB
#include "Anna.h"
#include <bits/stdc++.h>

typedef int ll;
using namespace std;

namespace {


} // namespace

void Anna(int N, int K, std::vector<int> R, std::vector<int> C) {
	ll i, j, k;
	for (i = 0; i < N; i++) {
		for (j = 0; j < N; j++) {
			ll val = 0;
			for (k = 0; k < K; k++) {
				if (R[k] <= i && C[k] <= j) val |= (1 << k);
			}
			SetFlag(i, j, val + 1);
		}
	}
}
#include "Anna.h"
#include <bits/stdc++.h>

typedef int ll;
using namespace std;

namespace {


} // namespace

void Anna(int N, int K, std::vector<int> R, std::vector<int> C) {
	ll i, j, k;
	for (i = 0; i < N; i++) {
		for (j = 0; j < N; j++) {
			ll val = 0;
			for (k = 0; k < K; k++) {
				if (R[k] <= i && C[k] <= j) val |= (1 << k);
			}
			SetFlag(i, j, val + 1);
		}
	}
}

Compilation message

/usr/bin/ld: /tmp/ccYyuo3g.o: in function `main':
grader_bruno.cpp:(.text.startup+0x1d3): undefined reference to `Bruno(int, std::vector<int, std::allocator<int> >)'
/usr/bin/ld: /tmp/ccjHcTpi.o: in function `Anna(int, int, std::vector<int, std::allocator<int> >, std::vector<int, std::allocator<int> >)':
Bruno.cpp:(.text+0x7b): undefined reference to `SetFlag(int, int, int)'
collect2: error: ld returned 1 exit status