Pagini recente » Borderou de evaluare (job #1807374) | Borderou de evaluare (job #2256803) | Borderou de evaluare (job #674815) | Borderou de evaluare (job #1586594) | Borderou de evaluare (job #2424847)
Borderou de evaluare (job #2424847)
Raport evaluator
Compilare:
main.cpp: In function 'int pop()':
main.cpp:39:27: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
while (i * 2 + 1 < hs && d[heap[i]] > d[heap[i * 2 + 1]] || i * 2 + 2 < hs && d[heap[i]] > d[heap[i * 2 + 2]]) {
~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
main.cpp: In function 'void dijkstra(int)':
main.cpp:87:7: warning: variable 'min' set but not used [-Wunused-but-set-variable]
int min, pmin = 0; // costul minim si nodul cu costul minim pana la start
^~~
main.cpp: In function 'void read()':
main.cpp:69:32: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
fscanf(fin, "%d %d", &n, &m );
^
main.cpp:73:43: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
fscanf(fin, "%d %d %d", &x, &y, &cost); //citim arcul si costul asociat
^
| Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
| 1 | 3ms | 131kb | OK | 10 |
| 2 | 2ms | 131kb | OK | 10 |
| 3 | 4ms | 262kb | OK | 10 |
| 4 | 7ms | 208kb | OK | 10 |
| 5 | 35ms | 983kb | OK | 10 |
| 6 | 67ms | 1814kb | Incorect | 0 |
| 7 | 66ms | 2359kb | OK | 10 |
| 8 | 205ms | 5672kb | OK | 10 |
| 9 | 91ms | 3670kb | OK | 10 |
| 10 | 297ms | 9306kb | Incorect | 0 |
| Punctaj total | 80 |