met.cpp: In function 'int main()':
met.cpp:92:7: error: 'flag' was not declared in this scope
92 | if(!flag) {break;}
| ^~~~
met.cpp:92:14: error: break statement not within loop or switch
92 | if(!flag) {break;}
| ^~~~~
met.cpp: At global scope:
met.cpp:95:2: error: expected unqualified-id before 'for'
95 | for(int i = 0;i < n;i++) {
| ^~~
met.cpp:95:16: error: 'i' does not name a type
95 | for(int i = 0;i < n;i++) {
| ^
met.cpp:95:22: error: 'i' does not name a type
95 | for(int i = 0;i < n;i++) {
| ^
met.cpp:98:2: error: expected unqualified-id before 'return'
98 | return 0;
| ^~~~~~
met.cpp:99:1: error: expected declaration before '}' token
99 | }
| ^
met.cpp: In function 'int main()':
met.cpp:36:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
36 | scanf("%d %d", &n, &m);
| ~~~~~^~~~~~~~~~~~~~~~~
met.cpp:38:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
38 | int x;scanf("%d", &x);x--;
| ~~~~~^~~~~~~~~~
met.cpp:41:32: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
41 | for(int i = 0;i < n;i++) scanf("%lld", need + i);
| ~~~~~^~~~~~~~~~~~~~~~~~
met.cpp:43:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
43 | scanf("%d", &k);
| ~~~~~^~~~~~~~~~
met.cpp:46:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
46 | scanf("%d %d %d", &l, &r, &a);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~