Pagini recente » Borderou de evaluare (job #142548) | Borderou de evaluare (job #1196650) | Borderou de evaluare (job #1823155) | Borderou de evaluare (job #1173401) | Borderou de evaluare (job #1835158)
Borderou de evaluare (job #1835158)
Raport evaluator
Compilare:
user.cpp: In function ‘int main()’:
user.cpp:30:61: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses]
if(vc[i+j].pas>vc[i].pas+1||vc[i+j].pas==vc[i].pas+1&&vc[i+v[i].x].val>vc[i].val)
^
user.cpp:35:57: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses]
if(vc[i+1].pas>vc[i].pas+1||vc[i+1].pas==vc[i].pas+1&&vc[i+1].val>vc[i].val)
^
user.cpp:42:65: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses]
if(vc[i+2*j].pas>vc[i].pas+1||vc[i+2*j].pas==vc[i].pas+1&&vc[i+2*j].val>vc[i].val+j)
^
user.cpp:47:69: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses]
if(vc[i+2*j-1].pas>vc[i].pas+1||vc[i+2*j-1].pas==vc[i].pas+1&&vc[i+2*j-1].val>vc[i].val+j)
^
user.cpp:56:49: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses]
if(vc[i].pas<maxim||vc[i].pas==vc[maxim].pas&&vc[i].val<vc[maxim].val)
^
user.cpp:9:31: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("scara3.in","r",stdin);
^
user.cpp:10:33: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("scara3.out","w",stdout);
^
user.cpp:11:15: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&n);
^
user.cpp:12:15: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&k);
^
user.cpp:15:24: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d",&x,&y);
^
user.cpp:18:15: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&k);
^
user.cpp:21:24: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d",&x,&y);
^
user.cpp:61:39: warning: ‘poz’ may be used uninitialized in this function [-Wmaybe-uninitialized]
printf("%d %d",vc[poz].pas,vc[poz].val);
^
| Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
| 1 | 0ms | 276kb | OK | 5 |
| 2 | 0ms | 268kb | OK | 5 |
| 3 | 0ms | 268kb | OK | 5 |
| 4 | 0ms | 268kb | OK | 5 |
| 5 | 0ms | 276kb | OK | 5 |
| 6 | 0ms | 276kb | OK | 5 |
| 7 | 0ms | 272kb | OK | 5 |
| 8 | 0ms | 268kb | OK | 5 |
| 9 | 0ms | 272kb | OK | 5 |
| 10 | 0ms | 268kb | OK | 5 |
| 11 | 0ms | 280kb | OK | 5 |
| 12 | 0ms | 280kb | OK | 5 |
| 13 | 0ms | 280kb | OK | 5 |
| 14 | 0ms | 296kb | OK | 5 |
| 15 | 0ms | 288kb | OK | 5 |
| 16 | 0ms | 292kb | OK | 5 |
| 17 | 0ms | 288kb | OK | 5 |
| 18 | 0ms | 296kb | Incorect | 0 |
| 19 | 0ms | 296kb | OK | 5 |
| 20 | 0ms | 288kb | Incorect | 0 |
| Punctaj total | 90 |