examination.cpp: In function 'int main()':
examination.cpp:18:53: warning: suggest parentheses around comparison in operand of '&' [-Wparentheses]
18 | for (int i = 0; i < n; i++)ans += (a[i] >= x & b[i] >= y & a[i]+b[i]>=z);
| ~~~~~^~~~
examination.cpp:18:81: warning: suggest parentheses around comparison in operand of '&' [-Wparentheses]
18 | for (int i = 0; i < n; i++)ans += (a[i] >= x & b[i] >= y & a[i]+b[i]>=z);
| ~~~~~~~~~^~~
examination.cpp:19:22: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long long int' [-Wformat=]
19 | printf("%d\n" , ans);
| ~^ ~~~
| | |
| int long long int
| %lld
examination.cpp:13:14: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
13 | scanf("%d %d" , &n , &m);
| ~~~~~^~~~~~~~~~~~~~~~~~~
examination.cpp:14:37: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
14 | for (int i = 0;i<n;i++)scanf("%d %d" , &a[i] , &b[i]);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
examination.cpp:17:18: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
17 | scanf("%d %d %d" , &x , &y , &z);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~