Problem battleship
User thenymphsofdelphi
Submission Time 2024-03-06 01:28:44
Score 0
Max Time N/A
Max Memory N/A

Compile Error

battleship.cpp: In function ‘FormalPowerSeries<ModInt<2> > find_irreducible_polynomial(int)’:
battleship.cpp:1073:36: error: ‘pi’ was not declared in this scope
1073 | while (not irreducibility_test(f, pi)){
| ^~
battleship.cpp: In function ‘auto int_to_poly(int, int)’:
battleship.cpp:1091:2: error: ‘fps’ was not declared in this scope; did you mean ‘ffs’?
1091 | fps ans(l);
| ^~~
| ffs
battleship.cpp:1093:3: error: ‘ans’ was not declared in this scope; did you mean ‘abs’?
1093 | ans[i] = (x >> i & 1);
| ^~~
| abs
battleship.cpp:1095:9: error: ‘ans’ was not declared in this scope; did you mean ‘abs’?
1095 | return ans;
| ^~~
| abs
battleship.cpp: At global scope:
battleship.cpp:1098:31: error: ‘fps’ does not name a type; did you mean ‘ffs’?
1098 | auto poly_to_int(int l, const fps& f){
|