Can’t find the mistake…can anyone tell where I made the mistake

I can’t get this to compile on my machine:

rahul_mallick-ARRFILL.cpp: In function ‘void solve()’:
rahul_mallick-ARRFILL.cpp:26:14: error: ‘lcm’ was not declared in this scope

but what is this line supposed to be doing?

#define int64_t int
1 Like

Thanks . I found my mistake… actually it should be #define int int64_t instead .
And lcm is available from C++17 std::lcm in C++17 - GeeksforGeeks

1 Like