Pagini recente » Borderou de evaluare (job #1059457) | Borderou de evaluare (job #1914903) | Borderou de evaluare (job #42420) | Borderou de evaluare (job #2110682) | Borderou de evaluare (job #670913)
Borderou de evaluare (job #670913)
Raport evaluator
Compilare:
user.cpp: In function ‘void Dijkstra()’:
user.cpp:72:13: warning: narrowing conversion of ‘(((int)N) - ((int)v[1].poveste::c))’ from ‘int’ to ‘short int’ inside { } [-Wnarrowing]
ceva x={1,N-v[1].c};
^
user.cpp:84:26: warning: narrowing conversion of ‘i’ from ‘int’ to ‘short int’ inside { } [-Wnarrowing]
ceva tmp={i,x.c-v[i].c};
^
user.cpp:84:19: warning: narrowing conversion of ‘(((int)x.ceva::c) - ((int)v[i].poveste::c))’ from ‘int’ to ‘short int’ inside { } [-Wnarrowing]
ceva tmp={i,x.c-v[i].c};
^
user.cpp: In function ‘void BellmanFord()’:
user.cpp:99:13: warning: narrowing conversion of ‘(((int)N) - ((int)v[1].poveste::c))’ from ‘int’ to ‘short int’ inside { } [-Wnarrowing]
ceva x={1,N-v[1].c};
^
user.cpp:113:26: warning: narrowing conversion of ‘i’ from ‘int’ to ‘short int’ inside { } [-Wnarrowing]
ceva tmp={i,x.c-v[i].c};
^
user.cpp:113:19: warning: narrowing conversion of ‘(((int)x.ceva::c) - ((int)v[i].poveste::c))’ from ‘int’ to ‘short int’ inside { } [-Wnarrowing]
ceva tmp={i,x.c-v[i].c};
^
user.cpp:113:9: warning: unused variable ‘tmp’ [-Wunused-variable]
ceva tmp={i,x.c-v[i].c};
^
user.cpp: In function ‘int main()’:
user.cpp:124:25: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘short int*’ [-Wformat=]
scanf("%d%d%d",&N,&P,&K);
^
user.cpp:124:25: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘short int*’ [-Wformat=]
user.cpp:124:25: warning: format ‘%d’ expects argument of type ‘int*’, but argument 4 has type ‘short int*’ [-Wformat=]
user.cpp:127:31: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘short int*’ [-Wformat=]
scanf("%d%d",&v[i].d,&v[i].c);
^
user.cpp:127:31: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘short int*’ [-Wformat=]
user.cpp:123:23: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen(IN,"r",stdin);
^
user.cpp:124:26: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d%d",&N,&P,&K);
^
user.cpp:127:32: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d",&v[i].d,&v[i].c);
^
user.cpp:129:34: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d",&x,&y),Mat[x][y]=1;
^
user.cpp:142:25: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen(OUT,"w",stdout);
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 0ms | 492kb | Incorect | 0 |
2 | 0ms | 488kb | Incorect | 0 |
3 | 8ms | 684kb | Incorect | 0 |
4 | 0ms | 488kb | Incorect | 0 |
5 | 8ms | 636kb | Incorect | 0 |
6 | 0ms | 520kb | Incorect | 0 |
7 | 0ms | 544kb | Incorect | 0 |
8 | 0ms | 500kb | Incorect | 0 |
9 | 0ms | 632kb | Incorect | 0 |
10 | 12ms | 680kb | Incorect | 0 |
Punctaj total | 0 |