Pagini recente » Borderou de evaluare (job #21123) | Borderou de evaluare (job #1573423) | Borderou de evaluare (job #3166907) | Borderou de evaluare (job #2717779) | Borderou de evaluare (job #1821890)
Borderou de evaluare (job #1821890)
Raport evaluator
Compilare:
user.cpp: In function ‘void dijkstra(int, int)’:
user.cpp:32:34: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(i = 0; i < v[start].size(); i++)
^
user.cpp:46:34: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(i = 0; i < v[a].size(); i++)
^
user.cpp: In function ‘int main()’:
user.cpp:87:26: warning: suggest parentheses around ‘+’ inside ‘<<’ [-Wparentheses]
for(i = 0; i < BIT(k + 1); i++) for(j = 0; j < k + 1; j++) mat[j][i] = inf;
^
user.cpp:6:20: note: in definition of macro ‘BIT’
#define BIT(x) (1<<x)
^
user.cpp:89:26: warning: suggest parentheses around ‘+’ inside ‘<<’ [-Wparentheses]
for(i = 3; i < BIT(k + 1); i += 2)
^
user.cpp:6:20: note: in definition of macro ‘BIT’
#define BIT(x) (1<<x)
^
user.cpp:107:37: warning: suggest parentheses around ‘+’ inside ‘<<’ [-Wparentheses]
sol = min(sol, mat[i][BIT(k + 1) - 1] + dist[i][n - 1]);
^
user.cpp:7:21: note: in definition of macro ‘min’
#define min(x,y) (x<y?x:y)
^
user.cpp:107:31: note: in expansion of macro ‘BIT’
sol = min(sol, mat[i][BIT(k + 1) - 1] + dist[i][n - 1]);
^
user.cpp:107:37: warning: suggest parentheses around ‘+’ inside ‘<<’ [-Wparentheses]
sol = min(sol, mat[i][BIT(k + 1) - 1] + dist[i][n - 1]);
^
user.cpp:7:25: note: in definition of macro ‘min’
#define min(x,y) (x<y?x:y)
^
user.cpp:107:31: note: in expansion of macro ‘BIT’
sol = min(sol, mat[i][BIT(k + 1) - 1] + dist[i][n - 1]);
^
user.cpp:61:39: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("ubuntzei.in", "r", stdin);
^
user.cpp:62:41: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("ubuntzei.out", "w", stdout);
^
user.cpp:63:32: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d%d", &n, &m, &k);
^
user.cpp:67:28: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &vk[i]);
^
| Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
| 1 | 0ms | 316kb | OK | 5 |
| 2 | 0ms | 312kb | OK | 5 |
| 3 | 0ms | 328kb | OK | 5 |
| 4 | 0ms | 336kb | OK | 5 |
| 5 | 0ms | 352kb | OK | 5 |
| 6 | 0ms | 372kb | OK | 5 |
| 7 | 0ms | 416kb | OK | 5 |
| 8 | 0ms | 436kb | OK | 5 |
| 9 | 0ms | 524kb | OK | 5 |
| 10 | 4ms | 648kb | OK | 5 |
| 11 | 4ms | 876kb | OK | 5 |
| 12 | 4ms | 876kb | OK | 5 |
| 13 | 12ms | 1368kb | OK | 5 |
| 14 | 28ms | 2468kb | OK | 5 |
| 15 | 60ms | 4604kb | OK | 5 |
| 16 | 64ms | 4680kb | OK | 5 |
| 17 | 68ms | 4704kb | OK | 5 |
| 18 | 72ms | 4732kb | OK | 5 |
| 19 | 84ms | 4836kb | OK | 5 |
| 20 | 0ms | 312kb | OK | 5 |
| Punctaj total | 100 |