Problem typicalstairs
User wtnetlegend
Submission Time 2025-03-13 09:15:44
Score 0
Max Time N/A
Max Memory N/A

Compile Error

typicalstairs.cpp: In function ‘int ans(std::vector<int>&, int)’:
typicalstairs.cpp:4:10: error: ‘v’ was not declared in this scope
4 | int m = v.size();
| ^
typicalstairs.cpp:18:12: error: a function-definition is not allowed here before ‘{’ token
18 | int main (){
| ^
typicalstairs.cpp:26:1: error: expected ‘}’ at end of input
26 | }
| ^
typicalstairs.cpp:3:36: note: to match this ‘{’
3 | int ans(vector<int> &broken, int n){
| ^