Masyvo užklausos 4

Taškai: 25

Compile: OK

segment_tree_4.cpp: In function ‘int main()’: segment_tree_4.cpp:67: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_4.cpp:69:43: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%lld", &numbers[i]); ^ segment_tree_4.cpp:74:34: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf(" %c", &ch); ^ segment_tree_4.cpp:77:53: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d", &left, &right); ^ segment_tree_4.cpp:82: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
1False0.012 sNeteisinga eilutė
2True0.016 sok
3True0.016 sok
4True0.012 sok
5True0.02 sok
6True0.016 sok
7True0.016 sok
8True0.012 sok
9False0.144 sNeteisinga eilutė
10False0.076 sNeteisinga eilutė
11False0.132 sNeteisinga eilutė
12False0.148 sNeteisinga eilutė
13False0.156 sNeteisinga eilutė
14False0.096 sNeteisinga eilutė
15False0.1 sNeteisinga eilutė
16False0.108 sNeteisinga eilutė
17False0.124 sNeteisinga eilutė
18False0.06 sNeteisinga eilutė
19False0.108 sNeteisinga eilutė
20False0.08 sNeteisinga eilutė
21False0.148 sNeteisinga eilutė
22False0.156 sNeteisinga eilutė
23False0.072 sNeteisinga eilutė
24False0.26 sNeteisinga eilutė
25False0.2 sNeteisinga eilutė
26False0.076 sNeteisinga eilutė
27False0.208 sNeteisinga eilutė
28False0.124 sNeteisinga eilutė