Main.cpp: In lambda function:
Main.cpp:22:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
22 | if (f[cur]) return f2[cur] = 1; f[cur] = 1;
| ^~
Main.cpp:22:49: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
22 | if (f[cur]) return f2[cur] = 1; f[cur] = 1;
| ^
Main.cpp: In function 'int main()':
Main.cpp:9:10: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
9 | scanf("%d %d %d", &n, &k, &q);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
Main.cpp:11:39: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
11 | for (int i = 1; i <= n; i++) scanf("%d", &a[i]);
| ~~~~~^~~~~~~~~~~~~
Main.cpp:37:22: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
37 | while (q--) scanf("%d %d", &x, &y), printf("%s\n", dp[x] >= y ? "YES" : "NO");
| ~~~~~^~~~~~~~~~~~~~~~~