Borderou de evaluare (job #2381029)
Utilizator | Data | 15 martie 2019 21:15:46 | |
---|---|---|---|
Problema | Ratina | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:13:30: error: 'ui index [11]' redeclared as different kind of symbol
ui n, m, p, l[NMAX], index[11];
^
In file included from /usr/include/c++/6/cstring:42:0,
from main.cpp:2:
/usr/include/string.h:477:1: note: previous declaration 'const char* index(const char*, int)'
index (const char *__s, int __c) __THROW
^~~~~
main.cpp: In function 'bool verifLen(ui)':
main.cpp:22:29: error: invalid types '<unresolved overloaded function type>[ui {aka unsigned int}]' for array subscript
if(hashTable[index[i]][len] != hashTable[index[i + 1]][len])
^
main.cpp:22:61: error: invalid types '<unresolved overloaded function type>[ui {aka unsigned int}]' for array subscript
if(hashTable[index[i]][len] != hashTable[index[i + 1]][len])
^
main.cpp: In function 'int main()':
main.cpp:59:34: error: invalid types '<unresolved overloaded function type>[ui {aka unsigned int}]' for array subscript
scanf("%d ", &index[j]);
^
main.cpp:60:35: error: invalid types '<unresolved overloaded function type>[ui {aka unsigned int}]' for array subscript
dr = min(dr, l[index[j]]);
^
main.cpp:31:35: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("ratina.in", "r", stdin);
^
main.cpp:32:36: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("ratina.out", "w", stdout);
^
main.cpp:35:26: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d\n", &n, &m);
^
main.cpp:37:19: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%s\n", S);
^
main.cpp:56:19: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d ", &p);
^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !