Borderou de evaluare (job #1836883)
Utilizator | Data | 28 decembrie 2016 19:41:52 | |
---|---|---|---|
Problema | Piata | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:7:17: error: size of array ‘a’ is too large
int a[NMax][NMax], n, it, jt, im, jm, st;
^
user.cpp: In function ‘void matrice()’:
user.cpp:23:9: error: ‘a’ was not declared in this scope
a[1][i]=sumacif(i);
^
user.cpp:27:13: error: ‘a’ was not declared in this scope
a[i][j]=a[1][n+j-i+1];
^
user.cpp:29:13: error: ‘a’ was not declared in this scope
a[i][j]=a[1][j-i+1];
^
user.cpp: In function ‘int main()’:
user.cpp:43:17: error: ‘a’ was not declared in this scope
st+=a[i][j];
^
user.cpp:35:36: 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:36:38: 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:38:56: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d\n%d %d\n%d %d\n", &n, &it, &jt, &im, &jm);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !