Submission #205665

#TimeUsernameProblemLanguageResultExecution timeMemory
205665stefdascaAirline Route Map (JOI18_airline)C++14
Compilation error
0 ms0 KiB
/* JOISC 18-Airline idea: https://ivaniscoding.wordpress.com/2018/08/27/communication-4-airline-route-map/ */ #include "Alicelib.h" #include<bits/stdc++.h> #define pb push_back #define fi first #define se second using namespace std; void Alice(int N, int M, int A[], int B[]) { vector<pair<int, int> >muchii; for(int i = 0; i < M; ++i) muchii.pb({A[i], B[i]}); for(int i = 0; i <= 9; ++i) { for(int j = 0; j < N; ++j) if(j & (1<<i)) muchii.pb({N + i, j}); if(i < 9) muchii.pb({N + i, N + i + 1}); } for(int j = 0; j < N; ++j) muchii.pb({N + 10, j}); muchii.pb({N + 11, N + 10}); InitG(N + 12, muchii.size()); for (int i = 0; i < muchii.size(); i++) MakeG(i, muchii[i].fi, muchii[i].se); }
/* JOISC 18-Airline idea: https://ivaniscoding.wordpress.com/2018/08/27/communication-4-airline-route-map/ */ #include "Alicelib.h" #include<bits/stdc++.h> #define pb push_back #define fi first #define se second using namespace std; void Alice(int N, int M, int A[], int B[]) { vector<pair<int, int> >muchii; for(int i = 0; i < M; ++i) muchii.pb({A[i], B[i]}); for(int i = 0; i <= 9; ++i) { for(int j = 0; j < N; ++j) if(j & (1<<i)) muchii.pb({N + i, j}); if(i < 9) muchii.pb({N + i, N + i + 1}); } for(int j = 0; j < N; ++j) muchii.pb({N + 10, j}); muchii.pb({N + 11, N + 10}); InitG(N + 12, muchii.size()); for (int i = 0; i < muchii.size(); i++) MakeG(i, muchii[i].fi, muchii[i].se); }

Compilation message (stderr)

Alice.cpp: In function 'void Alice(int, int, int*, int*)':
Alice.cpp:32:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     for (int i = 0; i < muchii.size(); i++)
                     ~~^~~~~~~~~~~~~~~

Bob.cpp: In function 'void Alice(int, int, int*, int*)':
Bob.cpp:32:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     for (int i = 0; i < muchii.size(); i++)
                     ~~^~~~~~~~~~~~~~~
/tmp/ccPU9hgm.o: In function `main':
grader_bob.cpp:(.text.startup+0xd0): undefined reference to `Bob(int, int, int*, int*)'
/tmp/ccxSWwUv.o: In function `Alice(int, int, int*, int*)':
Bob.cpp:(.text+0x15a): undefined reference to `InitG(int, int)'
Bob.cpp:(.text+0x17c): undefined reference to `MakeG(int, int, int)'
collect2: error: ld returned 1 exit status