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