Problem | skyscraper_apio15 |
---|---|
User | ZivTheONe |
Submission Time | 2024-10-13 22:09:20 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
skyscraper_apio15.cpp:27:18: error: ‘S’ is not a type
27 | vector<bool> tb(S);//Power => Distance
| ^
skyscraper_apio15.cpp: In member function ‘void Solution::insQ(int, int, int)’:
skyscraper_apio15.cpp:38:28: error: invalid types ‘<unresolved overloaded function type>[int]’ for array subscript
38 | if (!towers[nxtT].tb[powa]){ //new power
| ^
skyscraper_apio15.cpp:39:24: error: invalid types ‘<unresolved overloaded function type>[int]’ for array subscript
39 | towers[nxtT].tb[powa] = 1;
| ^