0_0_15135422_9342.cpp:9:4: error: expected constructor, destructor, or type conversion before 'T'
ll T;
^
0_0_15135422_9342.cpp:10:4: error: expected constructor, destructor, or type conversion before 'D'
ll D;
^
0_0_15135422_9342.cpp:11:4: error: expected constructor, destructor, or type conversion before 's1'
ll s1,s2;
^
0_0_15135422_9342.cpp:12:11: error: expected initializer before 'low1bit'
inline ll low1bit(ll &x){
^
0_0_15135422_9342.cpp:15:11: error: expected initializer before 'low0bit'
inline ll low0bit(ll &x){
^
0_0_15135422_9342.cpp:8:14: error: expected unqualified-id before 'unsigned'
#define ull (unsigned __int64)
^
0_0_15135422_9342.cpp:18:8: note: in expansion of macro 'ull'
inline ull cnt1bits(ull x){
^
0_0_15135422_9342.cpp:8:14: error: expected ')' before 'unsigned'
#define ull (unsigned __int64)
^
0_0_15135422_9342.cpp:18:8: note: in expansion of macro 'ull'
inline ull cnt1bits(ull x){
^
0_0_15135422_9342.cpp: In function 'int main()':
0_0_15135422_9342.cpp:24:17: error: 'T' was not declared in this scope
scanf("%I64d",&T);
^
0_0_15135422_9342.cpp:24:18: error: 'scanf' was not declared in this scope
scanf("%I64d",&T);
^
0_0_15135422_9342.cpp:7:13: error: '__int64' was not declared in this scope
#define ll (__int64)
^
0_0_15135422_9342.cpp:25:2: note: in expansion of macro 'll'
ll mcase = 0;
^
0_0_15135422_9342.cpp:26:8: error: 'mcase' was not declared in this scope
while(mcase++<T){
^
0_0_15135422_9342.cpp:27:28: error: 'D' was not declared in this scope
scanf("%I64d%I64d%I64d",&D,&s1,&s2);
^
0_0_15135422_9342.cpp:27:31: error: 's1' was not declared in this scope
scanf("%I64d%I64d%I64d",&D,&s1,&s2);
^
0_0_15135422_9342.cpp:27:35: error: 's2' was not declared in this scope
scanf("%I64d%I64d%I64d",&D,&s1,&s2);
^
0_0_15135422_9342.cpp:29:6: error: expected ';' before 'tmpcnt'
ll tmpcnt = cnt1bits(D);
^
0_0_15135422_9342.cpp:30:11: error: 'tmpcnt' was not declared in this scope
while(!(tmpcnt>=s1 && tmpcnt<=s2)){
^
0_0_15135422_9342.cpp:32:17: error: 'low0bit' was not declared in this scope
D+=low0bit(D);
^
0_0_15135422_9342.cpp:35:17: error: 'low1bit' was not declared in this scope
D+=low1bit(D);
^
0_0_15135422_9342.cpp:37:23: error: 'cnt1bits' was not declared in this scope
tmpcnt = cnt1bits(D);
^
0_0_15135422_9342.cpp:39:40: error: 'printf' was not declared in this scope
printf("Case #%I64d: %I64d\n",mcase,D);
^
|