Borderou de evaluare (job #670913)

Utilizator BredPitBred Pit BredPit Data 30 ianuarie 2012 13:50:15
Problema Zmeu2 Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

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
10ms492kbIncorect0
20ms488kbIncorect0
38ms684kbIncorect0
40ms488kbIncorect0
58ms636kbIncorect0
60ms520kbIncorect0
70ms544kbIncorect0
80ms500kbIncorect0
90ms632kbIncorect0
1012ms680kbIncorect0
Punctaj total0

Ceva nu functioneaza?