Problem divisibility
User Reverberate
Submission Time 2024-03-08 19:02:31
Score 0
Max Time N/A
Max Memory N/A

Compile Error

divisibility.cpp: In function ‘int main()’:
divisibility.cpp:39:3: error: ‘ios_base’ has not been declared
39 | ios_base::sync_with_stdio(0);
| ^~~~~~~~
divisibility.cpp:40:3: error: ‘cin’ was not declared in this scope
40 | cin.tie(0);
| ^~~
divisibility.cpp:41:3: error: ‘cout’ was not declared in this scope
41 | cout.tie(0);
| ^~~~
divisibility.cpp:19:21: error: ‘memset’ was not declared in this scope
19 | #define setneg(arr) memset(arr, -1, sizeof(arr));
| ^~~~~~
divisibility.cpp:42:3: note: in expansion of macro ‘setneg’
42 | setneg(dp);
| ^~~~~~
divisibility.cpp:1:1: note: ‘memset’ is defined in header ‘<cstring>’; did you forget to ‘#include <cstring>’?
+++ |+#include <cstring>
1 | #define for0b(n) for (int i = n - 1; i >= 0; --i)
divisibility.cpp:44:3: error: ‘for0’ was not declared in this scope; did you mean ‘for0b