Language: C++

#include <iostream>
#include <vector>
#include <queue>
#include <algorithm>
#include <functional>
#define int long long
using namespace std;
 
const long long int INF = 1e12;
const long long int MAX_V = 1000000;
 
int V;
vector <pair<long long int,long long int> >  G[MAX_V];
int d[MAX_V];
 
void dijkstra(int s) {
    typedef pair<long long int,long long int> pii;
    priority_queue<pii, vector<pii>, greater<pii> > que;
    for (int i = 0; i < V; i++) {
        d[i] = INF;
         
    }
    d[s] = 0;
    que.push(pii(0, s));
    while (!que.empty()) {
        pii p = que.top();
        que.pop();
        long long int v = p.second;
        if (d[v] < p.first)continue;
        for (int i = 0; i < G[v].size(); i++) {
            pair<int, int> e = G[v][i];
             
            if (d[e.first] > d[v] + e.second) {
                d[e.first] = d[v] + e.second;
                que.push(pii(d[e.first], e.first));
                 
            }
        }
    }
}
signed main() {
    long long int E, r;
    cin >> V >> E >> r;
    int s, t, a;
    for (int i = 0; i < E; i++) {
        cin >> s >> t >> a;
        G[s].push_back( make_pair(t, a));
    }
    dijkstra(r);
    for (int i = 0; i < V; i++) {
        if (d[i] >= INF) {
            cout << "INF" << endl;
        }
        else {
            cout << d[i] << endl;
        }
    }
    return 0;
}

Compiler output:
a.cc:6:13: error: 'long long long' is too long for GCC
    6 | #define int long long
      |             ^~~~
a.cc:9:17: note: in expansion of macro 'int'
    9 | const long long int INF = 1e12;
      |                 ^~~
a.cc:6:18: error: 'long long long' is too long for GCC
    6 | #define int long long
      |                  ^~~~
a.cc:9:17: note: in expansion of macro 'int'
    9 | const long long int INF = 1e12;
      |                 ^~~
a.cc:6:13: error: 'long long long' is too long for GCC
    6 | #define int long long
      |             ^~~~
a.cc:10:17: note: in expansion of macro 'int'
   10 | const long long int MAX_V = 1000000;
      |                 ^~~
a.cc:6:18: error: 'long long long' is too long for GCC
    6 | #define int long long
      |                  ^~~~
a.cc:10:17: note: in expansion of macro 'int'
   10 | const long long int MAX_V = 1000000;
      |                 ^~~
a.cc:6:13: error: 'long long long' is too long for GCC
    6 | #define int long long
      |             ^~~~
a.cc:13:24: note: in expansion of macro 'int'
   13 | vector <pair<long long int,long long int> >  G[MAX_V];
      |                        ^~~
a.cc:6:18: error: 'long long long' is too long for GCC
    6 | #define int long long
      |                  ^~~~
a.cc:13:24: note: in expansion of macro 'int'
   13 | vector <pair<long long int,long long int> >  G[MAX_V];
      |                        ^~~
a.cc:6:13: error: 'long long long' is too long for GCC
    6 | #define int long long
      |             ^~~~
a.cc:13:38: note: in expansion of macro 'int'
   13 | vector <pair<long long int,long long int> >  G[MAX_V];
      |                                      ^~~
a.cc:6:18: error: 'long long long' is too long for GCC
    6 | #define int long long
      |                  ^~~~
a.cc:13:38: note: in expansion of macro 'int'
   13 | vector <pair<long long int,long long int> >  G[MAX_V];
      |                                      ^~~
a.cc: In function 'void dijkstra(long long int)':
a.cc:6:13: error: 'long long long' is too long for GCC
    6 | #define int long long
      |             ^~~~
a.cc:17:28: note: in expansion of macro 'int'
   17 |     typedef pair<long long int,long long int> pii;
      |                            ^~~
a.cc:6:18: error: 'long long long' is too long for GCC
    6 | #define int long long
      |                  ^~~~
a.cc:17:28: note: in expansion of macro 'int'
   17 |     typedef pair<long long int,long long int> pii;
      |                            ^~~
a.cc:6:13: error: 'long long long' is too long for GCC
    6 | #define int long long
      |             ^~~~
a.cc:17:42: note: in expansion of macro 'int'
   17 |     typedef pair<long long int,long long int> pii;
      |                                          ^~~
a.cc:6:18: error: 'long long long' is too long for GCC
    6 | #define int long long
      |                  ^~~~
a.cc:17:42: note: in expansion of macro 'int'
   17 |     typedef pair<long long int,long long int> pii;
      |                                          ^~~
a.cc:6:13: error: 'long long long' is too long for GCC
    6 | #define int long long
      |             ^~~~
a.cc:28:19: note: in expansion of macro 'int'
   28 |         long long int v = p.second;
      |                   ^~~
a.cc:6:18: error: 'long long long' is too long for GCC
    6 | #define int long long
      |                  ^~~~
a.cc:28:19: note: in expansion of macro 'int'
   28 |         long long int v = p.second;
      |                   ^~~
a.cc: In function 'int main()':
a.cc:6:13: error: 'long long long' is too long for GCC
    6 | #define int long long
      |             ^~~~
a.cc:42:15: note: in expansion of macro 'int'
   42 |     long long int E, r;
      |               ^~~
a.cc:6:18: error: 'long long long' is too long for GCC
    6 | #define int long long
      |                  ^~~~
a.cc:42:15: note: in expansion of macro 'int'
   42 |     long long int E, r;
      |               ^~~