Borderou de evaluare (job #2422008)
Utilizator | Data | 16 mai 2019 21:38:14 | |
---|---|---|---|
Problema | Evaluarea unei expresii | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:10:5: error: 'int index' redeclared as different kind of symbol
int index;
^~~~~
In file included from /usr/include/c++/6/cstring:42:0,
from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:48,
from main.cpp:1:
/usr/include/string.h:477:1: note: previous declaration 'const char* index(const char*, int)'
index (const char *__s, int __c) __THROW
^~~~~
main.cpp: In function 'int Expresie()':
main.cpp:15:18: error: invalid types 'char [100007][<unresolved overloaded function type>]' for array subscript
while(S[index]=='+'||S[index]=='-')
^
main.cpp:15:33: error: invalid types 'char [100007][<unresolved overloaded function type>]' for array subscript
while(S[index]=='+'||S[index]=='-')
^
main.cpp:17:14: error: no post-increment operator for type
index++;
^~
main.cpp:18:19: error: invalid operands of types '<unresolved overloaded function type>' and 'int' to binary 'operator-'
if(S[index-1]=='+') r+=Termen();
~~~~~^~
main.cpp: In function 'int Termen()':
main.cpp:27:18: error: invalid types 'char [100007][<unresolved overloaded function type>]' for array subscript
while(S[index]=='/'||S[index]=='*')
^
main.cpp:27:33: error: invalid types 'char [100007][<unresolved overloaded function type>]' for array subscript
while(S[index]=='/'||S[index]=='*')
^
main.cpp:29:14: error: no post-increment operator for type
index++;
^~
main.cpp:30:19: error: invalid operands of types '<unresolved overloaded function type>' and 'int' to binary 'operator-'
if(S[index-1]=='/') r/=Factor();
~~~~~^~
main.cpp: In function 'int Factor()':
main.cpp:39:18: error: invalid types 'char [100007][<unresolved overloaded function type>]' for array subscript
while(S[index]=='-') sgn=-sgn,index++;
^
main.cpp:39:40: error: no post-increment operator for type
while(S[index]=='-') sgn=-sgn,index++;
^~
main.cpp:41:15: error: invalid types 'char [100007][<unresolved overloaded function type>]' for array subscript
if(S[index]=='(')
^
main.cpp:43:14: error: no post-increment operator for type
index++;
^~
main.cpp:45:14: error: no post-increment operator for type
index++;
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !