Submission #789531

#TimeUTC-0UsernameProblemLanguageResultExecution timeMemory
7895312023-07-21 13:14:22someoneTwo Transportations (JOI19_transportations)C++14
Compilation error
0 ms0 KiB
#include "Azer.h"
#include <bits/stdc++.h>
using namespace std;
struct Arc {
int nex, pds;
};
const int N = 2e3 + 42, INF = 1e6 + 42;
int n, knows[N];
vector<bool> msg;
vector<int> dist;
vector<Arc> arc[N];
priority_queue<pair<int, int>> pq;
void Init(int X, int a, vector<int> U, vector<int> V, vector<int> C) {
//cout << '\n' << '\n';
n = X;
dist.resize(n);
for(int i = 0; i < a; i++) {
arc[U[i]].push_back({V[i], C[i]});
arc[V[i]].push_back({U[i], C[i]});
}
for(int i = 1; i < n; i++)
knows[i] = dist[i] = INF;
for(int i = 0; i < n; i++)
pq.push({-dist[i], i});
for(int j = 0; j < 11; j++)
 
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Compilation message (stderr)

Azer.cpp: In function 'void Init(int, int, std::vector<int>, std::vector<int>, std::vector<int>)':
Azer.cpp:31:9: error: 'Send' was not declared in this scope; did you mean 'SendA'?
   31 |         Send(0 & (1 << j));
      |         ^~~~
      |         SendA
Azer.cpp:33:9: error: 'Send' was not declared in this scope; did you mean 'SendA'?
   33 |         Send(0 & (1 << j));
      |         ^~~~
      |         SendA
Azer.cpp: In function 'void Receive(bool)':
Azer.cpp:69:25: error: 'Send' was not declared in this scope; did you mean 'SendA'?
   69 |                         Send(i & (1 << j));
      |                         ^~~~
      |                         SendA
Azer.cpp:71:25: error: 'Send' was not declared in this scope; did you mean 'SendA'?
   71 |                         Send(d & (1 << j));
      |                         ^~~~
      |                         SendA
Azer.cpp:80:25: error: 'Send' was not declared in this scope; did you mean 'SendA'?
   80 |                         Send(j & (1 << k));
      |                         ^~~~
      |                         SendA
Azer.cpp:82:25: error: 'Send' was not declared in this scope; did you mean 'SendA'?
   82 |                         Send(INF & (1 << k));
      |                         ^~~~
      |                         SendA

Baijan.cpp: In function 'void Receive(bool)':
Baijan.cpp:63:25: error: 'Send' was not declared in this scope; did you mean 'SendB'?
   63 |                         Send(i & (1 << j));
      |                         ^~~~
      |                         SendB
Baijan.cpp:65:25: error: 'Send' was not declared in this scope; did you mean 'SendB'?
   65 |                         Send(d & (1 << j));
      |                         ^~~~
      |                         SendB
Baijan.cpp:74:25: error: 'Send' was not declared in this scope; did you mean 'SendB'?
   74 |                         Send(j & (1 << k));
      |                         ^~~~
      |                         SendB
Baijan.cpp:76:25: error: 'Send' was not declared in this scope; did you mean 'SendB'?
   76 |                         Send(INF & (1 << k));
      |                         ^~~~
      |                         SendB