I am writing my program for the bullseye dartboard question I posted in another thread. The link is here. Anyways once I debug, it brings up 2 errors that read:

LNK2019 Error: unresolved external symbol _main referenced in function _tmainCRTStartup

and the file is MSVCRTD.lib

and the other error is:

fatal error LNK1120:1 unresolved externals

and the file is bullseye.exe

here is my code:

```
#include <iostream>
using namespace std;
#include <cmath>
#include <stdlib.h>
int score (float x, float y) { //Score function with 2 float arguments
//The following code finds the values of r and assigns them with points based on what the input is.
int r =sqrt(x*x+y*y);
if (r<=3){
return 100;
}
if (r<=6){
return 80;
}
if (r<=9){
return 60;
}
if (r<=12){
return 40;
}
if (r<=15){
return 20;
}else{
return 0;
}}
```

I would expect an error to come from sqrt or that formula since I havnt finished it yet. I am trying to get the formula for a circle, and score will get the x and y coordinates and then after some math, determine w/e value it will return (as shown in the code).

Keep in mind that I used to have another cpp file in the same source file but I recently removed it and put it in its own project.

If anyone has any idea why this happens please let me know!!!