记录详情

Compile Error

foo.cc: In function 'void solve()':
foo.cc:40:63: error: expected ')' before ';' token
  ans=(((a%MOD*(d%MOD)%MOD-(b%MOD*(c%MOD)%MOD+MOD)%MOD+MOD)%MOD;
                                                               ^
foo.cc:40:63: error: expected ')' before ';' token
foo.cc:41:13: error: 'mod' was not declared in this scope
  cout<<(((a%mod)*(d%mod) - (b%mod)*(c%mod))%mod+mod)%mod;
             ^~~
foo.cc:41:13: note: suggested alternative: 'modf'
  cout<<(((a%mod)*(d%mod) - (b%mod)*(c%mod))%mod+mod)%mod;
             ^~~
             modf
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P1289 B. It's my own Invention
语言
C++
递交时间
2021-11-23 18:09:43
评测时间
2021-11-23 19:00:57
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes