Borderou de evaluare (job #1747699)

Utilizator marius.onescuMarius marius.onescu Data 25 august 2016 13:50:21
Problema Int Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 40

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.d = b.d ) if (a.s < b.s) return 1; ^ user.cpp:11:5: warning: suggest explicit braces to avoid ambiguous ‘else’ [-Wparentheses] if (a.d = b.d ) if (a.s < b.s) return 1; ^ user.cpp: In function ‘int main()’: user.cpp:19:59: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long long int*’ [-Wformat=] for(i = 1; i <= n; i++) scanf("%d%d", &a[i].s, &a[i].d); ^ user.cpp:19:59: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘long long int*’ [-Wformat=] user.cpp: In function ‘bool cmp(interv, interv)’: user.cpp:14:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ user.cpp: In function ‘int main()’: user.cpp:16:34: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("int.in", "r", stdin); ^ user.cpp:17:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("int.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", &n); ^ user.cpp:19: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
10ms424kbOK10
20ms428kbOK10
30ms456kbIncorect0
448ms1208kbIncorect0
548ms1204kbOK10
60ms456kbIncorect0
732ms896kbIncorect0
840ms1048kbIncorect0
948ms1196kbOK10
1048ms1208kbIncorect0
Punctaj total40

Ceva nu functioneaza?