0_0_30728938_28540.cpp:19:9: error: 'pair' does not name a type
typedef pair<int , int> pii;
^
0_0_30728938_28540.cpp: In function 'int dij(int, int*)':
0_0_30728938_28540.cpp:33:5: error: 'priority_queue' was not declared in this scope
priority_queue<pii,vector<pii>,greater<> >q;
^
0_0_30728938_28540.cpp:33:20: error: 'pii' was not declared in this scope
priority_queue<pii,vector<pii>,greater<> >q;
^
0_0_30728938_28540.cpp:33:24: error: 'vector' was not declared in this scope
priority_queue<pii,vector<pii>,greater<> >q;
^
0_0_30728938_28540.cpp:33:35: error: expected primary-expression before ',' token
priority_queue<pii,vector<pii>,greater<> >q;
^
0_0_30728938_28540.cpp:33:36: error: 'greater' was not declared in this scope
priority_queue<pii,vector<pii>,greater<> >q;
^
0_0_30728938_28540.cpp:33:44: error: expected primary-expression before '>' token
priority_queue<pii,vector<pii>,greater<> >q;
^
0_0_30728938_28540.cpp:33:46: error: expected primary-expression before '>' token
priority_queue<pii,vector<pii>,greater<> >q;
^
0_0_30728938_28540.cpp:33:47: error: 'q' was not declared in this scope
priority_queue<pii,vector<pii>,greater<> >q;
^
0_0_30728938_28540.cpp:34:31: error: 'memset' was not declared in this scope
memset(vis, 0, sizeof(vis));
^
0_0_30728938_28540.cpp: In function 'int main()':
0_0_30728938_28540.cpp:8:89: error: 'stdin' was not declared in this scope
#define FRER() freopen("/Users/seven7777777/Desktop/Code/TESTXCODE/TESTXCODE/i.txt","r",stdin)
^
0_0_30728938_28540.cpp:52:5: note: in expansion of macro 'FRER'
FRER();
^
0_0_30728938_28540.cpp:8:94: error: 'freopen' was not declared in this scope
#define FRER() freopen("/Users/seven7777777/Desktop/Code/TESTXCODE/TESTXCODE/i.txt","r",stdin)
^
0_0_30728938_28540.cpp:52:5: note: in expansion of macro 'FRER'
FRER();
^
0_0_30728938_28540.cpp:53:30: error: 'scanf' was not declared in this scope
while(~scanf("%d%d",&n,&m)&&(n||m)){
^
0_0_30728938_28540.cpp:55:38: error: 'memset' was not declared in this scope
memset(head, -1, sizeof(head));
^
|