Problem rainbow
User chenweilian
Submission Time 2024-09-05 17:44:33
Score 0
Max Time N/A
Max Memory N/A

Compile Error

rainbow.cpp: In function ‘void init(long long int, long long int, long long int, long long int, long long int, char*)’:
rainbow.cpp:68:10: error: ‘al’ was not declared in this scope; did you mean ‘ll’?
68 | sort(al(pts));
| ^~
| ll
rainbow.cpp:74:46: error: a function-definition is not allowed here before ‘{’ token
74 | int colour(int ar, int ac, int br, int bc) {
| ^
rainbow.cpp:131:3: error: expected ‘}’ at end of input
131 | }
| ^
rainbow.cpp:54:57: note: to match this ‘{’
54 | void init(int R, int C, int sr, int sc, int M, char *S) {
| ^