Submission #918339

#TimeUTC-0UsernameProblemLanguageResultExecution timeMemory
9183392024-01-29 17:08:28contest_altHoliday (IOI14_holiday)C++17
Compilation error
0 ms0 KiB
#include "friend.h"
#include <vector>
#include <algorithm>
#include <random>
const int MAXN = 1000;
namespace Solver {
std::vector<int> adj[MAXN];
void push_edge( int a, int b ) {
adj[a].push_back( b );
adj[b].push_back( a );
}
void make_graph( int n, int host[], int protocol[] ) {
for( int i = 1 ; i < n ; i++ ){
if( protocol[i] == 0 )
push_edge( i, host[i] );
else if( protocol[i] == 1 ){
for( int x : adj[host[i]] )
push_edge( x, i );
}else{
for( int x : adj[host[i]] )
push_edge( x, i );
push_edge( host[i], i );
}
 
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Compilation message (stderr)

holiday.cpp:1:10: fatal error: friend.h: No such file or directory
    1 | #include "friend.h"
      |          ^~~~~~~~~~
compilation terminated.