Borderou de evaluare (job #2670715)
Utilizator | Data | 10 noiembrie 2020 16:20:40 | |
---|---|---|---|
Problema | Hashuri | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'bool find(int)':
main.cpp:27:21: error: missing template arguments before '[' token
while ( i < hash[cod].size() && hash[cod][i] != x ) {
^
main.cpp:27:41: error: missing template arguments before '[' token
while ( i < hash[cod].size() && hash[cod][i] != x ) {
^
main.cpp:30:20: error: missing template arguments before '[' token
return i < hash[cod].size();
^
main.cpp: In function 'void push(int)':
main.cpp:36:21: error: missing template arguments before '[' token
while ( i < hash[cod].size() && hash[cod][i] != x ) {
^
main.cpp:36:41: error: missing template arguments before '[' token
while ( i < hash[cod].size() && hash[cod][i] != x ) {
^
main.cpp:39:19: error: missing template arguments before '[' token
if ( i == hash[cod].size() ) {
^
main.cpp:40:13: error: missing template arguments before '[' token
hash[cod].push_back( x );
^
main.cpp: In function 'void erase(int)':
main.cpp:47:21: error: missing template arguments before '[' token
while ( i < hash[cod].size() && hash[cod][i] != x ) {
^
main.cpp:47:41: error: missing template arguments before '[' token
while ( i < hash[cod].size() && hash[cod][i] != x ) {
^
main.cpp:50:18: error: missing template arguments before '[' token
if ( i < hash[cod].size() ) {
^
main.cpp:51:13: error: missing template arguments before '[' token
hash[cod].erase( hash[cod].begin() + i );
^
main.cpp:51:30: error: missing template arguments before '[' token
hash[cod].erase( hash[cod].begin() + i );
^
main.cpp: In function 'int main()':
main.cpp:60:28: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
fscanf( fin, "%d", &n );
^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !