Language: C++

#include <iostream>
#include <vector>
#include <utility>
#include <queue>
#include <cstring>
#define INF 900000000
 
using namespace std;
 
int n, k, c[5010], r[5010], cost[5010];
vector<int> road[5010];
vector<pair<int, int>> adj[5010];
bool done[5010];
 
void dfs (int dep, int lim, int num)
{
    done[lim]=true;
    if (dep>r[lim]) return;
    else
    {
        for (vector<int>::iterator itr=road[num].begin(); itr!=road[num].end(); itr++;)
        {
            int u=*itr;
　　　　　　if (!done[u])
            {
                done[u]=true;
                adj[lim].push_back({u, c[lim]});
                dfs(dep+1, lim, u);
            }
        }
    }
}
 
int dijkstra ()
{
    //memset(done, false, sizeof(done));
    for (int i=0; i<5010; i++) cost[i]=INF;
    cost[1]=0;
    priority_queue<pair<int, int>> que;
    que.push({0,1});
    while (!que.empty())
    {
        int a=que.top().second;
        que.pop();
        /*if (done[a]) continue;
        done[a]=true;*/
        for (vector<pair<int,int>>::iterator u=adj[a].begin(); u!=adj[a].end(); u++;)
        {
            int b=u->first, w=u->second;
            if (cost[b]>cost[a]+w)
            {
                cost[b]=cost[a]+w;
                que.push({-cost[b], b});
            }
        }
    }
    return cost[n];
}
 
int main()
{
    int a,b;
    cin>>n>>k;
    for (int i=1; i<=n; i++ ) cin>>c[i]>>r[i];
    for (int i=1; i<=k; i++)
    {
        cin>>a>>b;
        road[a].push_back(b);
        road[b].push_back(a);
    }
    for (int i=1; i<=n; i++)
    {
        memset(done, false, sizeof(done));
        dfs(1, i, i);
    }
    cout<<dijkstra()<<'\n';
    return 0;
}


Compiler output:
a.cc:24:1: error: extended character 　 is not valid in an identifier
   24 | 　　　　　　if (!done[u])
      | ^
a.cc:24:1: error: extended character 　 is not valid in an identifier
a.cc:24:1: error: extended character 　 is not valid in an identifier
a.cc:24:1: error: extended character 　 is not valid in an identifier
a.cc:24:1: error: extended character 　 is not valid in an identifier
a.cc:24:1: error: extended character 　 is not valid in an identifier
a.cc: In function 'void dfs(int, int, int)':
a.cc:21:86: error: expected ')' before ';' token
   21 |         for (vector<int>::iterator itr=road[num].begin(); itr!=road[num].end(); itr++;)
      |             ~                                                                        ^
      |                                                                                      )
a.cc:21:87: error: expected primary-expression before ')' token
   21 |         for (vector<int>::iterator itr=road[num].begin(); itr!=road[num].end(); itr++;)
      |                                                                                       ^
a.cc: In function 'int dijkstra()':
a.cc:47:84: error: expected ')' before ';' token
   47 |         for (vector<pair<int,int>>::iterator u=adj[a].begin(); u!=adj[a].end(); u++;)
      |             ~                                                                      ^
      |                                                                                    )
a.cc:47:85: error: expected primary-expression before ')' token
   47 |         for (vector<pair<int,int>>::iterator u=adj[a].begin(); u!=adj[a].end(); u++;)
      |                                                                                     ^