Problem snakecode
User Celenium
Submission Time 2022-12-22 18:29:57
Score 0
Max Time N/A
Max Memory N/A

Compile Error

snakecode.cpp: In function ‘void code(int, std::string*, int*)’:
snakecode.cpp:6:5: error: ‘pref’ was not declared in this scope
6 | pref[0] = {0,1};
| ^~~~
snakecode.cpp: In function ‘double query(int, int, int)’:
snakecode.cpp:25:25: error: ‘pref’ was not declared in this scope
25 | long double thing = pref[S].first * (pref[T].second/pref[S].second);
| ^~~~