Masyvo Užklausos 2

Taškai: 83.3

Compile: OK

masyvo_uzklausos1234.cpp: In function ‘int main()’: masyvo_uzklausos1234.cpp:72:41: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘__gnu_cxx::__alloc_traits<std::allocator<long long int> >::value_type {aka long long int}’ [-Wformat=] printf("%I64d\n", ans[i]); ^ masyvo_uzklausos1234.cpp:39:30: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d", &n, &q); ^ masyvo_uzklausos1234.cpp:41:35: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &a[i]); ^ masyvo_uzklausos1234.cpp:47:38: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d", &l, &r); ^

nr.resulttimemessage
1True0.016 sok
2True0.016 sok
3True0.016 sok
4True0.02 sok
5True0.016 sok
6True0.012 sok
7True0.016 sok
8True0.024 sok
9True0.016 sok
10True0.016 sok
11True0.012 sok
12True0.012 sok
13True0.02 sok
14True0.012 sok
15True0.02 sok
16True0.036 sok
17True0.024 sok
18True0.024 sok
19True0.028 sok
20True0.032 sok
21True0.096 sok
22True0.156 sok
23True0.164 sok
24True0.172 sok
25True0.128 sok
26False0.484 sNeteisinga eilutė
27False0.4 sNeteisinga eilutė
28False0.468 sNeteisinga eilutė
29False0.472 sNeteisinga eilutė
30False1.192 sNeteisinga eilutė