Borderou de evaluare (job #2325420)
Raport evaluator
Compilare:
main.cpp: In function 'void heapup(int)':
main.cpp:99:42: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
if( px[t] < px[k] || px[t] == px[k] && py[t] < py[k] )
~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~
main.cpp: In function 'void restore(int, int)':
main.cpp:132:38: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
if( stx > drx || stx == drx && sty > dry )
~~~~~~~~~~~^~~~~~~~~~~~
main.cpp:137:46: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
if( px[r] < px[x] || px[r] == px[x] && py[r] < py[x] )
~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~
main.cpp: In function 'int main()':
main.cpp:18:37: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("trapez.in", "r", stdin);
^
main.cpp:19:39: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("trapez.out", "w", stdout);
^
main.cpp:21:20: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &N);
^
main.cpp:26:38: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d", x+i, y+i);
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 2ms | 131kb | Ok! | 10 |
2 | 552ms | 4063kb | Time limit exceeded | 0 |
3 | 8ms | 131kb | Ok! | 10 |
4 | 552ms | 4063kb | Time limit exceeded | 0 |
5 | 15ms | 131kb | Ok! | 10 |
6 | 16ms | 278kb | Ok! | 10 |
7 | 551ms | 4063kb | Time limit exceeded | 0 |
8 | 196ms | 1179kb | Ok! | 10 |
9 | 552ms | 4063kb | Time limit exceeded | 0 |
10 | 551ms | 4063kb | Time limit exceeded | 0 |
Punctaj total | 50 |