Masyvo užklausos 2

Taškai: 30

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.024 sok
2True0.028 sok
3True0.024 sok
4False0.024 sNeteisinga eilutė
5True0.028 sok
6True0.024 sok
7True0.024 sok
8True0.012 sok
9True0.012 sok
10True0.012 sok
11False0.2 sNeteisinga eilutė
12False0.128 sNeteisinga eilutė
13False0.228 sNeteisinga eilutė
14False0.176 sNeteisinga eilutė
15False0.048 sNeteisinga eilutė
16False0.272 sNeteisinga eilutė
17False0.484 sNeteisinga eilutė
18False0.392 sNeteisinga eilutė
19False0.14 sNeteisinga eilutė
20False0.324 sNeteisinga eilutė
21False0.084 sNeteisinga eilutė
22False0.36 sNeteisinga eilutė
23False0.256 sNeteisinga eilutė
24False0.136 sNeteisinga eilutė
25False0.18 sNeteisinga eilutė
26False0.304 sNeteisinga eilutė
27False0.052 sNeteisinga eilutė
28False0.32 sNeteisinga eilutė
29False0.304 sNeteisinga eilutė
30False0.184 sNeteisinga eilutė