Anna.cpp:4:18: error: expected initializer before 'll'
4 | typedef long ong ll;
| ^~
Anna.cpp:7:18: error: 'll' has not been declared
7 | void Anna(int N, ll X, int K, int P[]){
| ^~
Anna.cpp: In function 'void Anna(int, int, int, int*)':
Anna.cpp:9:5: error: 'll' was not declared in this scope
9 | ll curr=0;
| ^~
Anna.cpp:14:18: error: expected ')' before numeric constant
14 | Set(i 0);
| ~ ^~
| )
Anna.cpp:14:20: error: too few arguments to function 'void Set(int, int)'
14 | Set(i 0);
| ^
In file included from Anna.cpp:2:
Annalib.h:2:6: note: declared here
2 | void Set( int pos, int bit );
| ^~~
Anna.cpp:18:11: error: expected ';' before 'b1'
18 | ll b1=X & ((ll)1<<curr);
| ^~~
| ;
Anna.cpp:19:9: error: 'curr' was not declared in this scope
19 | curr++;
| ^~~~
Anna.cpp:20:11: error: expected ';' before 'b2'
20 | ll b2=X & ((ll)1<<curr);
| ^~~
| ;
Anna.cpp:22:10: error: 'b1' was not declared in this scope; did you mean 'y1'?
22 | (b1>0) ? Set(i+1, 1) : Set(1+2, 0);
| ^~
| y1
Anna.cpp:27:12: error: 'n' was not declared in this scope
27 | for(;i<n;i++) Set(i, 0);
| ^