tri.cpp: In function 'int main()':
tri.cpp:57:11: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'll*' {aka 'long long int*'} [-Wformat=]
57 | scanf("%d%d",&n,&m);
| ~^ ~~
| | |
| int* ll* {aka long long int*}
| %lld
tri.cpp:57:13: warning: format '%d' expects argument of type 'int*', but argument 3 has type 'll*' {aka 'long long int*'} [-Wformat=]
57 | scanf("%d%d",&n,&m);
| ~^ ~~
| | |
| int* ll* {aka long long int*}
| %lld
tri.cpp:59:13: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'll*' {aka 'long long int*'} [-Wformat=]
59 | scanf("%d%d",&p[i].x,&p[i].y);
| ~^ ~~~~~~~
| | |
| int* ll* {aka long long int*}
| %lld
tri.cpp:59:15: warning: format '%d' expects argument of type 'int*', but argument 3 has type 'll*' {aka 'long long int*'} [-Wformat=]
59 | scanf("%d%d",&p[i].x,&p[i].y);
| ~^ ~~~~~~~
| | |
| int* ll* {aka long long int*}
| %lld
tri.cpp:79:13: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'll*' {aka 'long long int*'} [-Wformat=]
79 | scanf("%d%d%d%d",&a.x,&a.y,&b.x,&b.y);
| ~^ ~~~~
| | |
| int* ll* {aka long long int*}
| %lld
tri.cpp:79:15: warning: format '%d' expects argument of type 'int*', but argument 3 has type 'll*' {aka 'long long int*'} [-Wformat=]
79 | scanf("%d%d%d%d",&a.x,&a.y,&b.x,&b.y);
| ~^ ~~~~
| | |
| int* ll* {aka long long int*}
| %lld
tri.cpp:79:17: warning: format '%d' expects argument of type 'int*', but argument 4 has type 'll*' {aka 'long long int*'} [-Wformat=]
79 | scanf("%d%d%d%d",&a.x,&a.y,&b.x,&b.y);
| ~^ ~~~~
| | |
| int* ll* {aka long long int*}
| %lld
tri.cpp:79:19: warning: format '%d' expects argument of type 'int*', but argument 5 has type 'll*' {aka 'long long int*'} [-Wformat=]
79 | scanf("%d%d%d%d",&a.x,&a.y,&b.x,&b.y);
| ~^ ~~~~
| | |
| int* ll* {aka long long int*}
| %lld
tri.cpp:86:19: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
86 | ll mid=low+high>>1;
| ~~~^~~~~
tri.cpp:99:19: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
99 | ll mid=low+high>>1;
| ~~~^~~~~
tri.cpp:131:19: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
131 | ll mid=low+high>>1;
| ~~~^~~~~
tri.cpp:57:8: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
57 | scanf("%d%d",&n,&m);
| ~~~~~^~~~~~~~~~~~~~
tri.cpp:59:10: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
59 | scanf("%d%d",&p[i].x,&p[i].y);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
tri.cpp:79:10: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
79 | scanf("%d%d%d%d",&a.x,&a.y,&b.x,&b.y);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~