Language: C++

*#include<bits/stdc++.h>
#define int long long
#define INF INT_MAX
#define P pair<int,int>
using namespace std;
????
??int d[100000];
??vector<P>f[500000]{};
signed main(){
int a,b,c;
scanf("%lld%lld%lld",&a,&b,&c);
fill(d,d+a,INF);
d[c]=0;
priority_queue<P,vector<P>,greater<P>>Q;
Q.push(P(0,c));
for(int h=0;h<b;h++){
????????int i,j,k;
????????scanf("%lld%lld%lld",&i,&j,&k);
????????f[i].push_back(P(k,j));
????????f[j].push_back(P(k,i));
????????}
????????while(Q.size()){
????????P o=Q.top();
????????Q.pop();
????????int u=o.second;
????????if(d[u]<o.first)continue;
????????for(int x=0;x<f[u].size();x++){
????????????????P l=f[u][x];
????????????????if(d[l.first]>d[u]+l.second){
????????????????d[l.first]=d[u]+l.second;
????????????????Q.push(P(d[l.first],l.second));
????????????????}
????????}
????????????????}
????????????????for(int y=0;y<a;y++){
????????????????printf("%d\n",d[y]);}
}

Compiler output:
a.cc:1:2: error: stray '#' in program
    1 | *#include<bits/stdc++.h>
      |  ^
a.cc:1:10: error: expected constructor, destructor, or type conversion before '<' token
    1 | *#include<bits/stdc++.h>
      |          ^
a.cc:6:1: error: expected unqualified-id before '?' token
    6 | ????
      | ^
a.cc:8:1: error: expected unqualified-id before '?' token
    8 | ??vector<P>f[500000]{};
      | ^
a.cc: In function 'int main()':
a.cc:11:1: error: 'scanf' was not declared in this scope
   11 | scanf("%lld%lld%lld",&a,&b,&c);
      | ^~~~~
a.cc:12:6: error: 'd' was not declared in this scope
   12 | fill(d,d+a,INF);
      |      ^
a.cc:3:13: error: 'INT_MAX' was not declared in this scope
    3 | #define INF INT_MAX
      |             ^~~~~~~
a.cc:12:12: note: in expansion of macro 'INF'
   12 | fill(d,d+a,INF);
      |            ^~~
a.cc:1:1: note: 'INT_MAX' is defined in header '<climits>'; this is probably fixable by adding '#include <climits>'
  +++ |+#include <climits>
    1 | *#include<bits/stdc++.h>
a.cc:12:1: error: 'fill' was not declared in this scope
   12 | fill(d,d+a,INF);
      | ^~~~
a.cc:14:1: error: 'priority_queue' was not declared in this scope
   14 | priority_queue<P,vector<P>,greater<P>>Q;
      | ^~~~~~~~~~~~~~
a.cc:4:11: error: 'pair' was not declared in this scope
    4 | #define P pair<int,int>
      |           ^~~~
a.cc:14:16: note: in expansion of macro 'P'
   14 | priority_queue<P,vector<P>,greater<P>>Q;
      |                ^
a.cc:2:13: error: expected primary-expression before 'long'
    2 | #define int long long
      |             ^~~~
a.cc:4:16: note: in expansion of macro 'int'
    4 | #define P pair<int,int>
      |                ^~~
a.cc:14:16: note: in expansion of macro 'P'
   14 | priority_queue<P,vector<P>,greater<P>>Q;
      |                ^
a.cc:15:1: error: 'Q' was not declared in this scope
   15 | Q.push(P(0,c));
      | ^
a.cc:2:13: error: expected primary-expression before 'long'
    2 | #define int long long
      |             ^~~~
a.cc:4:16: note: in expansion of macro 'int'
    4 | #define P pair<int,int>
      |                ^~~
a.cc:15:8: note: in expansion of macro 'P'
   15 | Q.push(P(0,c));
      |        ^
a.cc:2:13: error: expected primary-expression before 'long'
    2 | #define int long long
      |             ^~~~
a.cc:4:20: note: in expansion of macro 'int'
    4 | #define P pair<int,int>
      |                    ^~~
a.cc:15:8: note: in expansion of macro 'P'
   15 | Q.push(P(0,c));
      |        ^
a.cc:17:1: error: expected primary-expression before '?' token
   17 | ????????int i,j,k;
      | ^
a.cc:17:2: error: expected primary-expression before '?' token
   17 | ????????int i,j,k;
      |  ^
a.cc:17:3: error: expected primary-expression before '?' token
   17 | ????????int i,j,k;
      |   ^
a.cc:17:4: error: expected primary-expression before '?' token
   17 | ????????int i,j,k;
      |    ^
a.cc:17:5: error: expected primary-expression before '?' token
   17 | ????????int i,j,k;
      |     ^
a.cc:17:6: error: expected primary-expression before '?' token
   17 | ????????int i,j,k;
      |      ^
a.cc:17:7: error: expected primary-expression before '?' token
   17 | ????????int i,j,k;
      |       ^
a.cc:17:8: error: expected primary-expression before '?' token
   17 | ????????int i,j,k;
      |        ^
a.cc:2:13: error: expected primary-expression before 'long'
    2 | #define int long long
      |             ^~~~
a.cc:17:9: note: in expansion of macro 'int'
   17 | ????????int i,j,k;
      |         ^~~
a.cc:17:9: error: expected ':' before 'long'
   17 | ????????int i,j,k;
      |         ^
      |         :
a.cc:2:13: error: expected primary-expression before 'long'
    2 | #define int long long
      |             ^~~~
a.cc:17:9: note: in expansion of macro 'int'
   17 | ????????int i,j,k;
      |         ^~~
a.cc:17:9: error: expected ':' before 'long'
   17 | ????????int i,j,k;
      |         ^
      |         :
a.cc:2:13: error: expected primary-expression before 'long'
    2 | #define int long long
      |             ^~~~
a.cc:17:9: note: in expansion of macro 'int'
   17 | ????????int i,j,k;
      |         ^~~
a.cc:17:9: error: expected ':' before 'long'
   17 | ????????int i,j,k;
      |         ^
      |         :
a.cc:2:13: error: expected primary-expression before 'long'
    2 | #define int long long
      |             ^~~~
a.cc:17:9: note: in expansion of macro 'int'
   17 | ????????int i,j,k;
      |         ^~~
a.cc:17:9: error: expected ':' before 'long'
   17 | ????????int i,j,k;
      |         ^
      |         :
a.cc:2:13: error: expected primary-expression before 'long'
    2 | #define int long long
      |             ^~~~
a.cc:17:9: note: in expansion of macro 'int'
   17 | ????????int i,j,k;
      |         ^~~
a.cc:17:9: error: expected ':' before 'long'
   17 | ????????int i,j,k;
      |         ^
      |         :
a.cc:2:13: error: expected primary-expression before 'long'
    2 | #define int long long
      |             ^~~~
a.cc:17:9: note: in expansion of macro 'int'
   17 | ????????int i,j,k;
      |         ^~~
a.cc:17:9: error: expected ':' before 'long'
   17 | ????????int i,j,k;
      |         ^
      |         :
a.cc:2:13: error: expected primary-expression before 'long'
    2 | #define int long long
      |             ^~~~
a.cc:17:9: note: in expansion of macro 'int'
   17 | ????????int i,j,k;
      |         ^~~
a.cc:17:9: error: expected ':' before 'long'
   17 | ????????int i,j,k;
      |         ^
      |         :
a.cc:2:13: error: expected primary-expression before 'long'
    2 | #define int long long
      |             ^~~~
a.cc:17:9: note: in expansion of macro 'int'
   17 | ????????int i,j,k;
      |         ^~~
a.cc:17:9: error: expected ':' before 'long'
   17 | ????????int i,j,k;
      |         ^
      |         :
a.cc:2:13: error: expected primary-expression before 'long'
    2 | #define int long long
      |             ^~~~
a.cc:17:9: note: in expansion of macro 'int'
   17 | ????????int i,j,k;
      |         ^~~
a.cc:18:1: error: expected primary-expression before '?' token
   18 | ????????scanf("%lld%lld%lld",&i,&j,&k);
      | ^
a.cc:18:2: error: expected primary-expression before '?' token
   18 | ????????scanf("%lld%lld%lld",&i,&j,&k);
      |  ^
a.cc:18:3: error: expected primary-expression before '?' token
   18 | ????????scanf("%lld%lld%lld",&i,&j,&k);
      |   ^
a.cc:18:4: error: expected primary-expression before '?' token
   18 | ????????scanf("%lld%lld%lld",&i,&j,&k);
      |    ^
a.cc:18:5: error: expected primary-expression before '?' token
   18 | ????????scanf("%lld%lld%lld",&i,&j,&k);
      |     ^
a.cc:18:6: error: expected primary-expression before '?' token
   18 | ????????scanf("%lld%lld%lld",&i,&j,&k);
      |      ^
a.cc:18:7: error: expected primary-expression before '?' token
   18 | ????????scanf("%lld%lld%lld",&i,&j,&k);
      |       ^
a.cc:18:8: error: expected primary-expression before '?' token
   18 | ????????scanf("%lld%lld%lld",&i,&j,&k);
      |        ^
a.cc:18:31: error: 'i' was not declared in this scope
   18 | ????????scanf("%lld%lld%lld",&i,&j,&k);
      |                               ^
a.cc:18:34: error: 'j' was not declared in this scope
   18 | ????????scanf("%lld%lld%lld",&i,&j,&k);
      |                                  ^
a.cc:18:37: error: 'k' was not declared in this scope
   18 | ????????scanf("%lld%lld%lld",&i,&j,&k);
      |                                     ^
a.cc:18:39: error: expected ':' before ';' token
   18 | ????????scanf("%lld%lld%lld",&i,&j,&k);
      |                                       ^
      |                                       :
a.cc:18:39: error: expected primary-expression before ';' token
a.cc:18:39: error: expected ':' before ';' token
   18 | ????????scanf("%lld%lld%lld",&i,&j,&k);
      |                                       ^
      |                                       :
a.cc:18:39: error: expected primary-expression before ';' token
a.cc:18:39: error: expected ':' before ';' token
   18 | ????????scanf("%lld%lld%lld",&i,&j,&k);
      |                                       ^
      |                                       :
a.cc:18:39: error: expected primary-expression before ';' token
a.cc:18:39: error: expected ':' before ';' token
   18 | ????????scanf("%lld%lld%lld",&i,&j,&k);
      |                                       ^
      |                                       :
a.cc:18:39: error: expected primary-expression before ';' token
a.cc:18:39: error: expected ':' before ';' token
   18 | ????????scanf("%lld%lld%lld",&i,&j,&k);
      |                                       ^
      |                                       :
a.cc:18:39: error: expected primary-expression before ';' token
a.cc:18:39: error: expected ':' before ';' token
   18 | ????????scanf("%lld%lld%lld",&i,&j,&k);
      |                                       ^
      |                                       :
a.cc:18:39: error: expected primary-expression before ';' token
a.cc:18:39: error: expected ':' before ';' token
   18 | ????????scanf("%lld%lld%lld",&i,&j,&k);
      |                                       ^
      |                                       :
a.cc:18:39: error: expected primary-expression before ';' token
a.cc:18:39: error: expected ':' before ';' token
   18 | ????????scanf("%lld%lld%lld",&i,&j,&k);
      |                                       ^
      |                                       :
a.cc:18:39: error: expected primary-expression before ';' token
a.cc:19:1: error: expected primary-expression before '?' token
   19 | ????????f[i].push_back(P(k,j));
      | ^
a.cc:19:2: error: expected primary-expression before '?' token
   19 | ????????f[i].push_back(P(k,j));
      |  ^
a.cc:19:3: error: expected primary-expression before '?' token
   19 | ????????f[i].push_back(P(k,j));
      |   ^
a.cc:19:4: error: expected primary-expression before '?' token
   19 | ????????f[i].push_back(P(k,j));
      |    ^
a.cc:19:5: error: expected primary-expression before '?' token
   19 | ????????f[i].push_back(P(k,j));
      |     ^
a.cc:19:6: error: expected primary-expression before '?' token
   19 | ????????f[i].push_back(P(k,j));