Problem | typicalstairs |
---|---|
User | thelusidian |
Submission Time | 2025-02-10 17:48:48 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
typicalstairs.cpp: In function ‘int main()’:
typicalstairs.cpp:34:16: error: lvalue required as left operand of assignment
34 | if (i=1 || i=2){
| ^
typicalstairs.cpp:41:28: error: ‘m’ was not declared in this scope
41 | for (long long int i=0; i<m; i++){
| ^
typicalstairs.cpp:43:30: error: too few arguments to function ‘std::vector<int> slicing(std::vector<int>&, int, int)’
43 | segments.push_back(slicing());
| ^
typicalstairs.cpp:6:13: note: declared here
6 | vector<int> slicing(vector<int>& arr,
| ^~~~~~~
typicalstairs.cpp:46:15: error: ‘arr’ was not declared in this scope
46 | for (int i : arr){
| ^~~
typicalstairs.cpp:47:11: error: expected primary-expression before ‘;’ token
47 | cout << ;
| ^
typicalstairs.cpp:49:1: error: