0_0_20974300_14488.cpp:29:60: error: stray '#' in program
if(n&1)ans=(pow_mod(2,n-1)-1)*pow_mod(3,mod-2)%mod+2;
^
0_0_20974300_14488.cpp:30:58: error: stray '#' in program
else ans=(pow_mod(2,n-1)-2)*pow_mod(3,mod-2)%mod+2;
^
0_0_20974300_14488.cpp:31:26: error: stray '#' in program
cout<<"Case #"<<++tt<<": "<<(ans%mod+mod)%mod<<endl;
^
0_0_20974300_14488.cpp:31:31: error: stray '#' in program
cout<<"Case #"<<++tt<<": "<<(ans%mod+mod)%mod<<endl;
^
0_0_20974300_14488.cpp:31:54: error: stray '#' in program
cout<<"Case #"<<++tt<<": "<<(ans%mod+mod)%mod<<endl;
^
0_0_20974300_14488.cpp: In function 'int main()':
0_0_20974300_14488.cpp:30:9: error: 'else' without a previous 'if'
else ans=(pow_mod(2,n-1)-2)*pow_mod(3,mod-2)%mod+2;
^
0_0_20974300_14488.cpp:31:27: error: lvalue required as unary '&' operand
cout<<"Case #"<<++tt<<": "<<(ans%mod+mod)%mod<<endl;
^
0_0_20974300_14488.cpp:31:32: error: lvalue required as unary '&' operand
cout<<"Case #"<<++tt<<": "<<(ans%mod+mod)%mod<<endl;
^
0_0_20974300_14488.cpp:31:39: error: invalid operands of types 'int' and 'const char [3]' to binary 'operator<<'
cout<<"Case #"<<++tt<<": "<<(ans%mod+mod)%mod<<endl;
^
0_0_20974300_14488.cpp:31:57: error: expected ')' before ';' token
cout<<"Case #"<<++tt<<": "<<(ans%mod+mod)%mod<<endl;
^
0_0_20974300_14488.cpp:31:61: error: expected ';' before ')' token
cout<<"Case #"<<++tt<<": "<<(ans%mod+mod)%mod<<endl;
^
|