Borderou de evaluare (job #2862209)
Utilizator | Data | 5 martie 2022 00:15:59 | |
---|---|---|---|
Problema | Evaluarea unei expresii | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:6:5: error: 'int index' redeclared as different kind of entity
6 | int index = 0;
| ^~~~~
In file included from /usr/include/string.h:432,
from /usr/include/c++/10/cstring:42,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:48,
from main.cpp:1:
/usr/include/strings.h:61:1: note: previous declaration 'const char* index(const char*, int)'
61 | index (const char *__s, int __c) __THROW
| ^~~~~
main.cpp: In function 'long long int expresie()':
main.cpp:14:17: error: invalid types 'char [100002][<unresolved overloaded function type>]' for array subscript
14 | if(isdigit(s[index]))
| ^
main.cpp:17:24: error: invalid types 'char [100002][<unresolved overloaded function type>]' for array subscript
17 | while(isdigit(s[index]))
| ^
main.cpp:19:30: error: invalid types 'char [100002][<unresolved overloaded function type>]' for array subscript
19 | nr = nr * 10 + (s[index] - '0');
| ^
main.cpp:20:18: error: no post-increment operator for type
20 | index++;
| ^~
main.cpp:24:14: error: invalid types 'char [100002][<unresolved overloaded function type>]' for array subscript
24 | else if(s[index] == '(')
| ^
main.cpp:26:14: error: no post-increment operator for type
26 | index++;
| ^~
main.cpp:29:14: error: no post-increment operator for type
29 | index++;
| ^~
main.cpp: In function 'long long int produs()':
main.cpp:37:12: error: invalid types 'char [100002][<unresolved overloaded function type>]' for array subscript
37 | while(s[index] == '*' || s[index] == '/')
| ^
main.cpp:37:31: error: invalid types 'char [100002][<unresolved overloaded function type>]' for array subscript
37 | while(s[index] == '*' || s[index] == '/')
| ^
main.cpp:39:13: error: invalid types 'char [100002][<unresolved overloaded function type>]' for array subscript
39 | if(s[index] == '*')
| ^
main.cpp:41:18: error: no post-increment operator for type
41 | index++;
| ^~
main.cpp:44:18: error: invalid types 'char [100002][<unresolved overloaded function type>]' for array subscript
44 | else if(s[index] == '/')
| ^
main.cpp:46:18: error: no post-increment operator for type
46 | index++;
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !