Pagini recente » Borderou de evaluare (job #1660202) | Borderou de evaluare (job #1584746) | Borderou de evaluare (job #2102986) | Borderou de evaluare (job #1542674) | Borderou de evaluare (job #1735087)
Borderou de evaluare (job #1735087)
Raport evaluator
Compilare:
user.cpp: In function ‘int main()’:
user.cpp:3:15: warning: suggest parentheses around ‘+’ inside ‘<<’ [-Wparentheses]
#define NMax 1<<17
^
user.cpp:30:17: note: in expansion of macro ‘NMax’
for( best = NMax + 1, i = 1; i <= N; )
^
user.cpp:3:15: warning: suggest parentheses around ‘+’ inside ‘<<’ [-Wparentheses]
#define NMax 1<<17
^
user.cpp:40:17: note: in expansion of macro ‘NMax’
if( best == NMax + 1 ) printf("-1\n");
^
user.cpp:16:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("facebook.in","r",stdin);
^
user.cpp:17:39: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("facebook.out","w",stdout);
^
user.cpp:21:25: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d",&N,&K);
^
user.cpp:24:28: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&e[i].v);
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
Punctaj/grupa |
1 | 0ms | 256kb | OK | 20 | 100 |
2 | 0ms | 256kb | OK | 20 |
3 | 0ms | 260kb | OK | 20 |
4 | 4ms | 336kb | OK | 20 |
5 | 64ms | 1056kb | OK | 20 |
Punctaj total | 100 |