Problem lis
User joxi
Submission Time 2024-01-13 19:25:32
Score 0
Max Time N/A
Max Memory N/A

Compile Error

lis.cpp:5:5: error: cannot declare ‘::main’ to be a global variable
5 | int main {
| ^~~~
lis.cpp:6:2: error: expected primary-expression before ‘int’
6 | int n ; cin >> n;
| ^~~
lis.cpp:6:2: error: expected ‘}’ before ‘int’
lis.cpp:5:10: note: to match this ‘{’
5 | int main {
| ^
lis.cpp:6:10: error: ‘cin’ does not name a type; did you mean ‘sin’?
6 | int n ; cin >> n;
| ^~~
| sin
lis.cpp:7:2: error: expected unqualified-id before ‘for’
7 | for(int i=0; i<n;i++){
| ^~~
lis.cpp:7:15: error: ‘i’ does not name a type
7 | for(int i=0; i<n;i++){
| ^
lis.cpp:7:19: error: ‘i’ does not name a type
7 | for(int i=0; i<n;i++){
| ^
lis.cpp:17:2: error: ‘cout’ does not name a type
17 | cout << b.size();
| ^~~~
lis.cpp:18:1: error: expected