Borderou de evaluare (job #1264987)
Utilizator | Data | 16 noiembrie 2014 16:01:21 | |
---|---|---|---|
Problema | Drumuri2 | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘list* my_alloc()’:
user.cpp:24:39: error: ‘malloc’ was not declared in this scope
{ return (plist) malloc (sizeof (list)); }
^
user.cpp:24:42: warning: control reaches end of non-void function [-Wreturn-type]
{ return (plist) malloc (sizeof (list)); }
^
user.cpp: In function ‘void init()’:
user.cpp:50:34: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
scanf ("%d %d", &N, &M);
^
user.cpp:51:25: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
for (; M--;) {
^
user.cpp:53:26: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
alloc_edge (nou, dup, out(i), in(j));
^
user.cpp: In function ‘void solve()’:
user.cpp:122:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
printf ("%d\n", flow);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !