Borderou de evaluare (job #1336092)
Utilizator | Data | 6 februarie 2015 17:10:28 | |
---|---|---|---|
Problema | Piata | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:6:19: error: size of array ‘mat’ is too large
int mat[NMAX][NMAX];
^
user.cpp: In function ‘int main()’:
user.cpp:27:9: error: ‘mat’ was not declared in this scope
mat[1][i] = f(i);
^
user.cpp:31:17: error: ‘mat’ was not declared in this scope
mat[i][j] = mat[i-1][n];
^
user.cpp:33:17: error: ‘mat’ was not declared in this scope
mat[i][j] = mat[i-1][j-1];
^
user.cpp:36:20: error: ‘mat’ was not declared in this scope
sum += mat[i][y1] * (y2 - y1 + 1);
^
user.cpp:38:20: error: ‘mat’ was not declared in this scope
sum += mat[i][y1] * (x2 - i + 1);
^
user.cpp:41:20: error: ‘mat’ was not declared in this scope
sum += mat[x1][j] * (x2 - x1 + 1);
^
user.cpp:43:20: error: ‘mat’ was not declared in this scope
sum += mat[x1][j] * (y2 - j + 1);
^
user.cpp:46:26: error: ‘mat’ was not declared in this scope
printf("%d ",mat[i][j]);
^
user.cpp:18:34: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("piata.in","r",stdin);
^
user.cpp:19:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("piata.out","w",stdout);
^
user.cpp:23:19: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&n);
^
user.cpp:24:27: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d",&x1,&y1);
^
user.cpp:25:27: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d",&x2,&y2);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !