Problem soos
User eulerleonhardfan
Submission Time 2023-04-06 10:01:00
Score 0
Max Time N/A
Max Memory N/A

Compile Error

soos.cpp: In function ‘int32_t main()’:
soos.cpp:20:16: error: ‘m’ cannot be used as a function
20 | int x = m(m-1)/2, r = 1, y = 2;
| ^
soos.cpp:23:7: error: ‘r’ was not declared in this scope
23 | r = r*y%mod;
| ^
soos.cpp:23:13: error: ‘y’ was not declared in this scope
23 | r = r*y%mod;
| ^
soos.cpp:25:5: error: ‘y’ was not declared in this scope
25 | y = y*y%mod;
| ^
soos.cpp:28:13: error: ‘r’ was not declared in this scope
28 | cout << 3*r%mod-1;
| ^