Problem guanine
User Martin
Submission Time 2026-09-05 14:09:16
Score 0
Max Time N/A
Max Memory N/A

Compile Error

guanine.cpp: In function ‘void SNIP_BACK(int)’:
guanine.cpp:15:9: error: ‘dq’ was not declared in this scope
15 | dq.pop_back();
| ^~
guanine.cpp: In function ‘void SNIP_FRONT(int)’:
guanine.cpp:20:9: error: ‘dq’ was not declared in this scope
20 | dq.pop_front();
| ^~
guanine.cpp: In function ‘void QUERY(int)’:
guanine.cpp:24:17: error: return-statement with a value, in function returning ‘void’ [-fpermissive]
24 | return DNA[z];
| ^
guanine.cpp: In function ‘int main()’:
guanine.cpp:30:9: error: no match for ‘operator<<’ (operand types are ‘std::istream’ {aka ‘std::basic_istream<char>’} and ‘int’)
30 | cin << n;
| ~~~ ^~ ~
| | |
| | int
| std::istream {aka std::basic_istream<char>}
guanine.cpp:30:9: note: candidate: ‘operator<<(int, int)’ <built-in>
30