0_0_29491485_19994.cpp: In function 'void solve()':
0_0_29491485_19994.cpp:7:23: error: 'Fill' was not declared in this scope
int n,m; Fill(dp,0);
^
0_0_29491485_19994.cpp:8:23: error: 'scanf' was not declared in this scope
scanf("%d%d",&n,&m);
^
0_0_29491485_19994.cpp:18:30: error: 'inf' was not declared in this scope
else dp[1][i] = -inf;
^
0_0_29491485_19994.cpp:24:68: error: 'max' was not declared in this scope
dp[i][a[i]] = max(dp[i][a[i]],dp[i-1][j]+s[j][a[i]]);
^
0_0_29491485_19994.cpp:30:63: error: 'max' was not declared in this scope
dp[i][j] = max(dp[i][j],dp[i-1][k]+s[k][j]);
^
0_0_29491485_19994.cpp:37:31: error: 'max' was not declared in this scope
ans = max(ans,dp[n][i]);
^
0_0_29491485_19994.cpp:39:5: error: 'cout' was not declared in this scope
cout << ans << endl;
^
0_0_29491485_19994.cpp:39:20: error: 'endl' was not declared in this scope
cout << ans << endl;
^
|