Borderou de evaluare (job #1532702)

Utilizator SilviuIIon Silviu SilviuI Data 21 noiembrie 2015 16:07:00
Problema Licenta Status done
Runda FMI No Stress 6 Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘int main()’: user.cpp:23:10: error: ‘inf’ was not declared in this scope if (sol==inf) puts("-1"); else printf("%d %d",sol,sol+n); ^ user.cpp:10:32: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("licenta.in","r",stdin); ^ user.cpp:11:34: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("licenta.out","w",stdout); ^ user.cpp:12:15: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d",&n); ^ user.cpp:13:15: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d",&m); ^ user.cpp:14:50: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] for (i=1;i<=m;i++) scanf("%d %d",&t[i].x,&t[i].y); ^ user.cpp:15:15: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d",&p); ^ user.cpp:16:50: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] for (i=1;i<=p;i++) scanf("%d %d",&v[i].x,&v[i].y); ^

Ceva nu functioneaza?