Borderou de evaluare (job #1207032)

Utilizator depevladVlad Dumitru-Popescu depevlad Data 11 iulie 2014 21:21:30
Problema Heavy metal Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 40

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:41:19: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long long int*’ [-Wformat=] scanf("%d", &N); ^ user.cpp:52:27: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long long int’ [-Wformat=] printf("%d\n", best[N]); ^ user.cpp:39:12: warning: unused variable ‘j’ [-Wunused-variable] int i, j, pos; ^ user.cpp:36:41: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("heavymetal.in", "r", stdin); ^ user.cpp:37:43: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("heavymetal.out", "w", stdout); ^ user.cpp:41:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &N); ^ user.cpp:42:72: 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", &bands[i].left, &bands[i].right); ^ user.cpp: In function ‘int BinSearch(int)’: user.cpp:29:12: warning: ‘Closest’ may be used uninitialized in this function [-Wmaybe-uninitialized] return Closest; ^ user.cpp: In function ‘int main()’: user.cpp:50:40: warning: ‘Closest’ may be used uninitialized in this function [-Wmaybe-uninitialized] best[i] = max(best[i], best[pos] + bands[i].right - bands[i].left); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms280kbOK10
20ms280kbOK10
30ms280kbOK10
40ms292kbOK10
54ms316kbWall time limit exceeded.0
64ms320kbWall time limit exceeded.0
74ms312kbWall time limit exceeded.0
84ms312kbWall time limit exceeded.0
94ms316kbWall time limit exceeded.0
104ms312kbWall time limit exceeded.0
Punctaj total40

Ceva nu functioneaza?