Borderou de evaluare (job #1477480)
Utilizator | Data | 26 august 2015 13:36:10 | |
---|---|---|---|
Problema | Perle | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:13:8: error: ‘int index’ redeclared as different kind of symbol
int N, index, ok;
^
In file included from /usr/include/c++/4.8/cstring:42:0,
from user.cpp:5:
/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 back2(char*, char*)’:
user.cpp:36:35: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
back2( "C", p + 7 );
^
user.cpp:44:36: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
back2( "BC", p + 1 );
^
user.cpp: In function ‘void solve()’:
user.cpp:66:23: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
back2( "A", p );
^
user.cpp:70:27: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
back2( "B", p );
^
user.cpp:73:31: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
back2( "C", p );
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !