Submission #892249

# Submission time Handle Problem Language Result Execution time Memory
892249 2023-12-25T05:51:27 Z vjudge1 Super Dango Maker (JOI22_dango3) C++17
Compilation error
0 ms 0 KB
#include "grader.cpp"
#include <bits/stdc++.h>
#define ll int
#define str string
#define ins insert
#define ld long double
#define pb push_back
#define pf push_front
#define pof pop_front()
#define pob pop_back()
#define lb lower_bound
#define ub upper_bound
#define endl "\n"
#define fr first
#define sc second
#define mpa make_pair
#define all(x) x.begin(),x.end()
#define rall(x) x.rbegin(),x.rend()
#define sz size()
#define bc back()
#define ar array
#define vll vector<ll> 
using namespace std;
template <class _T>
bool chmin(_T &x, const _T &y){
    if (x>y){x=y;return true;}
	return false;
}
template <class _T>
bool chmax(_T &x, const _T &y){
    if (x<y){x=y;return true;}
	return false;
}
const ll mod=1e9+7;
const ld eps=1e-9;
void Solve(ll n,ll m) {
	ll i,j;
	vector<ll> lst;
	map<ll,ll> mp;
	vector<vll> col(m+5);
	for(i=1;i<=m;i++){
		vector<ll> v=lst;
		for(j=1;j<=n;j++){
			if(mp[j])continue;
			v.pb(j);
			ll x=Query(v);
			if(x==1){
				mp[j]++;
				col[i].pb(j);
				lst.pb(j);
			}
		}
	}
	for(i=1;i<=n;i++){
		vector<ll> v;
		for(j=1;j<=m;j++){
			v.pb(col[j].bc);
			col[j].pop_back();
		}
		Answer(v);
	}
}
/*












*/

Compilation message

/usr/bin/ld: /tmp/cchMiyZs.o: in function `Query(std::vector<int, std::allocator<int> > const&)':
grader.cpp:(.text+0x50): multiple definition of `Query(std::vector<int, std::allocator<int> > const&)'; /tmp/ccxGgWBt.o:dango3.cpp:(.text+0x360): first defined here
/usr/bin/ld: /tmp/cchMiyZs.o: in function `Answer(std::vector<int, std::allocator<int> > const&)':
grader.cpp:(.text+0x1c0): multiple definition of `Answer(std::vector<int, std::allocator<int> > const&)'; /tmp/ccxGgWBt.o:dango3.cpp:(.text+0x390): first defined here
/usr/bin/ld: /tmp/cchMiyZs.o: in function `main':
grader.cpp:(.text.startup+0x0): multiple definition of `main'; /tmp/ccxGgWBt.o:dango3.cpp:(.text.startup+0x0): first defined here
collect2: error: ld returned 1 exit status