Borderou de evaluare (job #2022502)
Utilizator | Data | 16 septembrie 2017 17:24:28 | |
---|---|---|---|
Problema | Frequent | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:23:25: error: ‘int index [20][400010]’ redeclared as different kind of symbol
int index[kMaxLog][kMaxN];
^
In file included from /usr/include/c++/4.8/cstring:42:0,
from user.cpp:7:
/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 ‘int& Index(int, int)’:
user.cpp:67:23: error: invalid types ‘<unresolved overloaded function type>[int]’ for array subscript
return index[i][j];
^
user.cpp: In function ‘void ReadInput()’:
user.cpp:54:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &K);
^
user.cpp:56:26: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%s", word);
^
user.cpp: In function ‘int& Index(int, int)’:
user.cpp:71:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !