Problem lis
User RandomCtfNoob
Submission Time 2025-02-12 16:10:40
Score 0
Max Time N/A
Max Memory N/A

Compile Error

lis.cpp: In function ‘int loopy(int, int, int, int, int*, int, std::vector<int>)’:
lis.cpp:11:9: error: cannot convert ‘std::vector<int>’ to ‘int’ in return
11 | return result
| ^~~~~~
lis.cpp:11:15: error: expected ‘;’ before ‘}’ token
11 | return result
| ^
| ;
12 | }
| ~
lis.cpp: In function ‘int main()’:
lis.cpp:28:67: error: expected primary-expression before ‘result’
28 | vector<int> dat = loopy(0,count,bignum,arr[0],arr,n,vector<int> result);
| ^~~~~~
lis.cpp:29:20: error: expected ‘;’ before ‘)’ token
29 | for (int ddd, dat){
| ^
| ;
lis.cpp:29:20: error: expected primary-expression before ‘)’ token
lis.cpp:29:20: error: expected ‘;’ before ‘)’ token
29 | for (int ddd, dat){