Borderou de evaluare (job #2102280)
Utilizator | Data | 8 ianuarie 2018 16:51:15 | |
---|---|---|---|
Problema | Search | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘int solve(int, char)’:
user.cpp:60:5: error: reference to ‘index’ is ambiguous
if(index == 0)
^
In file included from /usr/include/c++/4.8/cstring:42:0,
from user.cpp:4:
/usr/include/string.h:482:1: note: candidates are: const char* index(const char*, int)
index (__const char *__s, int __c) __THROW
^
/usr/include/string.h:476:1: note: char* index(char*, int)
index (char *__s, int __c) __THROW
^
user.cpp:20:6: note: int {anonymous}::index
int index = -1;
^
user.cpp:68:13: error: reference to ‘index’ is ambiguous
match[i][index] = p[i][c - 'a'];
^
In file included from /usr/include/c++/4.8/cstring:42:0,
from user.cpp:4:
/usr/include/string.h:482:1: note: candidates are: const char* index(const char*, int)
index (__const char *__s, int __c) __THROW
^
/usr/include/string.h:476:1: note: char* index(char*, int)
index (char *__s, int __c) __THROW
^
user.cpp:20:6: note: int {anonymous}::index
int index = -1;
^
user.cpp:75:7: error: reference to ‘index’ is ambiguous
if(index < l[i] && p[i][c - 'a'] != -1 && match[i][index - 1] != -1)
^
In file included from /usr/include/c++/4.8/cstring:42:0,
from user.cpp:4:
/usr/include/string.h:482:1: note: candidates are: const char* index(const char*, int)
index (__const char *__s, int __c) __THROW
^
/usr/include/string.h:476:1: note: char* index(char*, int)
index (char *__s, int __c) __THROW
^
user.cpp:20:6: note: int {anonymous}::index
int index = -1;
^
user.cpp:75:55: error: reference to ‘index’ is ambiguous
if(index < l[i] && p[i][c - 'a'] != -1 && match[i][index - 1] != -1)
^
In file included from /usr/include/c++/4.8/cstring:42:0,
from user.cpp:4:
/usr/include/string.h:482:1: note: candidates are: const char* index(const char*, int)
index (__const char *__s, int __c) __THROW
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !