Borderou de evaluare (job #1600882)
| Utilizator | Data | 15 februarie 2016 15:04:33 | |
|---|---|---|---|
| Problema | Livada | Status | done |
| Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
| Scor | 0 | ||
Raport evaluator
Eroare de compilare:
user.cpp:4:22: error: size of array ‘nr1’ is too large
int nr1[101][10000001];
^
user.cpp: In function ‘int main()’:
user.cpp:18:30: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘char*’ [-Wformat=]
scanf("%d ", &a[i][0]);
^
user.cpp:20:9: error: ‘nr1’ was not declared in this scope
nr1[i][k]++;
^
user.cpp:23:34: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘char*’ [-Wformat=]
scanf("%d ", &a[i][j]);
^
user.cpp:7:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("livada.in","r",stdin);
^
user.cpp:8:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("livada.out","w",stdout);
^
user.cpp:12:36: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %ld %ld", &m, &n, &p);
^
user.cpp:18:31: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d ", &a[i][0]);
^
user.cpp:23:35: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d ", &a[i][j]);
^
user.cpp:41:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("\n");
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !
