Pagini recente » Borderou de evaluare (job #3258596) | Borderou de evaluare (job #2489428) | Borderou de evaluare (job #2960003) | Borderou de evaluare (job #1731034) | Borderou de evaluare (job #2074518)
Borderou de evaluare (job #2074518)
Raport evaluator
Compilare:
user.cpp: In function ‘void solve()’:
user.cpp:46:32: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(j=0; j<v[nod].size(); j++)
^
user.cpp:36:10: warning: unused variable ‘i’ [-Wunused-variable]
long i, j, nod, poz;
^
user.cpp: In function ‘int main()’:
user.cpp:76:25: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long int*’ [-Wformat=]
scanf("%d%d", &n, &m);
^
user.cpp:76:25: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘long int*’ [-Wformat=]
user.cpp:79:50: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long int*’ [-Wformat=]
scanf("%d%d%d", &e[i].a, &e[i].b, &e[i].c);
^
user.cpp:79:50: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘long int*’ [-Wformat=]
user.cpp:79:50: warning: format ‘%d’ expects argument of type ‘int*’, but argument 4 has type ‘long int*’ [-Wformat=]
user.cpp:85:50: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long int’ [-Wformat=]
if (cost[i] != inf) printf("%d ", cost[i]);
^
user.cpp:74:39: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("dijkstra.in", "r", stdin);
^
user.cpp:75:41: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("dijkstra.out", "w", stdout);
^
user.cpp:76:26: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d", &n, &m);
^
user.cpp:79:51: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d%d", &e[i].a, &e[i].b, &e[i].c);
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 0ms | 868kb | OK | 10 |
2 | 0ms | 872kb | OK | 10 |
3 | 0ms | 912kb | OK | 10 |
4 | 0ms | 936kb | OK | 10 |
5 | 24ms | 1416kb | OK | 10 |
6 | 44ms | 1904kb | OK | 10 |
7 | 60ms | 2228kb | OK | 10 |
8 | 136ms | 3976kb | OK | 10 |
9 | 96ms | 3012kb | OK | 10 |
10 | 296ms | 6404kb | OK | 10 |
Punctaj total | 100 |