Aesthetic.cpp:27:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
27 | main (){
| ^~~~
Aesthetic.cpp: In function 'int main()':
Aesthetic.cpp:29:15: warning: format '%lld' expects argument of type 'long long int*', but argument 2 has type 'int*' [-Wformat=]
29 | scanf("%lld%lld" , &n , &m);
| ~~~^ ~~
| | |
| | int*
| long long int*
| %d
Aesthetic.cpp:29:19: warning: format '%lld' expects argument of type 'long long int*', but argument 3 has type 'int*' [-Wformat=]
29 | scanf("%lld%lld" , &n , &m);
| ~~~^ ~~
| | |
| | int*
| long long int*
| %d
Aesthetic.cpp:30:41: warning: format '%lld' expects argument of type 'long long int*', but argument 2 has type 'int*' [-Wformat=]
30 | for(int i =0; i <m; ++i) scanf("%lld%lld%lld" , &au[i] , &av[i], &aw[i]);
| ~~~^ ~~~~~~
| | |
| | int*
| long long int*
| %d
Aesthetic.cpp:30:45: warning: format '%lld' expects argument of type 'long long int*', but argument 3 has type 'int*' [-Wformat=]
30 | for(int i =0; i <m; ++i) scanf("%lld%lld%lld" , &au[i] , &av[i], &aw[i]);
| ~~~^ ~~~~~~
| | |
| long long int* int*
| %d
Aesthetic.cpp:30:49: warning: format '%lld' expects argument of type 'long long int*', but argument 4 has type 'int*' [-Wformat=]
30 | for(int i =0; i <m; ++i) scanf("%lld%lld%lld" , &au[i] , &av[i], &aw[i]);
| ~~~^ ~~~~~~
| | |
| long long int* int*
| %d
Aesthetic.cpp:29:10: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
29 | scanf("%lld%lld" , &n , &m);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~
Aesthetic.cpp:30:36: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
30 | for(int i =0; i <m; ++i) scanf("%lld%lld%lld" , &au[i] , &av[i], &aw[i]);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~