'Why error: Redefinition; previous definition of y0 was ‘function’?

The only thing written in the code are:

#include <iostream>
using namespace std;


int x0, y0;

And it’s giving me an error when I compile: ‘y0’: redefinition; previous definition was ‘function’



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source