triangle.cpp: In function 'int main()':
triangle.cpp:20:14: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long long int' [-Wformat=]
20 | printf("%d\n", ans);
| ~^ ~~~
| | |
| int long long int
| %lld
triangle.cpp:9:10: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
9 | scanf("%d", &n);
| ~~~~~^~~~~~~~~~
triangle.cpp:12:14: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
12 | scanf("%d %d", &x[i], &y[i]);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~