Pagini recente » Borderou de evaluare (job #1151173) | Borderou de evaluare (job #863269) | Borderou de evaluare (job #1791855) | Borderou de evaluare (job #1603071) | Borderou de evaluare (job #1425077)
Borderou de evaluare (job #1425077)
Raport evaluator
Compilare:
user.cpp: In function ‘void update(int, int)’:
user.cpp:9:28: warning: suggest parentheses around arithmetic in operand of ‘^’ [-Wparentheses]
for( ; poz<=n; poz+=poz&(poz-1)^poz)
^
user.cpp: In function ‘int query(int)’:
user.cpp:15:25: warning: suggest parentheses around arithmetic in operand of ‘^’ [-Wparentheses]
for( ; poz; poz-=poz&(poz-1)^poz)
^
user.cpp: In function ‘int main()’:
user.cpp:24:38: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("datorii.in", "r", stdin);
^
user.cpp:25:40: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("datorii.out", "w", stdout);
^
user.cpp:27:26: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d", &n, &m);
^
user.cpp:30:24: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &c);
^
user.cpp:35:38: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d%d", &tip, &a, &b);
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 76ms | 304kb | Corect! | 20 |
2 | 76ms | 304kb | Corect! | 20 |
3 | 76ms | 308kb | Corect! | 20 |
4 | 76ms | 300kb | Corect! | 20 |
5 | 76ms | 304kb | Corect! | 20 |
Punctaj total | 100 |