Hallo, ich habe versucht ein login system in c++ zu machen, leider bin ich neuling in c++, und bekomme den LNK2019 Fehler und LNK1120 in der ersten Zeile (siehe Bild).

Ich hoffe ihr könnt mir helfen den Fehler los zu werden.
Code:
#include <iostream>
#include <fstream>
#include <string>
using namespace std;
bool IsLoggedIn()
{
string username, password, un, pw;
cout << "Enter Username: ";
cin >> username;
cout << "Enter Password: ";
cin >> password;
ifstream read("c:\\testfile.txt");
getline(read, un);
getline(read, pw);
if (un == username && pw == password)
{
return true;
}
else
{
return false;
}
}
int Main()
{
IsLoggedIn();
if (IsLoggedIn)
{
cout << "Successfully logged in!";
cin;
return 1;
}
else
{
cout << "False login!";
cin;
return 0;
}
}
Ich hoffe ihr könnt mir helfen den Fehler los zu werden.