Problem unluckyfloors
User TheGhostKing
Submission Time 2023-12-18 17:06:44
Score 0
Max Time N/A
Max Memory N/A

Compile Error

unluckyfloors.cpp: In function ‘long long int call(long long int, long long int, long long int)’:
unluckyfloors.cpp:25:20: error: request for member ‘size’ in ‘num’, which is of non-class type ‘long long int [20]’
25 | if (pos == num.size()){
| ^~~~
unluckyfloors.cpp: In function ‘long long int solve(long long int, bool)’:
unluckyfloors.cpp:60:23: error: request for member ‘back’ in ‘num’, which is of non-class type ‘long long int [20]’
60 | if (ck && num.back() == 4) return -1;
| ^~~~
unluckyfloors.cpp:61:29: error: request for member ‘back’ in ‘num’, which is of non-class type ‘long long int [20]’
61 | if (ck && ok && num.back() == 1) return -1;
| ^~~~
unluckyfloors.cpp:62:23: error: request for member ‘back’ in ‘num’, which is of non-class type ‘long long int [20]’
62 | if (ck && num.back() == 3) ok = true;
|