Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8330793
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T02:13:21+00:00 2026-06-09T02:13:21+00:00

I am new to programming and I have been trying to create a program

  • 0

I am new to programming and I have been trying to create a program that would solve any Sudoku puzzle. However, I’ve been getting a lot of errors, and in this one I just can’t figure out what’s wrong.

This is the code where the error is:

for (short o = indice;o>=divergencias[n_diver];o--){
    N=historico[o];
    P=tabela[N];  //Line 205
    tabela[N]=0;  //Line 206
    }
    indice -= divergencias[n_diver];
    n_diver --;
    }

And the errors, which happened on the lines marked with comments, are:

C:\(...)\main.cpp|205|error: invalid conversion from 'short unsigned int*' to 'short unsigned int'|

and

C:\(...)\main.cpp|206|error: incompatible types in assignment of 'int' to 'short unsigned int [9]'|

I’ve been searching for this error, and didn’t find any satisfying answer to it. Moreover, the website in which I learn what I know about programming specifies that writing something like b = billy [a+2]; is valid. So I just can’t understand what’s wrong with this…

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T02:13:22+00:00Added an answer on June 9, 2026 at 2:13 am

    It looks like tabela is declared as short unsigned tabela[9][9]. In order to get an item of type unsigned short from it you have to provide two indexes, not one.

    On the other hand, if you are looking to get an entire sub-array from tabela, the left side of the assignment needs to be compatible with a 1-D array of unsigned short, for example, an unsigned short* pointer.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i am new kernel programming.i have been trying to load this driver program for
I am new to programming. I have been trying to write a function in
I am new to web programming...I have been asked to create a simple Internet
I have been trying to solve this Concurrent Programming exam exercise (in C#): Knowing
I am new to iPhone programming, however, I have been researching my problem for
I am new in c++ programming and I have been trying to convert from
I am new to Javascript (and programming in general) and have been trying to
I am new to Ajax programming and I have been told that there are
I am fairly new to DirectX 10 programming, and I have been trying to
I'm very much new to programming and have been doing fairly well so far.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.