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 8286793
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T11:52:25+00:00 2026-06-08T11:52:25+00:00

This bundle of errors is caused by one function, and none of these errors

  • 0

This bundle of errors is caused by one function, and none of these errors are valid

error C2059: syntax error : '='
error C2143: syntax error : missing ';' before '{'
error C2181: illegal else without matching if
error C2660: 'Lexicon::convertOntology' : function does not take 0 arguments
string Lexicon::convertOntology(string input, int d, string out, string temp) // C2059; C2143
{
    if (in.length() == 0 && temp.length() == 0) {return out; //check for completed conversion //C2181
    } else {
        int r = 1;
        if (d == 1) r = 0; 
        if (in[0] == '.' || in[0] == '-' || in == "") { //found deliminator or end //C2059; C2143
            return convertOntology(in.substr(1), d, out+=vectorSearch(list, temp, 0, d, r), ""); //convert and check // C2143; C2660
        } else return convertOntology(in.substr(1), d, out, temp); //increment and check
    }
}

I did not place all the errors, they are repeated 14 times – it seems clear that these are not errors but is an issue with the compiler parsing the text; there is something upstream from this that is unmatched. I checked the previous function and checked the lines prior to where this function is called and found nothing.

How do I resolve these errors?

  • 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-08T11:52:26+00:00Added an answer on June 8, 2026 at 11:52 am

    First of all, you reference in throughout your function although you pass a variable called input.

    Secondly, you should also check this in[0] == '.' || in[0] == '-' || in == "" in another order, where you check for an empty string first. If the string is empty, your program will crash here when you try and access the first element [0]. Put in == "" first.

    Thirdly, list isn’t defined anywhere I can see, and it’s being used here, vectorSearch(list, temp, 0, d, r), "");

    Finally, eww. Please don’t write c++ like that. IMHO there is nothing wrong with excusing brackets for one line if statements, but try and make everything readable so the next person doesn’t want to blow their brains out trying to figure out what’s going on.

    string Lexicon::convertOntology(string input, int d, string out, string temp)
    {
      if (input.length() == 0 && temp.length() == 0) 
        return out; 
      else 
      {
        int r = 1;
        if (d == 1) 
          r = 0; 
        if (input[0] == '.' || input[0] == '-' || input == "") 
          return convertOntology(input.substr(1), d, out+=vectorSearch(list, temp, 0, d, r), "");
        else 
          return convertOntology(input.substr(1), d, out, temp);
      }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

12-27 16:57:11.711: E/AndroidRuntime(22081): Caused by: java.lang.ClassCastException: com.mygps.android.AlarmReceiver. This is one of my error in
We are getting following error when we try to validate our app. This bundle
This is probably an easy one and my difficulty is likely caused by my
While running the application I'm getting these errors 10-09 10:20:57.138: ERROR/AndroidRuntime(282): java.lang.RuntimeException: Unable to
I am getting this error: Caused by: java.lang.RuntimeException: Your content must have a ListView
I am struggling with this error: 08-08 11:42:53.179: E/AndroidRuntime(20288): Caused by: java.lang.InstantiationException: can't instantiate
I am using the new System.Web.Optimization and have created a bundle like this: bundles.Add(New
Is this possible to change bundle structure in Symfony 2, for example: MyBundle EntityName
At this time Textmate's official Python bundle is really bare bones, especially in comparison
I created a library bundle for commons-lang3 and this works well. I can build

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.