Inferred void class operations are never checked against the starter's return type
Mantenedores costumam responder em até 1 dia
@papaya0112 já está trabalhando nisso.
Desde 26/11/2026.
Avaliação
Esta issue ainda não foi avaliada.
Descrição
posed in scripts/problem_bank/rules.py publishes each class operation's kind in methodReturnTypes from the cases alone: an operation is "void" when every expected value for it is null. The C++ and Java harnesses already drop whatever a "void" operation returns, and #849 makes the JavaScript and Python runners do the same. A value-returning operation whose cases all happen to expect null would therefore be published as void and stop being compared in all four languages, so any return would pass.
Nothing checks the inference today. The test #849 adds only holds each kind to the spelling "void" or "value" and to the operations the cases call; it cannot tell a wrong kind from a right one, because the expected values it builds read the same field the runners do. The starters already state the real type, for example void push(int value) and int top() in the C++ starter of Tentative Bid Ledger.
Comparing each inferred kind with the return type the C++ starter declares, next to the inference in rules.py or as a check in tests/test_gen_problems.py, would fail when such a judge is generated. All eight served class judges agree with their starters today, so the check refuses nothing now. This was raised in the review of #849 and left out of that change.
- Linguagem predominante
- Rust
- Estrelas
- 236
- Forks
- 153
- Merge médio
- 1d 9h
- PRs com merge (30d)
- 187
Preparar o ambiente
- Sem Dockerfile nem arquivo Docker Compose
- Tem um modelo de pull request
- Ler o guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de sysprog21/codetrial
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
Mantenedores costumam responder em até 1 dia
-
Dificuldade 3/5 1-2 dias Facilidade para iniciantes 70/100
Mantenedores costumam responder em até 1 dia
-
Unify Java harness validation error messagesTalvez já em andamento @weichieh0204 assumiu hoje. Aberta
sysprog21/codetrial#872 · 1 comentário · 1 responsável ·
Mantenedores costumam responder em até 1 dia
-
Edge Thumbnail Store accepts a store that does not refresh a key on overwriteTalvez já em andamento @BOBOGUAGUA428 assumiu hoje. Aberta
sysprog21/codetrial#869 · 1 comentário · 1 responsável ·
Mantenedores costumam responder em até 1 dia
-
Highway Billboard Leasing accepts a solution that greedily leases the largest offer firstTalvez já em andamento @PeteChiang1211 assumiu hoje. Aberta
sysprog21/codetrial#868 · 1 comentário · 1 responsável ·
Mantenedores costumam responder em até 1 dia
Todas as issues de sysprog21/codetrial
Issues semelhantes
-
bug bugfix
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
storytold/photocraft#17140 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 1/5 1-3 horas Facilidade para iniciantes 70/100
-
bug command Java Edition protocol
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
Pumpkin-MC/Pumpkin#4733 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 82/100
Mantenedores costumam responder em até 2 dias
-
area:parity status:ready-for-agent
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 75/100
neilsh/stunt-reel#1133 ·
Mantenedores costumam responder em até 1 dia