Those are called syntax errors: the compiler does not understand what you wrote, so it is trying to explain to you what you did wrong.
So start by looking at the error message, and at your code:
__tester__.cpp:5:8: error: expected constructor, destructor, or type conversion before '(' token
scanf("%d,%d",&nr1,&nr2);
That code - and the lines above it - is not inside a function declaration - and in C all executable code must be part of a function.
Probably, you wanted this:
#include <iostream>
#include <string>
int main()
{
int nr1,nr2;
scanf("%d,%d",&nr1,&nr2);
...
Fix that, and compile again. You will get different errors, becuase that code is full of syntax errors!
So read this:
How to Write Code to Solve a Problem, A Beginner's Guide Part 2: Syntax Errors[
^] and start looking error messages. Fix them one by one, and compile after each fix. You'll get there!
You should expect to get syntax errors every day, probably many times a day while you are coding - we all do regardless of how much experience we have! Sometimes, we misspell a variable, or a keyword; sometimes we forget to close a string or a code block. Sometimes the cat walks over your keyboard and types something really weird. Sometimes we just forget how many parameters a method call needs.
We all make mistakes.
And because we all do it, we all have to fix syntax errors - and it's a lot quicker to learn how and fix them yourself than to wait for someone else to fix them for you! So invest a little time in learning how to read error messages, and how to interpret your code as written in the light of what the compiler is telling you is wrong - it really is trying to be helpful!