0_0_30712402_28485.cpp:37:12: error: expected '}' at end of input
return ans
^
0_0_30712402_28485.cpp: In constructor 'Magic::Magic(unsigned int)':
0_0_30712402_28485.cpp:17:26: error: class 'Magic' does not have any field named 'state'
Magic(unsigned state): state(state), ans(0) {}
^
0_0_30712402_28485.cpp:17:40: error: class 'Magic' does not have any field named 'ans'
Magic(unsigned state): state(state), ans(0) {}
^
0_0_30712402_28485.cpp: In member function 'long long unsigned int Magic::retrieve()':
0_0_30712402_28485.cpp:21:5: error: 'state' was not declared in this scope
state = ((unsigned long long) state * mul + ans) % modulo;
^
0_0_30712402_28485.cpp:21:49: error: 'ans' was not declared in this scope
state = ((unsigned long long) state * mul + ans) % modulo;
^
0_0_30712402_28485.cpp: In member function 'void Magic::submit(unsigned int)':
0_0_30712402_28485.cpp:33:5: error: 'ans' was not declared in this scope
ans = ans * mul + k;
^
0_0_30712402_28485.cpp: In member function 'unsigned int Magic::retrieveAns()':
0_0_30712402_28485.cpp:37:12: error: 'ans' was not declared in this scope
return ans
^
0_0_30712402_28485.cpp:37:12: error: expected ';' at end of input
0_0_30712402_28485.cpp:37:12: error: expected '}' at end of input
0_0_30712402_28485.cpp: At global scope:
0_0_30712402_28485.cpp:37:12: error: expected unqualified-id at end of input
|