Problem | globalwarming |
---|---|
User | Henries |
Submission Time | 2024-12-04 14:38:21 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
globalwarming.cpp: In function ‘int main()’:
globalwarming.cpp:28:13: error: type/value mismatch at argument 1 in template parameter list for ‘template<class _Tp, class _Alloc> class std::vector’
28 | vector<true> submerged(n);
| ^
globalwarming.cpp:28:13: note: expected a type, got ‘true’
globalwarming.cpp:28:13: error: template argument 2 is invalid
globalwarming.cpp:33:26: error: invalid types ‘int[long long int]’ for array subscript
33 | if (submerged[index-1] && submerged[index+1]){
| ^
globalwarming.cpp:33:48: error: invalid types ‘int[long long int]’ for array subscript
33 | if (submerged[index-1] && submerged[index+1]){
| ^
globalwarming.cpp:36:14: error: ‘n1’ was not declared in this scope; did you mean ‘n’?
36 | else if (n1 > height && n2 > height){
| ^~
|