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