rainbow.cpp:3:1: error: 'bitset' does not name a type
3 | bitset<3> was[200001];
| ^~~~~~
rainbow.cpp: In function 'void init(int, int, int, int, int, char*)':
rainbow.cpp:9:5: error: 'was' was not declared in this scope
9 | was[py][px]=1;
| ^~~
rainbow.cpp: In function 'int main()':
rainbow.cpp:52:27: error: 'R' was not declared in this scope
52 | scanf("%d %d %d %d", &R, &C, &M, &Q);
| ^
rainbow.cpp:52:31: error: 'C' was not declared in this scope
52 | scanf("%d %d %d %d", &R, &C, &M, &Q);
| ^
rainbow.cpp:52:35: error: 'M' was not declared in this scope
52 | scanf("%d %d %d %d", &R, &C, &M, &Q);
| ^
rainbow.cpp:52:39: error: 'Q' was not declared in this scope
52 | scanf("%d %d %d %d", &R, &C, &M, &Q);
| ^
rainbow.cpp:53:21: error: 'sr' was not declared in this scope
53 | scanf("%d %d", &sr, &sc);
| ^~
rainbow.cpp:53:26: error: 'sc' was not declared in this scope
53 | scanf("%d %d", &sr, &sc);
| ^~
rainbow.cpp:55:23: error: 'S' was not declared in this scope
55 | scanf(" %s ", S);
| ^
rainbow.cpp:58:27: error: 'S' was not declared in this scope
58 | init(R, C, sr, sc, M, S);
| ^
rainbow.cpp:63:14: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
63 | scanf("%d %d %d %d", &ar, &ac, &br, &bc);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~