Pagini recente » Borderou de evaluare (job #393710) | Borderou de evaluare (job #335072) | Borderou de evaluare (job #2293277) | Borderou de evaluare (job #2895943) | Borderou de evaluare (job #2294812)
Borderou de evaluare (job #2294812)
Raport evaluator
Compilare:
main.cpp: In function 'int main()':
main.cpp:50:58: warning: suggest parentheses around '-' inside '<<' [-Wparentheses]
if(lookup_table[i-1][j]<lookup_table[i-1][j+(1<<i-1)])
~^~
main.cpp:53:53: warning: suggest parentheses around '-' inside '<<' [-Wparentheses]
lookup_table[i][j]=lookup_table[i-1][j+(1<<i-1)];
~^~
main.cpp:14:34: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
fscanf(fin,"%d%d", &n, &nrquerry);
^
main.cpp:17:42: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
fscanf(fin,"%d", &lookup_table[0][i]);
^
main.cpp:74:31: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
fscanf(fin,"%d%d", &x, &y);
^
main.cpp:23:12: warning: iteration 17 invokes undefined behavior [-Waggressive-loop-optimizations]
pow2[i]=2*pow2[i-1];
~~~~~~~^~~~~~~~~~~~
main.cpp:22:10: note: within this loop
for(i=1;i<=18;i++){
~^~~~
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
Punctaj/grupa |
1 | 2ms | 131kb | OK | 10 | 10 |
2 | 2ms | 131kb | OK | 10 | 10 |
3 | 5ms | 393kb | OK | 10 | 10 |
4 | 99ms | 3670kb | OK | 10 | 10 |
5 | 122ms | 3670kb | OK | 10 | 20 |
6 | 607ms | 6422kb | OK | 10 |
7 | 623ms | 7602kb | OK | 10 | 10 |
8 | 728ms | 9437kb | OK | 10 | 10 |
9 | 766ms | 9568kb | OK | 10 | 10 |
10 | 886ms | 10092kb | OK | 10 | 10 |
Punctaj total | 100 |