Problem | snakecode |
---|---|
User | ThePwo |
Submission Time | 2023-09-25 15:13:34 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
snakecode.cpp:5:1: error: ‘F’ does not name a type
5 | F d[500005][2];
| ^
snakecode.cpp: In function ‘void code(int, std::string*, int*)’:
snakecode.cpp:37:2: error: ‘d’ was not declared in this scope
37 | d[0][0] = F(1, 1), d[0][1] = F(0, 1);
| ^
snakecode.cpp: In function ‘double query(int, int, int)’:
snakecode.cpp:57:12: error: ‘d’ was not declared in this scope
57 | F frac = (d[T][0] / d[S - 1][0]) * A + (d[T][1] - (d[T][0] / d[S - 1][0]) * d[S - 1][1]);
| ^
snakecode.cpp:58:46: error: expected ‘;’ before ‘}’ token
58 | return ((double) frac.n) / ((double) frac.d)
| ^
| ;
59 | }
| ~