In my code abs() isnt working but when put in a different code editor it does work. I dont know what to do. Cant find answers anywhere. Please help. Error: ("abs" is ambiguousC/C++(266))
#include <iostream>
#include <cstdlib>
using namespace std;
int main(){
    int x = -1;
    int a = abs(x);
    cout<< a;
}
 
     
     
    