Most voted "syntax-error" questions
In computer science, syntax errors are errors in the string syntax or tokens intended by the programming language that defined them. In languages compiled syntax errors occur strictly when compiling the program, which is prevented until all syntax errors are corrected.
Learn more…107 questions
Sort by count of
-
0
votes1
answer83
viewsSQL SUM() syntax error
I have the following scenario: A table of products (tbl_prods) that has among other fields the price of each product the type of products and the date of the transaction (dt_trns). The guys can be…
-
0
votes0
answers179
viewsError while returning JSON
I have a REST API that works correctly in my local environment but in production is cutting a portion of the return. {"status":"sucesso","data":{"return":"Inser\u00e7\u00e3o de lead efetuada com…
-
0
votes1
answer168
viewsCustom style for React ui material
I’m trying to use a custom Component, as the code below, but the same is giving error, someone can give me a light of why is the error happening? import React from 'react'; import {withStyles,…
-
0
votes1
answer49
viewsDoubt about methods
I am learning by the book Use the Head and in it there is the following code to do an exercise of random items public class Menu { public Random Randomico; string[] Carnes = { "Rosbife", "Salame",…
-
0
votes0
answers18
viewsFailed to create directory?
error: failed to create directory '\\?\D:\APLICATIVOS ANDROID\Aplicativos\Aplicativo VideoApp…
-
0
votes0
answers332
viewsHow to resolve Uninitialized string offset: 0 in error?
using a wordpress plugin Yoast ends up giving this error in some posts, a post that is giving error is the: https://www.escolaedti.com.br/indicadores-inadimplencia/amp/ in it we can see the message:…
-
0
votes1
answer243
viewsWhy does style return null?
Uncaught TypeError: Cannot read property 'style' of null at window.onload (main.js:7) Because the load object does not appear, it is null? window.onload = function() { load =…
-
0
votes0
answers52
viewsMistakes in Ruby come because?
Goal Add (Uri, url) with port. # Ajuda por carlos-romero # https://stackoverflow.com # Ajuda por mu-is-too-short # https://stackoverflow.com require 'uri' require 'socket' url = 'file://C://' class…
-
0
votes1
answer26
viewsUnidentified syntax error
Good afternoon. I’m trying to program in php (I’m new), and I created a connection with the bank, but when I try to download a data in my bank through my system, it presents the following error:…
-
0
votes2
answers69
viewsAndroid Studio does not recognize the getRating() method
When I try to use the getRating() method in the Formulariohelper class Android Studio informs that "Cannot resolve method 'getRating()'". I’m importing the package from View and Ratingbar and yet…
-
0
votes0
answers778
viewsTypeerror: this.props.user.map is not a Function - React Js
Hello, I’m training a little bit with the github api. I divided my component into a card (it has user information and etc) and in the view. I’m doing the fetchData in the view and rendering on a…
-
0
votes0
answers54
viewsJavascript Event Execution Error
I have a problem in Javascript that indicates that the line is in error, I compared with other codes but I see nothing different from other codes... HTML <script src="../js/contact.js"…
-
0
votes1
answer1201
views#1064 - You have a syntax error in your SQL next to 'DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci' on line 1
So guys, I exported a database from the school where I study only that I exported the database from an old mysql so it Gero another xml code for me and need to import it to a latest mysql it from…
-
0
votes1
answer454
viewsERROR: Object of class mysqli_result could not be converted to int
Hello! I am developing a site to buy a game that has a page to record the information of each purchase, among them, the amount of games purchased. I wanted that, during the saving of the…
-
0
votes0
answers634
viewsUnassigned local variable C#
Hello, I am at the beginning of my programming learning and I am having problems with this error "use of unassigned local variable" in the code below presents this error related to variable…
-
0
votes1
answer39
viewsProblem while uploading and converting.txt files
Every time I try to do the operation below I get a mistake: setwd('C:\\Users\\MatheuS\\Documents\\file') library(readr) fns = list.files(patt="\\.txt") sapply(fns, function(x){…
-
0
votes0
answers22
viewsSyntax error, Mysql trigger executed by php
Could someone please tell me where I’m going wrong with my Rigger’s creation Trigger $sql = "DELIMITER $$ CREATE TRIGGER produtos_movto_insert AFTER INSERT ON produtos_movto FOR EACH ROW BEGIN IF…
-
0
votes2
answers419
viewsPython project and Tkinter menu
Well my little project with python and the Tkinter library , I’m trying to make a registration system but I’m a little new in this part of object orientation in python, and I think this is the part…
-
0
votes0
answers322
viewsMYSQL ERROR 1442, how to resolve?
After inserting in "banco1.customers" I want to insert the same content in "banco2.Customers", but error appears. I saw that Mysql does not allow two operations in the same table, but they are…
-
0
votes0
answers52
viewsSQL ERROR 1442. What can it be?
The error appears when I try to insert something in bank 3, because Trigger will be activated and will insert in bank2, but I am not performing 2 shares in the same table as the error tells...…
-
0
votes1
answer175
viewsWhy is the expected " SCRIPT1004: ';' error" generated when running the application in Internet Explorer?
I recently created a Javascript application that works perfectly in the browser Chrome and yesterday I decided to test it on Internet Explorer. To my surprise, the page was not the way it should be…
-
0
votes1
answer142
viewsstruct function parameters
I am making a code that calculates the sum and subtraction of complex numbers, however, I cannot find the error to compile. #include<stdio.h> #include<math.h> typedef struct NI { float…
-
0
votes1
answer217
viewsParsing error: Unexpected token React
The error appears in this.converter = this.converter.bind(this); My script: import React, { Component } from 'react' export default class conversor extends Component { constructor(props){…
-
0
votes1
answer93
viewsThis method must Return a result of type int[][]
I’m trying to do this matrix multiplication function but it’s giving error. Shows that the error is mult(int row, int column, int Linha2, int column2, int[][] matrix, int[][] matriz2) and says 'This…
-
0
votes0
answers61
viewsFatal error: Uncaught Error: [] Operator not supported for strings in
Hello. I have a options with custom fields in a form. I’m getting the Fatal error: Uncaught Error: [] operator not supported for strings I have read that [] is an operator no longer allowed after…
-
0
votes1
answer49
viewsCan someone help me with this exercise?
EXERCISE: Write a function that returns the number of the team that is in the lead. Leadership is determined by the team that has the most points won. If one or more teams have the same number of…
-
0
votes0
answers59
viewsProgram that Tells how many repeated numbers you have in the column and row of an array
To simplify, I have to make this ex: **Write a program that reads two sequences of ten integer numbers and prints on screen how many of these numbers are present in the two sequences and how many…
-
0
votes1
answer33
viewsUPDATE WITH CASE DOESN’T WORK
I am working with a bunch of data (Postgres) on vestibular and I was looking to do an update joining two tables and using UPDATE CASE WHEN THEN. I was relating the two tables through their ids and…
-
0
votes1
answer341
viewsWhat does this error mean and how to fix it: Eoferror: EOF when Reading a line?
The code I was testing worked perfectly in the visual studio, however, by submitting on one of these sites similar to the URI, that error appeared. I know it is a line reading error, but I could not…
-
0
votes0
answers10
viewsI installed the new R version 4.0.4 (Lost Library Book) and the program is not recognizing the BETA symbol
I’m running some data with names of chemicals, and some have the beta symbol, as well as alpha, however the new version of R (4.0.4) is not identifying the beta symbol and returns this message in…
syntax-errorasked 3 years, 8 months ago Paulo Vinícius da Silva Santos 1 -
0
votes0
answers14
viewserror in ultrasonic sensor
I’ve tried several times to find the problem but I’m a layman in scaring yet and the following error keeps reproducing expected primary-expression before 'convert' if someone knows how to solve and…
-
0
votes1
answer50
viewsHow to resolve Qobject::connect: Cannot Queue Arguments of type 'Qvector<int>' error in Pyqt5 using threading to update Gui interface
Good night, I’m a beginner in the python area, and I’m having a hard time threading along with a Gui interface, created in QT Desegner. Talking to some friends showed me this forum, because maybe…
-
0
votes1
answer20
viewserror: non-static variable this cannot be referenced from a Static context / Java 8
I am doing a URI (online Judge) exercise but is showing "Compilation error" due to error: Main.java:8: error: non-static variable this cannot be referenced from a Static context Interfacetext i =…
-
-1
votes1
answer900
viewsThe program is not reading the matrix numbers
I’m doing exercises on Uri online Judge, this asks: In this problem you should read a number, indicating a row of the matrix on which an operation must be performed, a capital character, indicating…
-
-1
votes1
answer122
viewsProblem with passing parameters/return of function matrices in C
I’m having a problem with a job I have to do in C consisting of, get the inverse matrix through the adjunct matrix. So far this is what I’ve been able to produce in C# and then tried to rewrite in…
-
-1
votes1
answer280
viewsSyntax error in mathematical equation (pyflakes E)
The code below, written in python, has syntax error in the equation Ff. I searched for problems related to closing the parentheses, rewrote the equation and still get the error message. While…
-
-1
votes1
answer26
viewsPHP code error
Good night! Sorry, I know I should try to learn PHP to solve my doubts, but I believe that to solve the doubt I have it would take a lot of time that I do not have now. I am decrypting a PHP code…
-
-1
votes1
answer243
viewsNameerror: name is not defined for initialized vector, how to tidy?
I’m making a program to calculate a certain time, with a probability of something happening and going wrong, but I’m getting Nameerror: name 'tempo_ida' is not defined variable h is defined as 0.…
-
-1
votes1
answer63
viewsProgram in C compiles but shows error in Output
#include <stdio.h> #include <stdlib.h> #include <locale.h> float bonus_a_receber(float salario, float perc){ float a_pagar; a_pagar = (salario * perc) / 100; return a_pagar; } int…
-
-1
votes1
answer190
viewsRepeat structure within the selection in visualg
Function :Write a program that creates an initially zeroed vector and insert a value into the vector at an informed position. For example, for the empty vector v = { }, position 4 and value 10, the…
-
-1
votes1
answer184
viewsCan you help me?
I am with a project to be done, the project itself consists of creating an sql script based on entity model and relationship, the booklet itself is not very well formulated and based on what I…
-
-1
votes3
answers319
viewsBuild error in C++
I need to make a loop (Repeat-Until), but is giving error. #include <iostream> #include <cstdlib> using namespace std; int main (void){ char deseja=1, valordomes1, valordomes2,…
-
-1
votes1
answer184
viewsSyntaxerror: Unexpected Identifier 'Promise'
My page is giving the following error: Syntaxerror: Unexpected Identifier 'Promise'. Expected either a closing ']' or a ',' following an array element. This is my Javascript code: var myVar;…
-
-1
votes1
answer1186
viewsHow to remove "Uncaught Syntaxerror: Unexpected end of input" from Javascript
I am running a script on the Google console and get the error "Uncaught Syntaxerror: Unexpected end of input". I did not find the syntax error of this code, I searched in previous questions, here…
-
-1
votes1
answer33
viewsCreate a column with case_when with ranges error appears
I have this database and I intend to create a new column with this structuring (see image). For example, if the row in the Calendar_week column has a value between 36 and 45 the new Quartile column…
-
-1
votes1
answer31
viewsre-act giving error
I am making a form in React and this giving this error ''' ''' TypeError: Cannot read property 'name' of undefined UserCrud.updateField 48 | 49 | updateField(event) { 50 | const user = {…
-
-1
votes1
answer27
viewsI’m trying to create a form using PHP with PDO database
When I put the information in the form and click to insert the following error appears: SQLSTATE[42000]: Syntax error or access Violation: 1064. Code below: php connection. <?php…
-
-1
votes1
answer36
viewsProgram stopping working in C
Hello, I am having a problem with a code of mine in C. It is a work for college and the code is simple, it is a script to receive data (users and products), sell the products and list existing…
-
-1
votes0
answers27
viewsSyntaxerror: invalid syntax (python and pycharm)
I don’t know why you made a mistake in pycharm, how can I fix it? I used the following libraries import pandas as pd import yfinance as yf import datetime import lxml from kora.selenium import wd…
-
-2
votes2
answers139
viewsam starting with React Nturn on and always give me this error cant find variable:Component
index.js import {AppRegistry} from 'react-native' import App from './app' import {name as appName} from './app.json' AppRegistry.registerComponent(appName,() => App) app.js import…
syntax-errorasked 5 years, 2 months ago Victor Pereira 1