Problem lis_easy
User AwkUngenially
Submission Time 2025-04-06 20:42:47
Score 0
Max Time N/A
Max Memory N/A

Compile Error

lis_easy.cpp: In function ‘int main()’:
lis_easy.cpp:14:12: error: expected ‘,’ or ‘;’ before ‘=’ token
14 | int p(i) = 0;
| ^
lis_easy.cpp:20:4: error: ‘p’ was not declared in this scope
20 | p(i) = 1;
| ^
lis_easy.cpp:24:18: error: ‘p’ was not declared in this scope
24 | z.push_back(p(j));
| ^
lis_easy.cpp:29:5: error: ‘p’ was not declared in this scope
29 | p(i) = 1;
| ^
lis_easy.cpp:31:5: error: ‘p’ was not declared in this scope
31 | p(i) = z.back() + 1;
| ^
lis_easy.cpp:34:15: error: ‘p’ was not declared in this scope
34 | v.push_back(p(i));
| ^
lis_easy.cpp:37:7: error: no match for ‘operator<<’ (operand types are ‘std::ostream’ {aka ‘std::basic_ostream<char>’} and ‘__gnu_cxx::__normal_iterator<int*, std::vector<int> >’)
37 | cout << max_element(v.begin(),v.end(