Language: C++

#include <iostream>
#include <cstdio>
#include <vector>
#include <queue>
#include <algorithm>
#include <string.h>
#define F first
#define S second
#define MP make_pair
#define int long long
#define INF long(1e18)
using namespace std;
typedef pair<int, int> P;
typedef pair<P, int> PP;
??
??
int n, m, k, s, pp, q, ans[100001];
int dead[100001];
vector<int> road[100001], root;
inline int in(){
  int temp;
  scanf("%ld", &temp);
  return temp;
}
void bfs(int sta)
{
????queue<P> que;
????que.push(MP(sta, 0));
????dead[sta] = -1;
????while(!que.empty())
????{
????????P p = que.front();
????????que.pop();
????????if(p.S == s) continue;
????????for(int i = 0; i < road[p.F].size(); i++)
????????{
????????????if(!dead[road[p.F][i]] || dead[road[p.F][i]] > p.S + 1)
????????????{
????????????????que.push(MP(road[p.F][i], p.S + 1));
????????????????dead[road[p.F][i]] = p.S + 1;
????????????}
????????}
????}
}
void dijkstra(){
????priority_queue<P> pq;
????pq.push(MP(0, 1));
????ans[1] = 0;
????while(!pq.empty())
????{
????????P p = pq.top();
????????pq.pop();
????????for(int i = 0; i < road[p.S].size(); i++)
????????{
????????????if(dead[road[p.S][i]] == -1) continue;
????????????if(!dead[road[p.S][i]] && ans[road[p.S][i]] < p.F - pp)
????????????{
????????????????pq.push(MP(p.F - pp, road[p.S][i]));
????????????????ans[road[p.S][i]] = p.F - pp;
????????????}
????????????else if(ans[road[p.S][i]] < p.F - q){
????????????????pq.push(MP(p.F - q, road[p.S][i]));
????????????????ans[road[p.S][i]] = p.F - q;
????????????}
????????}
????}
}
signed main()
{
????cin >> n >> m >> k >> s >> pp >> q;
????for(int i = 0; i < k; i++)
????{
????????root.push_back(in());
????}
????for(int i = 0; i < m; i++)
????{
????????int a = in(), b = in();
????????road[a].push_back(b);
????????road[b].push_back(a);
????}
????for(int i = 0; i < k; i++)
????{
????????bfs(root[i]);
????}
????fill(ans, ans + n + 1, -INF);
????dijkstra();
????if(!dead[n])
????????cout << -ans[n] - pp << endl;
????else
????????cout << -ans[n] - q <<endl;
}

Compiler output:
a.cc:15:1: error: expected unqualified-id before '?' token
   15 | ??
      | ^
a.cc: In function 'void bfs(long long int)':
a.cc:27:1: error: expected primary-expression before '?' token
   27 | ????queue<P> que;
      | ^
a.cc:27:2: error: expected primary-expression before '?' token
   27 | ????queue<P> que;
      |  ^
a.cc:27:3: error: expected primary-expression before '?' token
   27 | ????queue<P> que;
      |   ^
a.cc:27:4: error: expected primary-expression before '?' token
   27 | ????queue<P> que;
      |    ^
a.cc:27:14: error: expected primary-expression before 'que'
   27 | ????queue<P> que;
      |              ^~~
a.cc:27:13: error: expected ':' before 'que'
   27 | ????queue<P> que;
      |             ^~~~
      |             :
a.cc:27:14: error: 'que' was not declared in this scope
   27 | ????queue<P> que;
      |              ^~~
a.cc:27:17: error: expected ':' before ';' token
   27 | ????queue<P> que;
      |                 ^
      |                 :
a.cc:27:17: error: expected primary-expression before ';' token
a.cc:27:17: error: expected ':' before ';' token
   27 | ????queue<P> que;
      |                 ^
      |                 :
a.cc:27:17: error: expected primary-expression before ';' token
a.cc:27:17: error: expected ':' before ';' token
   27 | ????queue<P> que;
      |                 ^
      |                 :
a.cc:27:17: error: expected primary-expression before ';' token
a.cc:28:1: error: expected primary-expression before '?' token
   28 | ????que.push(MP(sta, 0));
      | ^
a.cc:28:2: error: expected primary-expression before '?' token
   28 | ????que.push(MP(sta, 0));
      |  ^
a.cc:28:3: error: expected primary-expression before '?' token
   28 | ????que.push(MP(sta, 0));
      |   ^
a.cc:28:4: error: expected primary-expression before '?' token
   28 | ????que.push(MP(sta, 0));
      |    ^
a.cc:28:25: error: expected ':' before ';' token
   28 | ????que.push(MP(sta, 0));
      |                         ^
      |                         :
a.cc:28:25: error: expected primary-expression before ';' token
a.cc:28:25: error: expected ':' before ';' token
   28 | ????que.push(MP(sta, 0));
      |                         ^
      |                         :
a.cc:28:25: error: expected primary-expression before ';' token
a.cc:28:25: error: expected ':' before ';' token
   28 | ????que.push(MP(sta, 0));
      |                         ^
      |                         :
a.cc:28:25: error: expected primary-expression before ';' token
a.cc:28:25: error: expected ':' before ';' token
   28 | ????que.push(MP(sta, 0));
      |                         ^
      |                         :
a.cc:28:25: error: expected primary-expression before ';' token
a.cc:29:1: error: expected primary-expression before '?' token
   29 | ????dead[sta] = -1;
      | ^
a.cc:29:2: error: expected primary-expression before '?' token
   29 | ????dead[sta] = -1;
      |  ^
a.cc:29:3: error: expected primary-expression before '?' token
   29 | ????dead[sta] = -1;
      |   ^
a.cc:29:4: error: expected primary-expression before '?' token
   29 | ????dead[sta] = -1;
      |    ^
a.cc:29:19: error: expected ':' before ';' token
   29 | ????dead[sta] = -1;
      |                   ^
      |                   :
a.cc:29:19: error: expected primary-expression before ';' token
a.cc:29:19: error: expected ':' before ';' token
   29 | ????dead[sta] = -1;
      |                   ^
      |                   :
a.cc:29:19: error: expected primary-expression before ';' token
a.cc:29:19: error: expected ':' before ';' token
   29 | ????dead[sta] = -1;
      |                   ^
      |                   :
a.cc:29:19: error: expected primary-expression before ';' token
a.cc:29:19: error: expected ':' before ';' token
   29 | ????dead[sta] = -1;
      |                   ^
      |                   :
a.cc:29:19: error: expected primary-expression before ';' token
a.cc:30:1: error: expected primary-expression before '?' token
   30 | ????while(!que.empty())
      | ^
a.cc:30:2: error: expected primary-expression before '?' token
   30 | ????while(!que.empty())
      |  ^
a.cc:30:3: error: expected primary-expression before '?' token
   30 | ????while(!que.empty())
      |   ^
a.cc:30:4: error: expected primary-expression before '?' token
   30 | ????while(!que.empty())
      |    ^
a.cc:30:5: error: expected primary-expression before 'while'
   30 | ????while(!que.empty())
      |     ^~~~~
a.cc:30:5: error: expected ':' before 'while'
   30 | ????while(!que.empty())
      |     ^~~~~
      |     :
a.cc:30:5: error: expected primary-expression before 'while'
   30 | ????while(!que.empty())
      |     ^~~~~
a.cc:30:5: error: expected ':' before 'while'
   30 | ????while(!que.empty())
      |     ^~~~~
      |     :
a.cc:30:5: error: expected primary-expression before 'while'
   30 | ????while(!que.empty())
      |     ^~~~~
a.cc:30:5: error: expected ':' before 'while'
   30 | ????while(!que.empty())
      |     ^~~~~
      |     :
a.cc:30:5: error: expected primary-expression before 'while'
   30 | ????while(!que.empty())
      |     ^~~~~
a.cc:30:5: error: expected ':' before 'while'
   30 | ????while(!que.empty())
      |     ^~~~~
      |     :
a.cc:30:5: error: expected primary-expression before 'while'
   30 | ????while(!que.empty())
      |     ^~~~~
a.cc: In function 'void dijkstra()':
a.cc:46:1: error: expected primary-expression before '?' token
   46 | ????priority_queue<P> pq;
      | ^
a.cc:46:2: error: expected primary-expression before '?' token
   46 | ????priority_queue<P> pq;
      |  ^
a.cc:46:3: error: expected primary-expression before '?' token
   46 | ????priority_queue<P> pq;
      |   ^
a.cc:46:4: error: expected primary-expression before '?' token
   46 | ????priority_queue<P> pq;
      |    ^
a.cc:46:23: error: expected primary-expression before 'pq'
   46 | ????priority_queue<P> pq;
      |                       ^~
a.cc:46:22: error: expected ':' before 'pq'
   46 | ????priority_queue<P> pq;
      |                      ^~~
      |                      :
a.cc:46:23: error: 'pq' was not declared in this scope
   46 | ????priority_queue<P> pq;
      |                       ^~
a.cc:46:25: error: expected ':' before ';' token
   46 | ????priority_queue<P> pq;
      |                         ^
      |                         :
a.cc:46:25: error: expected primary-expression before ';' token
a.cc:46:25: error: expected ':' before ';' token
   46 | ????priority_queue<P> pq;
      |                         ^
      |                         :
a.cc:46:25: error: expected primary-expression before ';' token
a.cc:46:25: error: expected ':' before ';' token
   46 | ????priority_queue<P> pq;
      |                         ^
      |                         :
a.cc:46:25: error: expected primary-expression before ';' token
a.cc:47:1: error: expected primary-expression before '?' token
   47 | ????pq.push(MP(0, 1));
      | ^
a.cc:47:2: error: expected primary-expression before '?' token
   47 | ????pq.push(MP(0, 1));
      |  ^
a.cc:47:3: error: expected primary-expression before '?' token
   47 | ????pq.push(MP(0, 1));
      |   ^
a.cc:47:4: error: expected primary-expression before '?' token
   47 | ????pq.push(MP(0, 1));
      |    ^
a.cc:47:22: error: expected ':' before ';' token
   47 | ????pq.push(MP(0, 1));
      |                      ^
      |                      :
a.cc:47:22: error: expected primary-expression before ';' token
a.cc:47:22: error: expected ':' before ';' token
   47 | ????pq.push(MP(0, 1));
      |                      ^
      |                      :
a.cc:47:22: error: expected primary-expression before ';' token
a.cc:47:22: error: expected ':' before ';' token
   47 | ????pq.push(MP(0, 1));
      |                      ^
      |                      :
a.cc:47:22: error: expected primary-expression before ';' token
a.cc:47:22: error: expected ':' before ';' token
   47 | ????pq.push(MP(0, 1));
      |                      ^
      |                      :
a.cc:47:22: error: expected primary-expression before ';' token
a.cc:48:1: error: expected primary-expression before '?' token
   48 | ????ans[1] = 0;
      | ^
a.cc:48:2: error: expected primary-expression before '?' token
   48 | ????ans[1] = 0;
      |  ^
a.cc:48:3: error: expected primary-expression before '?' token
   48 | ????ans[1] = 0;
      |   ^
a.cc:48:4: error: expected primary-expression before '?' token
   48 | ????ans[1] = 0;
      |    ^
a.cc:48:5: error: 'ans' was not declared in this scope; did you mean 'abs'?
   48 | ????ans[1] = 0;
      |     ^~~
      |     abs
a.cc:48:15: error: expected ':' before ';' token
   48 | ????ans[1] = 0;
      |               ^
      |               :
a.cc:48:15: error: expected primary-expression before ';' token
a.cc:48:15: error: expected ':' before ';' token
   48 | ????ans[1] = 0;
      |               ^
      |               :
a.cc:48:15: error: expected primary-expression before ';' token
a.cc:48:15: error: expected ':' before ';' token
   48 | ????ans[1] = 0;
      |               ^
      |               :
a.cc:48:15: error: expected primary-expression before ';' token
a.cc:48:15: error: expected ':' before ';' token
   48 | ????ans[1] = 0;
      |               ^
      |               :
a.cc:48:15: error: expected primary-expression before ';' token
a.cc:49:1: error: expected primary-expression before '?' token
   49 | ????while(!pq.empty())
      | ^
a.cc:49:2: error: expected primary-expression before '?' token
   49 | ????while(!pq.empty())
      |  ^
a.cc:49:3: error: expected primary-expression before '?' token
   49 | ????while(!pq.empty())
      |   ^
a.cc:49:4: error: expected primary-expression before '?' token
   49 | ????while(!pq.empty())
      |    ^
a.cc:49:5: error: expected primary-expression before 'while'
   49 | ????while(!pq.empty())
      |     ^~~~~
a.cc:49:5: error: expected ':' before 'while'
   49 | ????while(!pq.empty())
      |     ^~~~~
      |     :
a.cc:49:5: error: expected primary-expression before 'while'
   49 | ????while(!pq.empty())
      |     ^~~~~
a.cc:49:5: error: expected ':' before 'while'
   49 | ????while(!pq.empty())
      |     ^~~~~
      |     :
a.cc:49:5: err