Masyvo užklausos 2

Taškai: 100

Compile: OK

segment_tree_2.cpp: In function ‘int main()’: segment_tree_2.cpp:71:30: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d", &N, &Q); ^ segment_tree_2.cpp:73:43: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%lld", &numbers[i]); ^ segment_tree_2.cpp:78:34: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf(" %c", &ch); ^ segment_tree_2.cpp:81:42: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &pos); ^ segment_tree_2.cpp:87:55: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d%lld", &left, &right, &val); ^

nr.resulttimemessage
1True0.016 sok
2True0.024 sok
3True0.024 sok
4True0.024 sok
5True0.024 sok
6True0.024 sok
7True0.024 sok
8True0.024 sok
9True0.028 sok
10True0.024 sok
11True0.284 sok
12True0.216 sok
13True0.296 sok
14True0.228 sok
15True0.048 sok
16True0.244 sok
17True0.524 sok
18True0.364 sok
19True0.152 sok
20True0.316 sok
21True0.132 sok
22True0.296 sok
23True0.296 sok
24True0.144 sok
25True0.116 sok
26True0.324 sok
27True0.048 sok
28True0.284 sok
29True0.24 sok
30True0.144 sok