I am trying to set a global variable, but it is giving me errors:
"exp" is ambiguous
'exp': redefinition; previous definition was 'function'
I've searched this problem up but no one seems to be facing the same issue.
#include <string>
#include <windows.h>
using namespace std;
int level;
int exp;
void expBar()
{
    string bar = "--------------------";
    exp = 10;
    float progress = exp / bar.length();
    for (int i = 0; i < progress; i++)
    {
        bar[i] = '=';
    }
    cout << "[" << bar << "]";
}
