paint.cpp: In function 'void __print(int)':
paint.cpp:5:22: error: 'cerr' was not declared in this scope
5 | void __print(int x) {cerr << x;}
| ^~~~
paint.cpp:2:1: note: 'std::cerr' is defined in header '<iostream>'; did you forget to '#include <iostream>'?
1 | #include "paint.h"
+++ |+#include <iostream>
2 | #pragma GCC optimize("O3", "unroll-loops")
paint.cpp: In function 'void __print(long long int)':
paint.cpp:6:28: error: 'cerr' was not declared in this scope
6 | void __print(long long x) {cerr << x;}
| ^~~~
paint.cpp:6:28: note: 'std::cerr' is defined in header '<iostream>'; did you forget to '#include <iostream>'?
paint.cpp: In function 'void __print(long double)':
paint.cpp:7:30: error: 'cerr' was not declared in this scope
7 | void __print(long double x) {cerr << x;}
| ^~~~
paint.cpp:7:30: note: 'std::cerr' is defined in header '<iostream>'; did you forget to '#include <iostream>'?
paint.cpp: In function 'void __print(char)':
paint.cpp:8:23: error: 'cerr' was not declared in this scope
8 | void __print(char x) {cerr << "'" << x << "'";}
| ^~~~
paint.cpp:8:23: note: 'std::cerr' is defined in header '<iostream>'; did you forget to '#include <iostream>'?
paint.cpp: In function 'void __print(const char*)':
paint.cpp:9:30: error: 'cerr' was not declared in this scope
9 | void __print(const char *x) {cerr << '"' << x << '"';}
| ^~~~
paint.cpp:9:30: note: 'std::cerr' is defined in header '<iostream>'; did you forget to '#include <iostream>'?
paint.cpp: At global scope:
paint.cpp:10:20: error: 'string' does not name a type
10 | void __print(const string &x) {cerr << '"' << x << '"';}
| ^~~~~~
paint.cpp: In function 'void __print(const int&)':
paint.cpp:10:32: error: 'cerr' was not declared in this scope
10 | void __print(const string &x) {cerr << '"' << x << '"';}
| ^~~~
paint.cpp:10:32: note: 'std::cerr' is defined in header '<iostream>'; did you forget to '#include <iostream>'?
paint.cpp: In function 'void __print(bool)':
paint.cpp:11:23: error: 'cerr' was not declared in this scope
11 | void __print(bool x) {cerr << (x ? "true" : "false");}
| ^~~~
paint.cpp:11:23: note: 'std::cerr' is defined in header '<iostream>'; did you forget to '#include <iostream>'?
paint.cpp: In function 'void __print(const std::pair<_T1, _T2>&)':
paint.cpp:14:36: error: 'cerr' was not declared in this scope
14 | void __print(const pair<T, V> &x) {cerr << '{'; __print(x.first); cerr << ", "; __print(x.second); cerr << '}';}
| ^~~~
paint.cpp:14:36: note: 'std::cerr' is defined in header '<iostream>'; did you forget to '#include <iostream>'?
paint.cpp: In function 'void __print(const T&)':
paint.cpp:16:38: error: 'cerr' was not declared in this scope
16 | void __print(const T &x) {int f = 0; cerr << '{'; for (auto &i: x) cerr << (f++ ? ", " : ""), __print(i); cerr << "}";}
| ^~~~
paint.cpp:16:38: note: 'std::cerr' is defined in header '<iostream>'; did you forget to '#include <iostream>'?
paint.cpp: In function 'void _print()':
paint.cpp:17:16: error: 'cerr' was not declared in this scope
17 | void _print() {cerr << "]\n";}
| ^~~~
paint.cpp:17:16: note: 'std::cerr' is defined in header '<iostream>'; did you forget to '#include <iostream>'?
paint.cpp: In function 'void _print(T, V ...)':
paint.cpp:19:57: error: 'cerr' was not declared in this scope
19 | void _print(T t, V... v) {__print(t); if (sizeof...(v)) cerr << ", "; _print(v...);}
| ^~~~
paint.cpp:19:57: note: 'std::cerr' is defined in header '<iostream>'; did you forget to '#include <iostream>'?
paint.cpp: In function 'int minimumInstructions(int, int, int, std::vector<int>, std::vector<int>, std::vector<std::vector<int> >)':
paint.cpp:83:13: error: 'max_element' was not declared in this scope
83 | int mx = *max_element(dp.begin(), dp.end());
| ^~~~~~~~~~~