Submission #933907

#TimeUsernameProblemLanguageResultExecution timeMemory
933907alexander707070Airline Route Map (JOI18_airline)C++14
Compilation error
0 ms0 KiB
#include<bits/stdc++.h> #include "Alicelib.h" #define MAXN 2007 using namespace std; int n,m,num; vector< pair<int,int> > edges; void Alice( int N, int M, int A[], int B[]){ srand(42070); n=N; m=M; num=17; for(int i=0;i<n;i++){ for(int f=10;f>=0;f--){ if(((1<<f)&(i+num))>0)edges.push_back({i,n+f}); } } for(int i=n;i<=n+10;i++){ edges.push_back({i,n+11}); if(i<n+10)edges.push_back({i,i+1}); } for(int i=0;i<m;i++){ edges.push_back({A[i],B[i]}); } InitG( n+12, edges.size() ); for(int i=0;i<edges.size();i++){ MakeG(i,edges[i].first,edges[i].second); } }

Compilation message (stderr)

Alice.cpp: In function 'void Alice(int, int, int*, int*)':
Alice.cpp:33: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]
   33 |  for(int i=0;i<edges.size();i++){
      |              ~^~~~~~~~~~~~~

/usr/bin/ld: /tmp/ccPaucUu.o: in function `main':
grader_bob.cpp:(.text.startup+0xb2): undefined reference to `Bob(int, int, int*, int*)'
collect2: error: ld returned 1 exit status