Borderou de evaluare (job #2727576)

Utilizator Alex_tz307Lorintz Alexandru Alex_tz307 Data 22 martie 2021 09:38:17
Problema Tablou Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'int sum(int, int, int, int)': main.cpp:15:10: error: 'dp' was not declared in this scope return dp[x2][y2] - dp[x2][y1 - 1] - dp[x1 - 1][y2] + dp[x1 - 1][y1 - 1]; ^~ main.cpp: In function 'int main()': main.cpp:24:7: error: 'dp' was not declared in this scope dp[i][j] = dp[i][j - 1] + dp[i - 1][j] - dp[i - 1][j - 1] + (s[j - 1] - '0'); ^~ main.cpp:28:10: error: 'K' was not declared in this scope fin >> K; ^ main.cpp:32:12: error: 'dp' was not declared in this scope S[i] = dp[N][M] - sum(x1, y1, x2, y2) + val * (x2 - x1 + 1) * (y2 - y1 + 1); ^~ Non zero exit status: 1

Ceva nu functioneaza?