Pagini recente » Borderou de evaluare (job #1159689) | Cod sursa (job #154802) | Borderou de evaluare (job #835414) | Borderou de evaluare (job #2577167) | Borderou de evaluare (job #1515581)
Borderou de evaluare (job #1515581)
Raport evaluator
Compilare:
user.cpp: In function ‘int main()’:
user.cpp:11:17: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long int*’ [-Wformat=]
scanf("%d",&c[i]);
^
user.cpp:32:22: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long int’ [-Wformat=]
printf("%d ",roata[i]);
^
user.cpp:47:24: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long int’ [-Wformat=]
printf("%d ",roata[poz]);
^
user.cpp:6:5: warning: unused variable ‘j’ [-Wunused-variable]
int j,capacitate,n,p,i,minim,aux,t=0,cabina,poz;
^
user.cpp:6:30: warning: unused variable ‘aux’ [-Wunused-variable]
int j,capacitate,n,p,i,minim,aux,t=0,cabina,poz;
^
user.cpp:4:34: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("roata.in","r",stdin);
^
user.cpp:5:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("roata.out","w",stdout);
^
user.cpp:8:15: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&n);
^
user.cpp:9:15: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&p);
^
user.cpp:11:18: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&c[i]);
^
user.cpp:48:13: warning: ‘poz’ may be used uninitialized in this function [-Wmaybe-uninitialized]
roata[poz]=0;
^
user.cpp:45:5: warning: ‘minim’ may be used uninitialized in this function [-Wmaybe-uninitialized]
if(minim>cab[i] && roata[i]) {minim=cab[i];poz=i;}
^
| Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
| 1 | 0ms | 300kb | OK! | 5 |
| 2 | 0ms | 300kb | OK! | 5 |
| 3 | 0ms | 296kb | OK! | 5 |
| 4 | 0ms | 296kb | OK! | 5 |
| 5 | 0ms | 296kb | OK! | 5 |
| 6 | 0ms | 296kb | OK! | 5 |
| 7 | 0ms | 296kb | OK! | 5 |
| 8 | 0ms | 296kb | OK! | 5 |
| 9 | 0ms | 296kb | OK! | 5 |
| 10 | 0ms | 300kb | OK! | 5 |
| 11 | 0ms | 316kb | OK! | 5 |
| 12 | 0ms | 308kb | OK! | 5 |
| 13 | 8ms | 340kb | OK! | 5 |
| 14 | 28ms | 392kb | OK! | 5 |
| 15 | 60ms | 472kb | OK! | 5 |
| 16 | 108ms | 552kb | OK! | 5 |
| 17 | 52ms | 688kb | OK! | 5 |
| 18 | 176ms | 684kb | OK! | 5 |
| 19 | 228ms | 684kb | OK! | 5 |
| 20 | 60ms | 680kb | OK! | 5 |
| Punctaj total | 100 |