Problem | square_ioi |
---|---|
User | jeongwonho64 |
Submission Time | 2023-12-01 16:31:55 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
square_ioi.cpp: In function ‘int findMaxSquare(int (*)[1000], int)’:
square_ioi.cpp:5:9: error: ‘materialsize’ was not declared in this scope; did you mean ‘materialSize’?
5 | int dp[materialsize][materialsize];
| ^~~~~~~~~~~~
| materialSize
square_ioi.cpp:6:9: error: ‘dp’ was not declared in this scope
6 | memset(dp,0,sizeof dp);
| ^~
square_ioi.cpp:6:2: error: ‘memset’ was not declared in this scope
6 | memset(dp,0,sizeof dp);
| ^~~~~~
square_ioi.cpp:2:1: note: ‘memset’ is defined in header ‘<cstring>’; did you forget to ‘#include <cstring>’?
1 | #include "square_ioi.h"
+++ |+#include <cstring>
2 |
square_ioi.cpp:15:15: error: ‘min’ was not declared in this scope
15 | dp[i][j] = min({dp[i-1][j-1],dp[i-1][j],dp[i][j-1]})+1;
| ^~~