Borderou de evaluare (job #2369152)

Utilizator Senth30Denis-Florin Cringanu Senth30 Data 5 martie 2019 21:26:28
Problema Secventa 5 Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:8:9: error: 'elem' was not declared in this scope vector <elem> has [ MOD + 1 ] ; ^~~~ main.cpp:8:13: error: template argument 1 is invalid vector <elem> has [ MOD + 1 ] ; ^ main.cpp:8:13: error: template argument 2 is invalid main.cpp: In function 'void add(long long int)': main.cpp:25:15: error: request for member 'push_back' in 'has[H(((unsigned int)x))]', which is of non-class type 'int' has[H(x)].push_back(x2) ; ^~~~~~~~~ main.cpp: In function 'void update(long long int)': main.cpp:32:21: error: request for member 'begin' in 'has[i]', which is of non-class type 'int' for (j = has[i].begin() ; j != has[i].end() && (*j).val != x ; j++ ) ; ^~~~~ main.cpp:32:43: error: request for member 'end' in 'has[i]', which is of non-class type 'int' for (j = has[i].begin() ; j != has[i].end() && (*j).val != x ; j++ ) ; ^~~ main.cpp:32:5: warning: this 'for' clause does not guard... [-Wmisleading-indentation] for (j = has[i].begin() ; j != has[i].end() && (*j).val != x ; j++ ) ; ^~~ main.cpp:33:9: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for' if (j != has[i].end() ) ^~ main.cpp:33:25: error: request for member 'end' in 'has[i]', which is of non-class type 'int' if (j != has[i].end() ) ^~~ main.cpp: In function 'void delet(long long int)': main.cpp:41:21: error: request for member 'begin' in 'has[i]', which is of non-class type 'int' for (j = has[i].begin() ; j != has[i].end() && (*j).val != x ; j++ ) ; ^~~~~ main.cpp:41:43: error: request for member 'end' in 'has[i]', which is of non-class type 'int' for (j = has[i].begin() ; j != has[i].end() && (*j).val != x ; j++ ) ; ^~~ main.cpp:41:5: warning: this 'for' clause does not guard... [-Wmisleading-indentation] for (j = has[i].begin() ; j != has[i].end() && (*j).val != x ; j++ ) ; ^~~ main.cpp:42:9: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for' if (j != has[i].end()){ ^~ main.cpp:42:25: error: request for member 'end' in 'has[i]', which is of non-class type 'int' if (j != has[i].end()){ ^~~ main.cpp:44:24: error: request for member 'erase' in 'has[i]', which is of non-class type 'int' has[i].erase(j) ; ^~~~~ main.cpp: In function 'bool exist(long long int)': main.cpp:54:21: error: request for member 'begin' in 'has[i]', which is of non-class type 'int' for (j = has[i].begin() ; j != has[i].end() && (*j).val != x ; j++ ); ^~~~~ Non zero exit status: 1

Ceva nu functioneaza?