Borderou de evaluare (job #1986414)
Utilizator | Data | 28 mai 2017 14:37:17 | |
---|---|---|---|
Problema | Mobs | Status | done |
Runda | ACM ICPC Faza Nationala 2017 | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘int main()’:
user.cpp:44:16: error: variable-sized object ‘r’ may not be initialized
int r[N] = {};
^
user.cpp:28:32: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("mobs.in", "r", stdin);
^
user.cpp:29:34: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("mobs.out", "w", stdout);
^
user.cpp:31:24: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
int T; scanf("%d", &T);
^
user.cpp:33:45: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
int N, A, B; scanf("%d %d %d", &N, &A, &B);
^
user.cpp:36:22: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &f[i]);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !