Borderou de evaluare (job #1995050)
Utilizator | Data | 26 iunie 2017 21:35:50 | |
---|---|---|---|
Problema | Plantatii | Status | done |
Runda | Arhiva ICPC | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:9:1: error: expected initializer before ‘long’
long long dp[1002][1002], ds[1002][1002];
^
user.cpp: In function ‘bool verif(int, int, int)’:
user.cpp:17:21: error: ‘dp’ was not declared in this scope
int sum = dp[i+l-1][j+l-1] - dp[i-1][j-1] + ds[i+l-1][j] - ds[i-1][j+l];
^
user.cpp:17:55: error: ‘ds’ was not declared in this scope
int sum = dp[i+l-1][j+l-1] - dp[i-1][j-1] + ds[i+l-1][j] - ds[i-1][j+l];
^
user.cpp:18:28: error: ‘mat’ was not declared in this scope
if(l % 2) sum -= mat[i+l/2][j+l/2];
^
user.cpp: In function ‘void golire()’:
user.cpp:31:13: error: ‘mat’ was not declared in this scope
mat[i][j] = dp[i][j] = ds[i][j] = 0;
^
user.cpp:31:25: error: ‘dp’ was not declared in this scope
mat[i][j] = dp[i][j] = ds[i][j] = 0;
^
user.cpp:31:36: error: ‘ds’ was not declared in this scope
mat[i][j] = dp[i][j] = ds[i][j] = 0;
^
user.cpp: In function ‘int main()’:
user.cpp:48:22: error: ‘mat’ was not declared in this scope
f >> mat[i][j];
^
user.cpp:49:17: error: ‘dp’ was not declared in this scope
dp[i][j] = dp[i-1][j-1] + mat[i][j];
^
user.cpp:50:17: error: ‘ds’ was not declared in this scope
ds[i][j] = ds[i-1][j+1] + mat[i][j];
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !