Pagini recente » Borderou de evaluare (job #3239845) | Borderou de evaluare (job #1877374) | Borderou de evaluare (job #1745332) | Borderou de evaluare (job #738509) | Borderou de evaluare (job #1747699)
Borderou de evaluare (job #1747699)
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 |
| 1 | 0ms | 424kb | OK | 10 |
| 2 | 0ms | 428kb | OK | 10 |
| 3 | 0ms | 456kb | Incorect | 0 |
| 4 | 48ms | 1208kb | Incorect | 0 |
| 5 | 48ms | 1204kb | OK | 10 |
| 6 | 0ms | 456kb | Incorect | 0 |
| 7 | 32ms | 896kb | Incorect | 0 |
| 8 | 40ms | 1048kb | Incorect | 0 |
| 9 | 48ms | 1196kb | OK | 10 |
| 10 | 48ms | 1208kb | Incorect | 0 |
| Punctaj total | 40 |