The Doubt is in the IDE itself

Just add
#define ll long long (after using namespace std;)
and then your code works.