stove.cpp: In function 'int main()':
stove.cpp:23:26: error: expected ';' before 'for'
23 | gaps.reserve(n-1)
| ^
| ;
24 |
25 | for(int i=0; i<n-1; i++)
| ~~~
stove.cpp:25:26: error: the value of 'n' is not usable in a constant expression
25 | for(int i=0; i<n-1; i++)
| ^
stove.cpp:9:9: note: 'int n' is not const
9 | int n,k;
| ^
stove.cpp:25:26: error: the value of 'n' is not usable in a constant expression
25 | for(int i=0; i<n-1; i++)
| ^
stove.cpp:9:9: note: 'int n' is not const
9 | int n,k;
| ^
stove.cpp:25:26: error: the value of 'n' is not usable in a constant expression
25 | for(int i=0; i<n-1; i++)
| ^
stove.cpp:9:9: note: 'int n' is not const
9 | int n,k;
| ^
stove.cpp:25:26: error: the value of 'n' is not usable in a constant expression
25 | for(int i=0; i<n-1; i++)
| ^
stove.cpp:9:9: note: 'int n' is not const
9 | int n,k;
| ^
stove.cpp:25:26: error: the value of 'n' is not usable in a constant expression
25 | for(int i=0; i<n-1; i++)
| ^
stove.cpp:9:9: note: 'int n' is not const
9 | int n,k;
| ^
stove.cpp:25:26: error: the value of 'n' is not usable in a constant expression
25 | for(int i=0; i<n-1; i++)
| ^
stove.cpp:9:9: note: 'int n' is not const
9 | int n,k;
| ^
stove.cpp:25:26: error: the value of 'n' is not usable in a constant expression
25 | for(int i=0; i<n-1; i++)
| ^
stove.cpp:9:9: note: 'int n' is not const
9 | int n,k;
| ^
stove.cpp:25:26: error: the value of 'n' is not usable in a constant expression
25 | for(int i=0; i<n-1; i++)
| ^
stove.cpp:9:9: note: 'int n' is not const
9 | int n,k;
| ^
stove.cpp:25:26: error: the value of 'n' is not usable in a constant expression
25 | for(int i=0; i<n-1; i++)
| ^
stove.cpp:9:9: note: 'int n' is not const
9 | int n,k;
| ^
stove.cpp:25:22: error: 'i' was not declared in this scope
25 | for(int i=0; i<n-1; i++)
| ^
stove.cpp:35:24: error: 'garps' was not declared in this scope; did you mean 'gaps'?
35 | sort(gaps.begin(), garps.end()m greater<long long>());
| ^~~~~
| gaps