Pagini recente » Borderou de evaluare (job #193320) | Borderou de evaluare (job #2291420) | Borderou de evaluare (job #628274) | Borderou de evaluare (job #1375571) | Borderou de evaluare (job #1944741)
Borderou de evaluare (job #1944741)
Raport evaluator
Compilare:
user.cpp: In function ‘int main()’:
user.cpp:31:19: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses]
if(r<b&&r<g||b<r&&b<g||g<b&&g<r)
^
user.cpp:31:39: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses]
if(r<b&&r<g||b<r&&b<g||g<b&&g<r)
^
user.cpp:6:28: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("rgb.in","r",stdin);
^
user.cpp:7:30: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("rgb.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",&t);
^
user.cpp:11:29: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d%d",&r,&g,&b);
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 0ms | 272kb | OK | 100 |
Punctaj total | 100 |