Pagini recente » Borderou de evaluare (job #2099515) | Borderou de evaluare (job #610533) | Borderou de evaluare (job #654530) | Borderou de evaluare (job #268890) | Borderou de evaluare (job #1821889)
Borderou de evaluare (job #1821889)
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:81: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:83: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:101: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:101:31: note: in expansion of macro ‘BIT’
sol = min(sol, mat[i][BIT(k + 1) - 1] + dist[i][n - 1]);
^
user.cpp:101: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:101: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 | 312kb | Incorect | 0 |
2 | 0ms | 316kb | Incorect | 0 |
3 | 0ms | 328kb | Incorect | 0 |
4 | 0ms | 340kb | OK | 5 |
5 | 0ms | 352kb | OK | 5 |
6 | 0ms | 368kb | OK | 5 |
7 | 0ms | 420kb | OK | 5 |
8 | 0ms | 436kb | OK | 5 |
9 | 0ms | 524kb | OK | 5 |
10 | 4ms | 644kb | OK | 5 |
11 | 4ms | 872kb | OK | 5 |
12 | 4ms | 872kb | OK | 5 |
13 | 12ms | 1372kb | OK | 5 |
14 | 28ms | 2472kb | OK | 5 |
15 | 60ms | 4612kb | OK | 5 |
16 | 64ms | 4680kb | OK | 5 |
17 | 68ms | 4712kb | OK | 5 |
18 | 72ms | 4736kb | OK | 5 |
19 | 80ms | 4840kb | OK | 5 |
20 | 0ms | 308kb | Incorect | 0 |
Punctaj total | 80 |