Problem lis
User RandomCtfNoob
Submission Time 2025-02-12 16:09:03
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:6:10: error: cannot convert ‘std::vector<int>’ to ‘int’ in return
6 | return result;
| ^~~~~~
lis.cpp: In function ‘int main()’:
lis.cpp:29:67: error: expected primary-expression before ‘result’
29 | vector<int> dat = loopy(0,count,bignum,arr[0],arr,n,vector<int> result);
| ^~~~~~
lis.cpp:30:20: error: expected ‘;’ before ‘)’ token
30 | for (int ddd, dat){
| ^
| ;
lis.cpp:30:20: error: expected primary-expression before ‘)’ token
lis.cpp:30:20: error: expected ‘;’ before ‘)’ token
30 | for (int ddd, dat){
| ^
| ;