Submission #993920

# Submission time Handle Problem Language Result Execution time Memory
993920 2024-06-06T20:22:58 Z Lib Magic Show (APIO24_show) C++17
0 / 100
0 ms 344 KB
#include <bits/stdc++.h>
#include "Alice.h"
using namespace std;
long long x;
vector<pair <int,int>> Alice(){
	setN(x);
}
#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: In function 'std::vector<std::pair<int, int> > Alice()':
Alice.cpp:7:1: warning: no return statement in function returning non-void [-Wreturn-type]
    7 | }
      | ^

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++){
      |              ~^~~~~~~~~~~
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 344 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 344 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 344 KB Output isn't correct
2 Halted 0 ms 0 KB -