0_0_38626539_3370.cpp: In function 'void djstl()':
0_0_38626539_3370.cpp:2:12: error: 'vis' was not declared in this scope
memset(vis,0,sizeof(vis));
^~~
0_0_38626539_3370.cpp:2:12: note: suggested alternative: 'void'
memset(vis,0,sizeof(vis));
^~~
void
0_0_38626539_3370.cpp:2:5: error: 'memset' was not declared in this scope
memset(vis,0,sizeof(vis));
^~~~~~
0_0_38626539_3370.cpp:2:5: note: 'memset' is defined in header '<cstring>'; did you forget to '#include <cstring>'?
+#include <cstring>
void djstl(){
memset(vis,0,sizeof(vis));
^~~~~~
0_0_38626539_3370.cpp:3:10: error: 'dis' was not declared in this scope
memset(dis,inf,sizeof(dis));
^~~
0_0_38626539_3370.cpp:3:14: error: 'inf' was not declared in this scope
memset(dis,inf,sizeof(dis));
^~~
0_0_38626539_3370.cpp:3:14: note: suggested alternative: 'int'
memset(dis,inf,sizeof(dis));
^~~
int
0_0_38626539_3370.cpp:4:20: error: 'n' was not declared in this scope
for(int i=0;i<=n;i++) dis[i]=a[0][i];
^
0_0_38626539_3370.cpp:4:34: error: 'a' was not declared in this scope
for(int i=0;i<=n;i++) dis[i]=a[0][i];
^
0_0_38626539_3370.cpp:5:20: error: 'n' was not declared in this scope
for(int i=0;i<=n;i++){
^
0_0_38626539_3370.cpp:15:41: error: 'a' was not declared in this scope
if(!vis[j]&&dis[j]>dis[pt]+a[pt][j])
^
0_0_38626539_3370.cpp: In function 'int main()':
0_0_38626539_3370.cpp:21:4: error: 'ios' has not been declared
ios::sync_with_stdio(false);
^~~
0_0_38626539_3370.cpp:22:5: error: 'cin' was not declared in this scope
cin.tie(0);cout.tie(0);
^~~
0_0_38626539_3370.cpp:22:5: note: suggested alternative: 'main'
cin.tie(0);cout.tie(0);
^~~
main
0_0_38626539_3370.cpp:22:16: error: 'cout' was not declared in this scope
cin.tie(0);cout.tie(0);
^~~~
0_0_38626539_3370.cpp:23:16: error: 'n' was not declared in this scope
while(cin>>n>>m>>s){
^
0_0_38626539_3370.cpp:23:19: error: 'm' was not declared in this scope
while(cin>>n>>m>>s){
^
0_0_38626539_3370.cpp:23:22: error: 's' was not declared in this scope
while(cin>>n>>m>>s){
^
0_0_38626539_3370.cpp:24:16: error: 'a' was not declared in this scope
memset(a,inf,sizeof a);
^
0_0_38626539_3370.cpp:24:18: error: 'inf' was not declared in this scope
memset(a,inf,sizeof a);
^~~
0_0_38626539_3370.cpp:24:18: note: suggested alternative: 'int'
memset(a,inf,sizeof a);
^~~
int
0_0_38626539_3370.cpp:24:9: error: 'memset' was not declared in this scope
memset(a,inf,sizeof a);
^~~~~~
0_0_38626539_3370.cpp:24:9: note: 'memset' is defined in header '<cstring>'; did you forget to '#include <cstring>'?
0_0_38626539_3370.cpp:26:18: error: 'q' was not declared in this scope
cin>>q>>p>>t;
^
0_0_38626539_3370.cpp:26:21: error: 'p' was not declared in this scope
cin>>q>>p>>t;
^
0_0_38626539_3370.cpp:26:24: error: 't' was not declared in this scope
cin>>q>>p>>t;
^
0_0_38626539_3370.cpp:27:21: error: 'min' was not declared in this scope
a[p][q]=min(t,a[p][q]);
^~~
0_0_38626539_3370.cpp:27:21: note: suggested alternative: 'main'
a[p][q]=min(t,a[p][q]);
^~~
main
0_0_38626539_3370.cpp:30:14: error: 'w' was not declared in this scope
cin>>w;
^
0_0_38626539_3370.cpp:32:18: error: 'city' was not declared in this scope
cin>>city;
^~~~
0_0_38626539_3370.cpp:36:12: error: 'dis' was not declared in this scope
if(dis[s]==inf) cout<<-1<<'\n';
^~~
|