Borderou de evaluare (job #2790454)

Utilizator mihaipriboimihailucapriboi mihaipriboi Data 29 octombrie 2021 00:06:07
Problema Evaluarea unei expresii Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:8:5: error: 'int index' redeclared as different kind of entity 8 | int index; | ^~~~~ 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:3: /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 'int factor()': main.cpp:16:8: error: invalid types 'char [100000][<unresolved overloaded function type>]' for array subscript 16 | if( s[index] == '(' ) { | ^ main.cpp:17:10: error: no post-increment operator for type 17 | index++; | ^~ main.cpp:19:10: error: no post-increment operator for type 19 | index++; | ^~ main.cpp:22:13: error: invalid types 'char [100000][<unresolved overloaded function type>]' for array subscript 22 | while( s[index] >= '0' && s[index] <= '9' ) | ^ main.cpp:22:32: error: invalid types 'char [100000][<unresolved overloaded function type>]' for array subscript 22 | while( s[index] >= '0' && s[index] <= '9' ) | ^ main.cpp:23:29: error: no post-increment operator for type 23 | nr = nr * 10 + s[index++] - '0'; | ^~ main.cpp: In function 'int inmultire()': main.cpp:33:11: error: invalid types 'char [100000][<unresolved overloaded function type>]' for array subscript 33 | while( s[index] == '*' || s[index] == '/' ) { | ^ main.cpp:33:30: error: invalid types 'char [100000][<unresolved overloaded function type>]' for array subscript 33 | while( s[index] == '*' || s[index] == '/' ) { | ^ main.cpp:34:16: error: no post-increment operator for type 34 | if( s[index++] == '*' ) | ^~ main.cpp: In function 'int adunare()': main.cpp:47:11: error: invalid types 'char [100000][<unresolved overloaded function type>]' for array subscript 47 | while( s[index] == '+' || s[index] == '-' ) { | ^ main.cpp:47:30: error: invalid types 'char [100000][<unresolved overloaded function type>]' for array subscript 47 | while( s[index] == '+' || s[index] == '-' ) { | ^ main.cpp:48:16: error: no post-increment operator for type 48 | if( s[index++] == '+' ) | ^~ main.cpp: In function 'int main()': Non zero exit status: 1

Ceva nu functioneaza?