Borderou de evaluare (job #979032)
Utilizator | Data | 31 iulie 2013 10:27:16 | |
---|---|---|---|
Problema | Tproc | Status | done |
Runda | Lista lui wefgef | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘void readInputData()’:
user.cpp:41:39: warning: format ‘%d’ expects argument of type ‘int*’, but argument 4 has type ‘char*’ [-Wformat=]
scanf("%d %d %d", &N, &M, &maxcols);
^
user.cpp: In function ‘void genStates(char, char, int)’:
user.cpp:90:37: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (niv >= tnode[n].nodes->size())
^
user.cpp:96:46: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (j = 0; j < tnode[n].nodes->size(); j++)
^
user.cpp:97:54: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (k = j + 1; k < tnode[n].nodes->size(); k++)
^
user.cpp:110:18: warning: array subscript has type ‘char’ [-Wchar-subscripts]
s[niv] = i;
^
user.cpp: In function ‘char* normalize(char*, int)’:
user.cpp:128:22: warning: array subscript has type ‘char’ [-Wchar-subscripts]
if (!used[s[i]])
^
user.cpp:128:23: warning: array subscript has type ‘char’ [-Wchar-subscripts]
if (!used[s[i]])
^
user.cpp:129:21: warning: array subscript has type ‘char’ [-Wchar-subscripts]
used[s[i]] = ++cnt;
^
user.cpp:129:22: warning: array subscript has type ‘char’ [-Wchar-subscripts]
used[s[i]] = ++cnt;
^
user.cpp:131:12: warning: array subscript has type ‘char’ [-Wchar-subscripts]
s[i] = used[s[i]];
^
user.cpp:131:24: warning: array subscript has type ‘char’ [-Wchar-subscripts]
s[i] = used[s[i]];
^
user.cpp:131:25: warning: array subscript has type ‘char’ [-Wchar-subscripts]
s[i] = used[s[i]];
^
user.cpp: In function ‘int getsextra(int, char*)’:
user.cpp:149:41: error: reference to ‘hash’ is ambiguous
int stnum = (*(tnode[n].sextraMap))[hash(s, tnode[n].nupnodes)];
^
user.cpp:137:5: note: candidates are: int hash(char*, int)
int hash(char *s, int K)
^
In file included from /usr/local/include/c++/4.8.0/bits/stl_bvector.h:1134:0,
from /usr/local/include/c++/4.8.0/vector:65,
from user.cpp:4:
/usr/local/include/c++/4.8.0/bits/functional_hash.h:58:12: note: template<class _Tp> struct std::hash
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !