0_0_33206148_20667.cpp: In function 'void init()':
0_0_33206148_20667.cpp:24:33: error: 'memset' was not declared in this scope
memset(mp,0x3f3f3f3f,sizeof(mp));
^
0_0_33206148_20667.cpp: In function 'bool input()':
0_0_33206148_20667.cpp:29:27: error: 'scanf' was not declared in this scope
while(scanf("%d %d",&n,&m) == 2) {
^
0_0_33206148_20667.cpp: In function 'void cal()':
0_0_33206148_20667.cpp:44:22: error: 'puts' was not declared in this scope
if(n == 1) {puts("0");return ;}
^
0_0_33206148_20667.cpp:58:50: error: 'min' was not declared in this scope
dp[i][j] = min(dp[i][j],dp[tmp][k] + mp[k][j]);
^
0_0_33206148_20667.cpp:63:47: error: 'min' was not declared in this scope
for(int j=1;j<=n;j++)ans = min(ans,dp[i][j]);
^
0_0_33206148_20667.cpp:65:26: error: 'puts' was not declared in this scope
if(ans == MAXN)puts("-1");
^
0_0_33206148_20667.cpp:66:24: error: 'printf' was not declared in this scope
else printf("%d\n",ans);
^
|