Borderou de evaluare (job #1745994)

Utilizator wilson182Alexandrina Panfil wilson182 Data 22 august 2016 16:54:52
Problema Lungimi de interval Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 100

Raport evaluator

Compilare: user.cpp: In function ‘bool cmp(interv, interv)’: user.cpp:11:16: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (a.s = b.s ) if (a.d < b.d) return 1; ^ user.cpp:11:5: warning: suggest explicit braces to avoid ambiguous ‘else’ [-Wparentheses] if (a.s = b.s ) if (a.d < b.d) return 1; ^ user.cpp:14:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ user.cpp: In function ‘int main()’: user.cpp:16:38: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("linterv.in", "r", stdin); ^ user.cpp:17:40: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("linterv.out", "w", stdout); ^ user.cpp:18:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &t); ^ user.cpp:20:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &n); ^ user.cpp:21:60: 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%d", &a[i].s, &a[i].d); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
1272ms472kbOK100
Punctaj total100

Ceva nu functioneaza?