Pagini recente » Borderou de evaluare (job #1707092) | Borderou de evaluare (job #1708319)
Borderou de evaluare (job #1708319)
Raport evaluator
Compilare:
user.cpp: In function ‘void adauga(int, int)’:
user.cpp:2:28: warning: suggest parentheses around arithmetic in operand of ‘^’ [-Wparentheses]
#define zeros(x) ((x^(x-1) & x))
^
user.cpp:7:27: note: in expansion of macro ‘zeros’
for(int i=poz;i<=n;i+=zeros(i))
^
user.cpp: In function ‘int suma(int)’:
user.cpp:2:28: warning: suggest parentheses around arithmetic in operand of ‘^’ [-Wparentheses]
#define zeros(x) ((x^(x-1) & x))
^
user.cpp:15:25: note: in expansion of macro ‘zeros’
for(int i=x;i>=1;i-=zeros(i))
^
user.cpp: In function ‘int main()’:
user.cpp:42:32: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("aib.in","r",stdin);
^
user.cpp:43:34: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("aib.out","w",stdout);
^
user.cpp:44:19: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&n);
^
user.cpp:47:23: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&x);
^
user.cpp:52:23: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&c);
^
user.cpp:55:32: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d",&a,&b);
^
user.cpp:61:32: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d",&a,&b);
^
user.cpp:66:27: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&a);
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 0ms | 244kb | Incorect | 0 |
2 | 0ms | 248kb | Incorect | 0 |
3 | 0ms | 260kb | Incorect | 0 |
4 | 4ms | 264kb | Incorect | 0 |
5 | 8ms | 272kb | Incorect | 0 |
6 | 16ms | 264kb | Incorect | 0 |
7 | 20ms | 276kb | Incorect | 0 |
8 | 24ms | 276kb | Incorect | 0 |
9 | 24ms | 268kb | Incorect | 0 |
10 | 24ms | 268kb | Incorect | 0 |
Punctaj total | 0 |