Borderou de evaluare (job #1584666)

Utilizator iordache.bogdanIordache Ioan-Bogdan iordache.bogdan Data 30 ianuarie 2016 12:53:47
Problema Inversari Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:33:5: error: ‘int index’ redeclared as different kind of symbol int index = 0; ^ In file included from /usr/include/c++/4.8/cstring:42:0, from user.cpp:2: /usr/include/string.h:482:1: error: previous declaration of ‘const char* index(const char*, int)’ index (__const char *__s, int __c) __THROW ^ user.cpp: In function ‘void read(int&)’: user.cpp:39:21: error: invalid types ‘char [4000000][<unresolved overloaded function type>]’ for array subscript while (buffer[index] < '0' || buffer[index] > '9') { ^ user.cpp:39:44: error: invalid types ‘char [4000000][<unresolved overloaded function type>]’ for array subscript while (buffer[index] < '0' || buffer[index] > '9') { ^ user.cpp:40:5: error: no pre-increment operator for type ++index; ^ user.cpp:41:23: error: invalid operands of types ‘<unresolved overloaded function type>’ and ‘int’ to binary ‘operator==’ if (index == bmax - 1) { ^ user.cpp:43:10: error: overloaded function with no contextual type information index = 0; ^ user.cpp:47:21: error: invalid types ‘char [4000000][<unresolved overloaded function type>]’ for array subscript while (buffer[index] >= '0' && buffer[index] <= '9') { ^ user.cpp:47:45: error: invalid types ‘char [4000000][<unresolved overloaded function type>]’ for array subscript while (buffer[index] >= '0' && buffer[index] <= '9') { ^ user.cpp:48:29: error: invalid types ‘char [4000000][<unresolved overloaded function type>]’ for array subscript a = a * 10 + (buffer[index] - '0'); ^ user.cpp:49:5: error: no pre-increment operator for type ++index; ^ user.cpp:50:23: error: invalid operands of types ‘<unresolved overloaded function type>’ and ‘int’ to binary ‘operator==’ if (index == bmax - 1) { ^ user.cpp:52:10: error: overloaded function with no contextual type information index = 0; ^

Ceva nu functioneaza?