Colors.cpp: In function 'int main()':
Colors.cpp:18:5: error: 'reverse' was not declared in this scope
18 | reverse(v.begin(), v.end());
| ^~~~~~~
Colors.cpp:10:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
10 | scanf("%d", &n);
| ~~~~~^~~~~~~~~~
Colors.cpp:25:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
25 | scanf("%*d");
| ~~~~~^~~~~~~
Colors.cpp:33:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
33 | scanf("%d", &t);
| ~~~~~^~~~~~~~~~
Colors.cpp:40:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
40 | scanf("%d", &t);
| ~~~~~^~~~~~~~~~