Submission #111988

# Submission time Handle Problem Language Result Execution time Memory
111988 2019-05-17T04:02:39 Z AMO5 None (JOI16_memory2) C++
Compilation error
0 ms 0 KB
#include <bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
#include "Memory2_lib.h"

using namespace std;
using namespace __gnu_pbds;

#define fi first
#define se second
#define mp make_pair
#define pb push_back
#define fbo find_by_order
#define ook order_of_key
#define all(x) (x).begin(), (x).end() 

typedef long long ll;
typedef pair <int, int> pii;
typedef pair <ll, ll> pll;
typedef pair <ll, int> pli;
typedef vector<int> vi;
typedef vector<ll> vll;
typedef long double ld;
typedef tree<int, null_type, less<int>, rb_tree_tag, tree_order_statistics_node_update> pbds;
typedef set<int>::iterator sit;
typedef map<int,int>::iterator mit;
typedef vector<int>::iterator vit;

long long INF=numeric_limits<long long>::max();

int vis[1011];
vector<int> pos[55];

void Solve(int T, int N){
	if(T<=2)
    {
		int n = N;
		N*=2;
		for(int i = 0; i < N; i++)
		{
			for(int j = i+1; j < N; j++)
			{
				for(int k = j+1; k < N; k++)
				{
					if(vis[i]||vis[j]||vis[k])continue;
					int x = Flip(i,j);
					int y = Flip(i,k);
					int z = Flip(j,k);
					if(x==y&&x==z)
					{
						
					}
					else if(x==y)
					{
						pos[x].pb(i);
						vis[i] = 1;
					}
					else if(x==z)
					{
						pos[x].pb(j);
						vis[j] = 1;
					}
					else if
					{
						pos[x].pb(k);
						vis[k] = 1;
					}
				}
			}
		}
		
		for(int i = 0; i < n; i++)
		{
			Answer(pos[i][0],pos[i][1],i);
		}
	}
	return;
}

Compilation message

memory2.cpp: In function 'void Solve(int, int)':
memory2.cpp:64:6: error: expected '(' before '{' token
      {
      ^