Problem typicalstairs
User AltheaZ
Submission Time 2023-11-08 11:33:16
Score 0
Max Time N/A
Max Memory N/A

Compile Error

typicalstairs.cpp: In function ‘int main()’:
typicalstairs.cpp:5:2: error: ‘vector’ was not declared in this scope
5 | vector<int>a(100001);
| ^~~~~~
typicalstairs.cpp:2:1: note: ‘std::vector’ is defined in header ‘<vector>’; did you forget to ‘#include <vector>’?
1 | #include <iostream>
+++ |+#include <vector>
2 | using namespace std;
typicalstairs.cpp:5:9: error: expected primary-expression before ‘int’
5 | vector<int>a(100001);
| ^~~
typicalstairs.cpp:6:9: error: expected primary-expression before ‘int’
6 | vector<int>count(100001);
| ^~~
typicalstairs.cpp:10:8: error: ‘temp’ was not declared in this scope; did you mean ‘mktemp’?
10 | cin>>temp;
| ^~~~
| mktemp
typicalstairs.cpp:11:9: error: ‘a’ was not declared in this scope
11 | a[temp-1]=1;
| ^
typicalstair