Pagini recente » Borderou de evaluare (job #254118) | Borderou de evaluare (job #2538032) | Borderou de evaluare (job #599036) | Borderou de evaluare (job #1445711) | Borderou de evaluare (job #2178915)
Borderou de evaluare (job #2178915)
Raport evaluator
Compilare:
user.cpp: In function ‘int main()’:
user.cpp:33:28: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(IN,"%d%d",&N,&M);
^
user.cpp:36:32: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(IN,"%d%d",&x,&y);
^
user.cpp:55:34: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(IN,"%d%d",&tx,&ty);
^
user.cpp: In function ‘int Search(int*, int)’:
user.cpp:28:12: warning: ‘last’ may be used uninitialized in this function [-Wmaybe-uninitialized]
return last;
^
user.cpp: In function ‘int main()’:
user.cpp:58:23: warning: ‘last’ may be used uninitialized in this function [-Wmaybe-uninitialized]
Px=Search(X,x);
^
user.cpp:60:54: warning: ‘last’ may be used uninitialized in this function [-Wmaybe-uninitialized]
Ans=(1LL*(2*Px-N)*x+SumX[N]-2*SumX[Px]+1LL*(2*Py-N)*y+SumY[N]-2*SumY[Py])/2;
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 4ms | 2800kb | OK | 10 |
2 | 4ms | 2772kb | OK | 10 |
3 | 4ms | 2776kb | OK | 10 |
4 | 92ms | 3580kb | OK | 10 |
5 | 92ms | 3660kb | OK | 10 |
6 | 324ms | 5132kb | OK | 10 |
7 | 324ms | 5172kb | OK | 10 |
8 | 320ms | 5284kb | OK | 10 |
9 | 328ms | 5100kb | OK | 10 |
10 | 324ms | 5256kb | OK | 10 |
Punctaj total | 100 |