Borderou de evaluare (job #1156629)
Utilizator | Data | 27 martie 2014 20:14:51 | |
---|---|---|---|
Problema | Bcolor | Status | done |
Runda | Lista lui wefgef | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:14:14: error: ‘bool free [222]’ redeclared as different kind of symbol
bool free[222];
^
In file included from /usr/local/include/c++/4.8.0/cstdlib:72:0,
from /usr/local/include/c++/4.8.0/ext/string_conversions.h:41,
from /usr/local/include/c++/4.8.0/bits/basic_string.h:2817,
from /usr/local/include/c++/4.8.0/string:52,
from /usr/local/include/c++/4.8.0/bitset:47,
from user.cpp:2:
/usr/include/stdlib.h:488:13: error: previous declaration of ‘void free(void*)’
extern void free (void *__ptr) __THROW;
^
user.cpp: In function ‘int main()’:
user.cpp:52:15: warning: pointer to a function used in arithmetic [-Wpointer-arith]
free[i] = 1;
^
user.cpp:52:17: error: assignment of read-only location ‘*(free + ((sizetype)i))’
free[i] = 1;
^
user.cpp:52:17: error: cannot convert ‘int’ to ‘void(void*)throw ()’ in assignment
user.cpp:65:15: warning: pointer to a function used in arithmetic [-Wpointer-arith]
free[j] = 0;
^
user.cpp:65:17: error: assignment of read-only location ‘*(free + ((sizetype)j))’
free[j] = 0;
^
user.cpp:65:17: error: cannot convert ‘int’ to ‘void(void*)throw ()’ in assignment
user.cpp:81:19: warning: pointer to a function used in arithmetic [-Wpointer-arith]
if (free[i] && E[3][M - i + 1])
^
user.cpp:82:19: warning: pointer to a function used in arithmetic [-Wpointer-arith]
free[i] = 0;
^
user.cpp:82:21: error: assignment of read-only location ‘*(free + ((sizetype)i))’
free[i] = 0;
^
user.cpp:82:21: error: cannot convert ‘int’ to ‘void(void*)throw ()’ in assignment
user.cpp:84:19: warning: pointer to a function used in arithmetic [-Wpointer-arith]
if (free[i]) {
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !