Borderou de evaluare (job #2625588)
Utilizator | Data | 6 iunie 2020 01:12:09 | |
---|---|---|---|
Problema | Hashuri | Status | done |
Runda | Arhiva educationala | Compilator | cpp-32 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int search(int)':
main.cpp:18:12: error: no match for 'operator*' (operand type is 'std::vector<int>')
if(*it == n)
^~~
main.cpp:15:9: warning: unused variable 'i' [-Wunused-variable]
int i = n % mod;
^
main.cpp: In function 'int add(int)':
main.cpp:26:15: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator%'
int i = n % max;
~~^~~~~
main.cpp:29:1: warning: no return statement in function returning non-void [-Wreturn-type]
}
^
main.cpp: In function 'void del(int)':
main.cpp:33:15: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator%'
int i = n % max;
~~^~~~~
main.cpp:39:17: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator%'
V[n % max].erase(it);
~~^~~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !