Problem lis
User G
Submission Time 2025-02-26 13:40:01
Score 0
Max Time N/A
Max Memory N/A

Compile Error

lis.cpp: In function ‘int main()’:
lis.cpp:6:2: error: ‘ll’ was not declared in this scope
6 | ll n;cin>>n;
| ^~
lis.cpp:6:7: error: ‘cin’ was not declared in this scope
6 | ll n;cin>>n;
| ^~~
lis.cpp:2:1: note: ‘std::cin’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?
1 | #include <algorithm>
+++ |+#include <iostream>
2 | #include <vector>
lis.cpp:6:12: error: ‘n’ was not declared in this scope
6 | ll n;cin>>n;
| ^
lis.cpp:7:11: error: template argument 2 is invalid
7 | vector<ll> a(n);
| ^
lis.cpp:8:14: error: ‘begin’ was not declared in this scope; did you mean ‘std::begin’?
8 | for(auto &b:a)cin>>b;
| ^
| std::begin
In file included from /usr/include/c++/9/string:54,
from /usr/include/c++/9