Main.cc: In function ‘long long int nttd(long long int, long long int)’:
Main.cc:10:16: error: ‘max’ was not declared in this scope
for(ll i=1;i<=max(n,m);i++){
^~~
Main.cc:10:16: note: suggested alternative:
In file included from /usr/include/c++/7/algorithm:62:0,
from /usr/include/x86_64-linux-gnu/c++/7/bits/stdc++.h:65,
from Main.cc:1:
/usr/include/c++/7/bits/stl_algo.h:3468:5: note: ‘std::max’
max(initializer_list<_Tp> __l, _Compare __comp)
^~~