Language: C++

#include<string>
#include<deque>
#include<queue>
#include<vector>
#include<algorithm>
#include<iostream>
#include<set>
#include<cmath>
#include<tuple>
#include<map>
#include<functional>
using namespace std;
typedef long long int llint;
typedef bool izryt;
#define mp make_pair
#define mt make_tuple
#define pub push_back
#define puf push_front
#define pob pop_back
#define pof pop_front
#define fir first
#define sec second
#define res resize
#define ins insert
#define era erase
const int big=1e9;
vector<vector<int>>time;
vector<pair<int,int>>taxi;//???????????????????????¨?????¢
vector<vector<int>>road;//????????????
priority_queue<pair<int,int>,vector<pair<int,int>>,greater<pair<int,int>>> que;
const int maxR=5000;//?????§???R ?????´?????§???15
int n,k;
void dfs(int ter,int cos,int met){//ter??? cos?????? met
	int i,ok=1;
	if(met<0){return;}
	//cout<<"a2";
	if(time[ter][met]<=cos){return;}//?????????
	for(i=met;i>=0;i--){if(time[ter][i]<=cos){ok=0;break;}time[ter][i]=cos;}//??°??????
	if(ok==1){que.push(mp(cos+taxi[ter].fir,ter));}
	for(i=0;i<road[ter].size();i++){dfs(road[ter][i],cos,met-1);}
	return;
}
int main(void){
	cin>>n>>k;
	int i,j,a,b;
	//?????????????????????
	time.res(n);
	taxi.res(n);
	road.res(n);
	for(i=0;i<n;i++){time[i].res(maxR+1);for(j=0;j<=maxR;j++){time[i][j]=big;}}
	for(i=0;i<n;i++){cin>>a>>b;taxi[i]=mp(a,b);}
	for(i=0;i<k;i++){cin>>a>>b;a--;b--;road[a].pub(b);road[b].pub(a);}
	que.push(mp(taxi[0].fir,0));//?????????0??????????????§
	while(!que.empty()){
		int town=que.top().sec;
		int now=que.top().fir;
		que.pop();
		dfs(town,now,taxi[town].sec);
	}
	cout<<time[n-1][0]<<endl;
	return 0;
}

Compiler output:
a.cc:27:20: error: 'std::vector<std::vector<int> > time' redeclared as different kind of entity
   27 | vector<vector<int>>time;
      |                    ^~~~
In file included from /usr/include/pthread.h:23,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/gthr-default.h:35,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/gthr.h:157,
                 from /usr/include/c++/14/ext/atomicity.h:35,
                 from /usr/include/c++/14/bits/ios_base.h:39,
                 from /usr/include/c++/14/ios:44,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:6:
/usr/include/time.h:76:15: note: previous declaration 'time_t time(time_t*)'
   76 | extern time_t time (time_t *__timer) __THROW;
      |               ^~~~
a.cc: In function 'void dfs(int, int, int)':
a.cc:37:20: warning: pointer to a function used in arithmetic [-Wpointer-arith]
   37 |         if(time[ter][met]<=cos){return;}//?????????
      |                    ^
a.cc:37:25: warning: pointer to a function used in arithmetic [-Wpointer-arith]
   37 |         if(time[ter][met]<=cos){return;}//?????????
      |                         ^
a.cc:37:26: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   37 |         if(time[ter][met]<=cos){return;}//?????????
      |            ~~~~~~~~~~~~~~^~~~~
a.cc:38:40: warning: pointer to a function used in arithmetic [-Wpointer-arith]
   38 |         for(i=met;i>=0;i--){if(time[ter][i]<=cos){ok=0;break;}time[ter][i]=cos;}//??°??????
      |                                        ^
a.cc:38:43: warning: pointer to a function used in arithmetic [-Wpointer-arith]
   38 |         for(i=met;i>=0;i--){if(time[ter][i]<=cos){ok=0;break;}time[ter][i]=cos;}//??°??????
      |                                           ^
a.cc:38:44: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   38 |         for(i=met;i>=0;i--){if(time[ter][i]<=cos){ok=0;break;}time[ter][i]=cos;}//??°??????
      |                                ~~~~~~~~~~~~^~~~~
a.cc:38:71: warning: pointer to a function used in arithmetic [-Wpointer-arith]
   38 |         for(i=met;i>=0;i--){if(time[ter][i]<=cos){ok=0;break;}time[ter][i]=cos;}//??°??????
      |                                                                       ^
a.cc:38:74: warning: pointer to a function used in arithmetic [-Wpointer-arith]
   38 |         for(i=met;i>=0;i--){if(time[ter][i]<=cos){ok=0;break;}time[ter][i]=cos;}//??°??????
      |                                                                          ^
a.cc:38:75: error: assignment of read-only location '*(time + (((sizetype)ter) + ((sizetype)i)))'
   38 |         for(i=met;i>=0;i--){if(time[ter][i]<=cos){ok=0;break;}time[ter][i]=cos;}//??°??????
      |                                                               ~~~~~~~~~~~~^~~~
a.cc: In function 'int main()':
a.cc:23:13: error: request for member 'resize' in 'time', which is of non-class type 'time_t(time_t*) noexcept' {aka 'long int(long int*) noexcept'}
   23 | #define res resize
      |             ^~~~~~
a.cc:47:14: note: in expansion of macro 'res'
   47 |         time.res(n);
      |              ^~~
a.cc:50:32: warning: pointer to a function used in arithmetic [-Wpointer-arith]
   50 |         for(i=0;i<n;i++){time[i].res(maxR+1);for(j=0;j<=maxR;j++){time[i][j]=big;}}
      |                                ^
a.cc:23:13: error: request for member 'resize' in '*(time + ((sizetype)i))', which is of non-class type 'time_t(time_t*) noexcept' {aka 'long int(long int*) noexcept'}
   23 | #define res resize
      |             ^~~~~~
a.cc:50:34: note: in expansion of macro 'res'
   50 |         for(i=0;i<n;i++){time[i].res(maxR+1);for(j=0;j<=maxR;j++){time[i][j]=big;}}
      |                                  ^~~
a.cc:50:73: warning: pointer to a function used in arithmetic [-Wpointer-arith]
   50 |         for(i=0;i<n;i++){time[i].res(maxR+1);for(j=0;j<=maxR;j++){time[i][j]=big;}}
      |                                                                         ^
a.cc:50:76: warning: pointer to a function used in arithmetic [-Wpointer-arith]
   50 |         for(i=0;i<n;i++){time[i].res(maxR+1);for(j=0;j<=maxR;j++){time[i][j]=big;}}
      |                                                                            ^
a.cc:50:77: error: assignment of read-only location '*(time + (((sizetype)i) + ((sizetype)j)))'
   50 |         for(i=0;i<n;i++){time[i].res(maxR+1);for(j=0;j<=maxR;j++){time[i][j]=big;}}
      |                                                                   ~~~~~~~~~~^~~~
a.cc:60:23: warning: pointer to a function used in arithmetic [-Wpointer-arith]
   60 |         cout<<time[n-1][0]<<endl;
      |                       ^
cc1plus: warning: pointer to a function used in arithmetic [-Wpointer-arith]
a.cc:60:26: warning: pointer to a function used in arithmetic [-Wpointer-arith]
   60 |         cout<<time[n-1][0]<<endl;
      |                          ^