Pagini recente » Borderou de evaluare (job #913128) | Borderou de evaluare (job #2726606) | Borderou de evaluare (job #410450) | Borderou de evaluare (job #2848747) | Borderou de evaluare (job #1212464)
Borderou de evaluare (job #1212464)
Raport evaluator
Compilare:
user.cpp: In function ‘int main()’:
user.cpp:8:14: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long int*’ [-Wformat=]
scanf("%d",&n);
^
user.cpp:9:9: warning: suggest parentheses around ‘-’ in operand of ‘&’ [-Wparentheses]
if ((n&n-1) && (n!=2)) {
^
user.cpp:11:40: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long int’ [-Wformat=]
printf("%d",n/2);
^
user.cpp:6:30: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("iunie.in","r",stdin);
^
user.cpp:7:32: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("iunie.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);
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
Punctaj/grupa |
1 | 0ms | 240kb | OK | 10 | 0 |
2 | 0ms | 244kb | OK | 10 |
3 | 0ms | 256kb | Incorect | 0 |
4 | 0ms | 252kb | OK | 10 |
5 | 0ms | 252kb | OK | 10 |
6 | 0ms | 256kb | OK | 10 |
7 | 0ms | 252kb | OK | 10 |
8 | 0ms | 256kb | OK | 10 |
9 | 0ms | 248kb | Incorect | 0 |
10 | 0ms | 252kb | OK | 10 |
Punctaj total | 0 |