Help me fix this code: Finding the missing number in the array
I'm trying to write a program where in you input 9 numbers from 1-10, then it determines the missing number. Here's my code. It has a lot of errors. Help me do the right structure. Maybe after that, I'll improve it by setting conditions like no repetition/ 0< number <10. Just help me to fix this first:
Code:
#include <iostream>
using namespace std;
int main()
{
int d[]={1,2,3,4,5,6,1,7,9,