Incorrect Loop Syntax and Logic
Ouverte
Adaptée aux débutants
enhancement
help wanted
invalid
question
- Langage dominant
- C++
- Étoiles
- 1
- Forks
- 5
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Description
The loop for (int i = 0 i < n; i--) is missing a semicolon and is decrementing i instead of incrementing it.
Guide de contribution
Aucun guide de contribution indexé pour ce dépôt
Piste de recherche
Find the file with the loop syntax error, likely in a C++ source file. Look for a for loop with missing semicolon and decrementing i. Correct it to 'for (int i = 0; i < n; i++)'. Verify by compiling and running any existing tests or the program to ensure it works correctly.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- cpp
- Domaine
- cli
- Type d'issue
- Bug
- Difficulté
- 1/5
- Temps estimé
- Moins d'une heure
- Activité
- À l'abandon
- Clarté
- Clairement spécifiée
- Accessibilité débutants
- 90/100