Problem | modulochain |
---|---|
User | dacashew |
Submission Time | 2023-12-04 21:13:00 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
modulochain.cpp:74:49: error: expected ‘,’ or ‘...’ before ‘mod’
74 | __int128 multiply(__int128 x,__int128 y__int128 mod){
| ^~~
modulochain.cpp: In function ‘__int128 multiply(__int128, __int128)’:
modulochain.cpp:75:12: error: ‘y’ was not declared in this scope
75 | return (x*y)%mod;
| ^
modulochain.cpp:75:15: error: ‘mod’ was not declared in this scope; did you mean ‘modf’?
75 | return (x*y)%mod;
| ^~~
| modf
modulochain.cpp: In function ‘int main()’:
modulochain.cpp:93:64: error: too many arguments to function ‘__int128 multiply(__int128, __int128)’
93 | o2=(int)multiply((__int128)a[0],(__int128)a[n-1],(__int128)mod);
| ^
modulochain.cpp:74:10: note: declared here
74 | __int128 multiply(__int128 x,__int128 y__int128 mod){
|