Submission #587598

# Submission time Handle Problem Language Result Execution time Memory
587598 2022-07-02T06:32:25 Z LastRonin Flights (JOI22_flights) C++17
Compilation error
0 ms 0 KB
#include "Ali.h"
#include <string>
#include <vector>
#include <bits/stdc++.h>

using namespace std;

namespace {

int variable_example = 0;

}

void Init(int N, std::vector<int> U, std::vector<int> V) {
	variable_example++;
	for(int i = 0; i < N; i++)
		SetID(i, i);
}

std::string SendA(std::string S) {
    if(variable_example == 1)assert(0);
	return "01001";
}
#include "Ali.h"
#include <string>
#include <vector>
#include <bits/stdc++.h>

using namespace std;

namespace {

int variable_example = 0;

}

void Init(int N, std::vector<int> U, std::vector<int> V) {
	variable_example++;
	for(int i = 0; i < N; i++)
		SetID(i, i);
}

std::string SendA(std::string S) {
    if(variable_example == 1)assert(0);
	return "01001";
}

Compilation message

grader_ali.cpp:10:8: warning: '{anonymous}::_randmem' defined but not used [-Wunused-variable]
   10 |   char _randmem[12379];
      |        ^~~~~~~~

/usr/bin/ld: /tmp/ccIMQU9V.o: in function `main':
grader_benjamin.cpp:(.text.startup+0x19a): undefined reference to `Answer(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >)'
/usr/bin/ld: grader_benjamin.cpp:(.text.startup+0x24f): undefined reference to `SendB[abi:cxx11](int, int, int)'
/usr/bin/ld: /tmp/ccjEP70W.o: in function `Init(int, std::vector<int, std::allocator<int> >, std::vector<int, std::allocator<int> >)':
Benjamin.cpp:(.text+0x28): undefined reference to `SetID(int, int)'
collect2: error: ld returned 1 exit status