Borderou de evaluare (job #2695176)
Utilizator | Data | 11 ianuarie 2021 23:46:42 | |
---|---|---|---|
Problema | Smen | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int bellman()':
main.cpp:38:33: error: 'memset' was not declared in this scope
memset(d, 0x3f3f3f3f, sizeof(d));
^
main.cpp: In function 'void citire()':
main.cpp:19:32: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("smen.in", "r", stdin);
^
main.cpp:20:40: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d %d %d\n", &n, &K, &A, &B);
^
main.cpp:22:39: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
for(i=1;i<=n;i++) scanf("%d ", &x[i]);
^
main.cpp: In function 'void flux()':
main.cpp:98:34: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("smen.out", "w", stdout);
^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !