Borderou de evaluare (job #1966726)
Utilizator | Data | 15 aprilie 2017 15:28:13 | |
---|---|---|---|
Problema | Kinder | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:28:35: error: ‘int index’ redeclared as different kind of symbol
int fr, nr, n, m, pos = BUF, kid, index, type, number, bytes, answer, l1, l2, k;
^
In file included from /usr/include/c++/4.8/cstring:42:0,
from /usr/include/i386-linux-gnu/c++/4.8/bits/stdc++.h:48,
from user.cpp:1:
/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 update(int, int, int, int)’:
user.cpp:108:39: error: invalid types ‘Trie* [2][<unresolved overloaded function type>]’ for array subscript
add(aint[node].color[index], bytes);
^
user.cpp:123:35: error: invalid types ‘Trie* [2][<unresolved overloaded function type>]’ for array subscript
add(aint[node].color[index], bytes);
^
user.cpp: In function ‘void query(int, int, int)’:
user.cpp:130:45: error: invalid types ‘Trie* [2][<unresolved overloaded function type>]’ for array subscript
tries[nr++] = aint[node].color[index];
^
user.cpp: In function ‘int main()’:
user.cpp:179:19: error: overloaded function with no contextual type information
index = getInt();
^
user.cpp:197:19: error: overloaded function with no contextual type information
index = getInt();
^
user.cpp: In function ‘char getChar()’:
user.cpp:31:52: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
if(pos == BUF) pos = 0, fread(buf, 1, BUF, fin);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !