prog.cpp:1:1: error: ‘ll’ does not name a type
ll check(string s, ll val) {
^~
prog.cpp: In function ‘void solve()’:
prog.cpp:11:5: error: ‘ll’ was not declared in this scope
ll n;
^~
prog.cpp:12:5: error: ‘cin’ was not declared in this scope
cin >> n;
^~~
prog.cpp:12:12: error: ‘n’ was not declared in this scope
cin >> n;
^
prog.cpp:13:5: error: ‘string’ was not declared in this scope
string s = "2";
^~~~~~
prog.cpp:13:5: note: suggested alternative: ‘struct’
string s = "2";
^~~~~~
struct
prog.cpp:15:11: error: expected ‘;’ before ‘val’
ll val = (1LL<<i);
^~~~
;
prog.cpp:16:9: error: ‘val’ was not declared in this scope
val = check(s, val);
^~~
prog.cpp:16:21: error: ‘s’ was not declared in this scope
val = check(s, val);
^
prog.cpp:16:15: error: ‘check’ was not declared in this scope
val = check(s, val);
^~~~~
prog.cpp:22:5: error: ‘cout’ was not declared in this scope
cout << s << '\n';
^~~~
prog.cpp:22:13: error: ‘s’ was not declared in this scope
cout << s << '\n';
^