Borderou de evaluare (job #1283481)

Utilizator thinkphpAdrian Statescu thinkphp Data 5 decembrie 2014 19:23:20
Problema Statistici de ordine Status done
Runda Arhiva educationala Compilator cpp | Vezi sursa
Scor 30

Raport evaluator

Compilare: user.cpp: In function ‘int nth_element(int, int)’: user.cpp:50:30: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] while(arr[ i ] < p) i++; ^ user.cpp:52:30: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] while(arr[ j ] > p) j--; ^ user.cpp:61:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(j >= k) return nth_element(li, j); ^ user.cpp: In function ‘void read()’: user.cpp:20:30: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen(FIN, "r", stdin); ^ user.cpp:22:28: 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:52: 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", &arr[ i ]); ^ user.cpp: In function ‘int main()’: user.cpp:72:31: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen(FOUT, "w", stdout); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test Punctaj/grupa
1Depăşit216kbTime limit exceeded.00
232ms640kbOK1010
316ms524kbOK1010
4Depăşit532kbTime limit exceeded.00
544ms836kbOK1010
6Depăşit9988kbTime limit exceeded.00
7Depăşit9988kbTime limit exceeded.00
8768ms10016kbOK100
9Depăşit11156kbTime limit exceeded.0
10Depăşit11936kbTime limit exceeded.0
Punctaj total30

Ceva nu functioneaza?