Submission #993917

# Submission time Handle Problem Language Result Execution time Memory
993917 2024-06-06T20:20:18 Z Lib Magic Show (APIO24_show) C++17
Compilation error
0 ms 0 KB
#include <bits/stdc++.h>
#include "Alice.h"
long long n;
vector<pair <int,int>> Alice(){
	n=setN();
}
#include <bits/stdc++.h>
#include "Bob.h"
using namespace std;
int toggled[500];
long long Bob(vector <pair<int,int> > adj){
	long long xorhash=463222221001217544,ta,tb,ans;
	for(int i=0;i<adj.size();i++){
	ta=adj[i].first/34;
	tb=adj[i].first/34;
	if(ta==tb&&ta<=60){
		toggled[ta]=1;
	}
	}
	ans=0;
	for(int i=0;i<=60;i++){
		ans|=1 << i;
	}
	ans|=xorhash;
	return ans;
}

Compilation message

Alice.cpp:4:1: error: 'vector' does not name a type
    4 | vector<pair <int,int>> Alice(){
      | ^~~~~~

Bob.cpp: In function 'long long int Bob(std::vector<std::pair<int, int> >)':
Bob.cpp:7:15: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
    7 |  for(int i=0;i<adj.size();i++){
      |              ~^~~~~~~~~~~