Borderou de evaluare (job #2880488)

Utilizator EZ4ENCEAleksi Jalli EZ4ENCE Data 29 martie 2022 19:48:29
Problema Secvente3 Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'int main()': main.cpp:69:24: error: no match for 'operator=' (operand types are 'strbucket' and 'int') 69 | v[crtbucket++] = val; | ^~~ main.cpp:15:8: note: candidate: 'constexpr strbucket& strbucket::operator=(const strbucket&)' 15 | struct strbucket{ | ^~~~~~~~~ main.cpp:15:8: note: no known conversion for argument 1 from 'int' to 'const strbucket&' main.cpp:15:8: note: candidate: 'constexpr strbucket& strbucket::operator=(strbucket&&)' main.cpp:15:8: note: no known conversion for argument 1 from 'int' to 'strbucket&&' main.cpp:60:12: warning: unused variable 'st' [-Wunused-variable] 60 | int val, st, bucket, i, m, poz, crtbucket; | ^~ main.cpp:60:16: warning: unused variable 'bucket' [-Wunused-variable] 60 | int val, st, bucket, i, m, poz, crtbucket; | ^~~~~~ main.cpp:60:30: warning: unused variable 'poz' [-Wunused-variable] 60 | int val, st, bucket, i, m, poz, crtbucket; | ^~~ main.cpp:61:9: warning: unused variable 's' [-Wunused-variable] 61 | int64 s, sum; | ^ main.cpp:61:12: warning: unused variable 'sum' [-Wunused-variable] 61 | int64 s, sum; | ^~~ Non zero exit status: 1

Ceva nu functioneaza?