Pagini recente » Borderou de evaluare (job #2118723) | Borderou de evaluare (job #1712553) | Borderou de evaluare (job #678987) | Borderou de evaluare (job #1690403) | Borderou de evaluare (job #2194826)
Borderou de evaluare (job #2194826)
Raport evaluator
Compilare:
user.cpp: In function ‘int get_id(int, int)’:
user.cpp:9:14: warning: suggest parentheses around arithmetic in operand of ‘|’ [-Wparentheses]
return l + r | l != r;
~~^~~
user.cpp: In function ‘void build(int, int)’:
user.cpp:18:19: warning: suggest parentheses around ‘+’ inside ‘>>’ [-Wparentheses]
int m = l + r >> 1;
~~^~~
user.cpp: In function ‘void update(int, int, int, int)’:
user.cpp:31:19: warning: suggest parentheses around ‘+’ inside ‘>>’ [-Wparentheses]
int m = l + r >> 1;
~~^~~
user.cpp: In function ‘int eval(int, int, int, int)’:
user.cpp:47:19: warning: suggest parentheses around ‘+’ inside ‘>>’ [-Wparentheses]
int m = l + r >> 1;
~~^~~
user.cpp: In function ‘int main()’:
user.cpp:62:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("arbint.in", "r", stdin);
^
user.cpp:63:39: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("arbint.out", "w", stdout);
^
user.cpp:66:26: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d", &n, &q);
^
user.cpp:68:27: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", a + i);
^
user.cpp:74:36: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d%d", &o, &a, &b);
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
Punctaj/grupa |
1 | 0ms | 1328kb | OK | 10 | 10 |
2 | 8ms | 1328kb | OK | 10 | 10 |
3 | 12ms | 1344kb | OK | 10 | 10 |
4 | 36ms | 1380kb | OK | 10 | 10 |
5 | 56ms | 2144kb | OK | 10 | 10 |
6 | 68ms | 2384kb | OK | 10 | 50 |
7 | 192ms | 2488kb | OK | 10 |
8 | 164ms | 2328kb | OK | 10 |
9 | 164ms | 2436kb | OK | 10 |
10 | 168ms | 2484kb | OK | 10 |
Punctaj total | 100 |