servers.cpp: In function 'int main()':
servers.cpp:24:44: error: invalid types 'int[int]' for array subscript
24 | if(v[a] > v[b] || (a == 1 && id[b] != 0)) printf("yes\n");
| ^
servers.cpp:7:10: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
7 | scanf("%d %d", &n, &k);
| ~~~~~^~~~~~~~~~~~~~~~~
servers.cpp:14:14: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
14 | scanf(" %c", &c);
| ~~~~~^~~~~~~~~~~
servers.cpp:17:18: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
17 | scanf("%d %d", &a, &b);
| ~~~~~^~~~~~~~~~~~~~~~~
servers.cpp:23:18: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
23 | scanf("%d %d", &a, &b);
| ~~~~~^~~~~~~~~~~~~~~~~
servers.cpp:29:18: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
29 | scanf("%d", &a);
| ~~~~~^~~~~~~~~~