Problem | exponentiate_ex |
---|---|
User | dacashew |
Submission Time | 2023-12-04 21:12:55 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
exponentiate_ex.cpp:74:49: error: expected ‘,’ or ‘...’ before ‘mod’
74 | __int128 multiply(__int128 x,__int128 y__int128 mod){
| ^~~
exponentiate_ex.cpp: In function ‘__int128 multiply(__int128, __int128)’:
exponentiate_ex.cpp:75:12: error: ‘y’ was not declared in this scope
75 | return (x*y)%mod;
| ^
exponentiate_ex.cpp:75:15: error: ‘mod’ was not declared in this scope; did you mean ‘modf’?
75 | return (x*y)%mod;
| ^~~
| modf
exponentiate_ex.cpp: In function ‘int main()’:
exponentiate_ex.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);
| ^
exponentiate_ex.cpp:74:10: note: declared here
74 | __int128 multiply(__int128 x,__int128 y__in