Pagini recente » Borderou de evaluare (job #264266) | Borderou de evaluare (job #1412487) | Borderou de evaluare (job #1081987) | Borderou de evaluare (job #113360) | Borderou de evaluare (job #701849)
Borderou de evaluare (job #701849)
Raport evaluator
Compilare:
user.cpp: In function ‘void citire()’:
user.cpp:13:28: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘char*’ [-Wformat=]
scanf("%d %d",&d[i],&c[i]);
^
user.cpp:13:28: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘char*’ [-Wformat=]
user.cpp: In function ‘void dijkstra(int)’:
user.cpp:27:31: warning: variable ‘cd’ set but not used [-Wunused-but-set-variable]
int i,j,pr,ul,ddmin,viz[201],cd[201],nrc[201];
^
user.cpp: In function ‘void citire()’:
user.cpp:10:28: 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:13:29: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d",&d[i],&c[i]);
^
user.cpp:18:25: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d",&p1,&p2);
^
user.cpp: In function ‘int main()’:
user.cpp:70:31: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("zmeu2.in","r",stdin);
^
user.cpp:71:33: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("zmeu2.out","w",stdout);
^
user.cpp: In function ‘void dijkstra(int)’:
user.cpp:53:11: warning: ‘j’ may be used uninitialized in this function [-Wmaybe-uninitialized]
viz[j]=1;
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 0ms | 260kb | Incorect | 0 |
2 | 0ms | 252kb | OK | 10 |
3 | 8ms | 296kb | Incorect | 0 |
4 | 0ms | 292kb | OK | 10 |
5 | 8ms | 292kb | Incorect | 0 |
6 | 0ms | 260kb | Incorect | 0 |
7 | 0ms | 272kb | OK | 10 |
8 | 0ms | 264kb | OK | 10 |
9 | 0ms | 284kb | Incorect | 0 |
10 | 12ms | 296kb | Incorect | 0 |
Punctaj total | 40 |