Borderou de evaluare (job #1344737)
Utilizator | Data | 16 februarie 2015 22:38:40 | |
---|---|---|---|
Problema | Hashuri | Status | done |
Runda | Arhiva educationala | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘std::vector<int>::iterator Find(int)’:
user.cpp:20:20: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
if ( *it = X )
^
user.cpp: In function ‘void Add(int)’:
user.cpp:28:14: error: ‘x’ was not declared in this scope
if ( Find(x) == Hash[key].end() )
^
user.cpp: In function ‘void Delele(int)’:
user.cpp:35:8: error: request for member ‘erase’ in ‘Hash’, which is of non-class type ‘std::vector<int> [666013]’
Hash.erase(it);
^
user.cpp: In function ‘int main()’:
user.cpp:44:13: error: ‘type’ was not declared in this scope
in >> type >> elem ;
^
user.cpp:44:21: error: ‘elem’ was not declared in this scope
in >> type >> elem ;
^
user.cpp:45:13: error: ‘X’ was not declared in this scope
key = X % MOD;
^
user.cpp:47:37: error: ‘Delete’ was not declared in this scope
if ( type == 2 ) Delete ( elem ) ;
^
user.cpp:48:38: error: ‘x’ was not declared in this scope
if ( type == 3 ) out << ( Find(x) != Hash[key].end ) << "\n" ;
^
user.cpp:40:12: warning: unused variable ‘j’ [-Wunused-variable]
int i , j ;
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !