https://www.codechef.com/viewsolution/49777230
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
lcms=lcm(lcms,i->second);//cout<<lcms<<"\n";
^~~
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