Pagini recente » Borderou de evaluare (job #2618738) | Borderou de evaluare (job #2836894) | Borderou de evaluare (job #1034950) | Borderou de evaluare (job #2635753) | Borderou de evaluare (job #1290064)
Borderou de evaluare (job #1290064)
Raport evaluator
Compilare:
user.cpp: In function ‘void BF(int)’:
user.cpp:12:149: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
void BF (int nr){int x,i; for (i=1; i<=n; ++i)D[i]=inf;D[loc[nr]]=0;q.push(loc[nr]);while (! q.empty()){x=q.front (); q.pop();for (i=0; i<v[x].size(); ++i)if (D[v[x][i].nod]>D[x]+v[x][i].cost)
^
user.cpp: In function ‘int main()’:
user.cpp:19:40: 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:20:42: 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:21:33: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf ("%d%d%d", &n, &m, &k);loc[0]=1;for (i=1; i<=k; ++i)scanf ("%d", &loc[i]);loc[k+1]=n;for (i=1; i<=m; ++i){scanf ("%d%d%d", &x, &y, &c);E.nod=y; E.cost=c;v[x].push_back(E);E.nod=x; E.cost=c;
^
user.cpp:21:84: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf ("%d%d%d", &n, &m, &k);loc[0]=1;for (i=1; i<=k; ++i)scanf ("%d", &loc[i]);loc[k+1]=n;for (i=1; i<=m; ++i){scanf ("%d%d%d", &x, &y, &c);E.nod=y; E.cost=c;v[x].push_back(E);E.nod=x; E.cost=c;
^
user.cpp:21:145: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf ("%d%d%d", &n, &m, &k);loc[0]=1;for (i=1; i<=k; ++i)scanf ("%d", &loc[i]);loc[k+1]=n;for (i=1; i<=m; ++i){scanf ("%d%d%d", &x, &y, &c);E.nod=y; E.cost=c;v[x].push_back(E);E.nod=x; E.cost=c;
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 0ms | 308kb | OK | 5 |
2 | 0ms | 312kb | OK | 5 |
3 | 0ms | 328kb | OK | 5 |
4 | 0ms | 336kb | OK | 5 |
5 | 0ms | 344kb | OK | 5 |
6 | 0ms | 356kb | OK | 5 |
7 | 0ms | 368kb | OK | 5 |
8 | 0ms | 416kb | OK | 5 |
9 | 0ms | 428kb | OK | 5 |
10 | 0ms | 500kb | OK | 5 |
11 | 4ms | 624kb | OK | 5 |
12 | 4ms | 628kb | OK | 5 |
13 | 8ms | 892kb | OK | 5 |
14 | 20ms | 1492kb | OK | 5 |
15 | 40ms | 2580kb | OK | 5 |
16 | 44ms | 2636kb | OK | 5 |
17 | 48ms | 2656kb | OK | 5 |
18 | 52ms | 2688kb | OK | 5 |
19 | 56ms | 2768kb | OK | 5 |
20 | 0ms | 304kb | OK | 5 |
Punctaj total | 100 |