Borderou de evaluare (job #3131136)
Utilizator | Data | 19 mai 2023 12:40:10 | |
---|---|---|---|
Problema | Hashuri | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:5:6: error: variable or field 'adaug' declared void
5 | void adaug(map <int, int> &hash, int nr){
| ^~~~~
main.cpp:5:12: error: 'map' was not declared in this scope
5 | void adaug(map <int, int> &hash, int nr){
| ^~~
main.cpp:4:1: note: 'std::map' is defined in header '<map>'; did you forget to '#include <map>'?
3 | #include <unordered_map>
+++ |+#include <map>
4 | using namespace std;
main.cpp:5:17: error: expected primary-expression before 'int'
5 | void adaug(map <int, int> &hash, int nr){
| ^~~
main.cpp:5:22: error: expected primary-expression before 'int'
5 | void adaug(map <int, int> &hash, int nr){
| ^~~
main.cpp:5:34: error: expected primary-expression before 'int'
5 | void adaug(map <int, int> &hash, int nr){
| ^~~
main.cpp:9:10: error: 'map' was not declared in this scope
9 | int caut(map <int, int> hash, int nr){
| ^~~
main.cpp:9:10: note: 'std::map' is defined in header '<map>'; did you forget to '#include <map>'?
main.cpp:9:15: error: expected primary-expression before 'int'
9 | int caut(map <int, int> hash, int nr){
| ^~~
main.cpp:9:20: error: expected primary-expression before 'int'
9 | int caut(map <int, int> hash, int nr){
| ^~~
main.cpp:9:31: error: expected primary-expression before 'int'
9 | int caut(map <int, int> hash, int nr){
| ^~~
main.cpp:9:37: error: expression list treated as compound expression in initializer [-fpermissive]
9 | int caut(map <int, int> hash, int nr){
| ^
main.cpp:15:6: error: variable or field 'sterg' declared void
15 | void sterg(map <int, int> &hash, int nr){
| ^~~~~
main.cpp:15:12: error: 'map' was not declared in this scope
15 | void sterg(map <int, int> &hash, int nr){
| ^~~
main.cpp:15:12: note: 'std::map' is defined in header '<map>'; did you forget to '#include <map>'?
main.cpp:15:17: error: expected primary-expression before 'int'
15 | void sterg(map <int, int> &hash, int nr){
| ^~~
main.cpp:15:22: error: expected primary-expression before 'int'
15 | void sterg(map <int, int> &hash, int nr){
| ^~~
main.cpp:15:34: error: expected primary-expression before 'int'
15 | void sterg(map <int, int> &hash, int nr){
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !