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:13: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'long long int*' [-Wformat=]
29 | scanf("%d%d" , &n , &m);
| ~^ ~~
| | |
| int* long long int*
| %lld
Aesthetic.cpp:29:15: warning: format '%d' expects argument of type 'int*', but argument 3 has type 'long long int*' [-Wformat=]
29 | scanf("%d%d" , &n , &m);
| ~^ ~~
| | |
| int* long long int*
| %lld
Aesthetic.cpp:30:39: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'long long int*' [-Wformat=]
30 | for(int i =0; i <m; ++i) scanf("%d%d%d" , &au[i] , &av[i], &aw[i]);
| ~^ ~~~~~~
| | |
| int* long long int*
| %lld
Aesthetic.cpp:30:41: warning: format '%d' expects argument of type 'int*', but argument 3 has type 'long long int*' [-Wformat=]
30 | for(int i =0; i <m; ++i) scanf("%d%d%d" , &au[i] , &av[i], &aw[i]);
| ~^ ~~~~~~
| | |
| int* long long int*
| %lld
Aesthetic.cpp:30:43: warning: format '%d' expects argument of type 'int*', but argument 4 has type 'long long int*' [-Wformat=]
30 | for(int i =0; i <m; ++i) scanf("%d%d%d" , &au[i] , &av[i], &aw[i]);
| ~^ ~~~~~~
| | |
| int* long long int*
| %lld
Aesthetic.cpp:105:14: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long long int' [-Wformat=]
105 | printf("%d" ,ans);
| ~^ ~~~
| | |
| int long long int
| %lld
Aesthetic.cpp:29:10: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
29 | scanf("%d%d" , &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("%d%d%d" , &au[i] , &av[i], &aw[i]);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~