Borderou de evaluare (job #1825678)
Utilizator | Data | 9 decembrie 2016 15:55:23 | |
---|---|---|---|
Problema | Sahara | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:6:17: error: size of array ‘a’ is too large
int a[nmax][nmax];
^
user.cpp: In function ‘void fill(int, int)’:
user.cpp:11:3: error: ‘a’ was not declared in this scope
a[l][c] = 0;
^
user.cpp: In function ‘int main()’:
user.cpp:33:9: error: ‘a’ was not declared in this scope
a[x1][y1]+=nr;
^
user.cpp:40:13: error: ‘a’ was not declared in this scope
a[i][j]+=a[i-1][j]+a[i][j-1]-a[i-1][j-1];
^
user.cpp:46:16: error: ‘a’ was not declared in this scope
if(a[i][j]>=q)
^
user.cpp:23:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("sahara.in", "r", stdin);
^
user.cpp:24:39: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("sahara.out", "w", stdout);
^
user.cpp:27:35: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%hd%hd%hd", &n, &m, &q);
^
user.cpp:28:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &t);
^
user.cpp:32:58: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%hd%hd%hd%hd%hd", &x1, &y1, &x2, &y2, &nr);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !