Problem kmxorm
User Tyx2019
Submission Time 2023-11-27 00:33:15
Score 0
Max Time N/A
Max Memory N/A

Compile Error

kmxorm.cpp: In function ‘int main()’:
kmxorm.cpp:2:13: error: expected ‘,’ or ‘;’ before ‘long’
2 | #define int long long
| ^~~~
kmxorm.cpp:22:2: note: in expansion of macro ‘int’
22 | int ans=0;
| ^~~
kmxorm.cpp:111:20: error: ‘ans’ was not declared in this scope; did you mean ‘abs’?
111 | if(binrep[i]==0) ans+=(((1<<i)%mod)*num1)%mod;
| ^~~
| abs
kmxorm.cpp:112:8: error: ‘ans’ was not declared in this scope; did you mean ‘abs’?
112 | else ans+=(((X-num1)%mod)*((1<<i)%mod))%mod;
| ^~~
| abs
kmxorm.cpp:113:3: error: ‘ans’ was not declared in this scope; did you mean ‘abs’?
113 | ans%=mod;
| ^~~
| abs
kmxorm.cpp:126:2: error: ‘ans’ was not declared in this scope; did you mean ‘abs’?
126 | ans+=a-sumof1s;
| ^~~
| abs