Problem lightningrod
User Kiameimon
Submission Time 2024-03-25 21:24:51
Score 0
Max Time N/A
Max Memory N/A

Compile Error

lightningrod.cpp: In member function ‘void OY::IO::InputHelper::_reserve()’:
lightningrod.cpp:39:17: error: there are no arguments to ‘memmove’ that depend on a template parameter, so a declaration of ‘memmove’ must be available [-fpermissive]
39 | memmove(m_buf, m_cursor, a), m_cursor = m_buf;
| ^~~~~~~
lightningrod.cpp:39:17: note: (if you use ‘-fpermissive’, G++ will accept your code, but allowing the use of an undeclared name is deprecated)
lightningrod.cpp: In function ‘int main()’:
lightningrod.cpp:12:46: error: qualified-id in declaration before ‘(’ token
12 | #define cin OY::IO::InputHelper::get_instance()
| ^
lightningrod.cpp:237:6: note: in expansion of macro ‘cin’
237 | int cin >> n;
| ^~~
lightningrod.cpp:238:10: error: ‘n’ was not declared in this scope; did you mean ‘yn’?
238 | pii arr[n];
| ^