Problem | lboard |
---|---|
User | yusuf12360 |
Submission Time | 2023-03-18 17:52:20 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
lboard.cpp: In function ‘int main()’:
lboard.cpp:14:58: error: ‘ans’ was not declared in this scope; did you mean ‘abs’?
14 | for(int i = 1; i <= n; ++i) for(int j = 1; j <= m; ++j) ans = max(ans, max(curl[i][j], curr[i][j]) + max(curu[i][j], curd[i][j]) + ar[i][j]);
| ^~~
| abs
lboard.cpp:15:12: error: ‘ans’ was not declared in this scope; did you mean ‘abs’?
15 | cout << ans << '\n';
| ^~~
| abs