paint.cpp:65:6: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
65 | main()
| ^
paint.cpp: In function 'void solve()':
paint.cpp:45:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
45 | scanf("%d",&a[i]);
| ~~~~~^~~~~~~~~~~~
paint.cpp:51:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
51 | scanf("%d",&i);
| ~~~~~^~~~~~~~~
paint.cpp:52:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
52 | scanf("%d",&i);
| ~~~~~^~~~~~~~~
paint.cpp:53:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
53 | scanf("%d",&c);
| ~~~~~^~~~~~~~~