Intermedio
4 ottobre 2026

Trova il bug: iOS

Uno snippet di codice. Trova il bug, o dimostra che non ce n'è.

swift
1import CoreData
2
3func transferFunds(from: Account, to: Account, amount: Double, context: NSManagedObjectContext) throws {
4    from.balance -= amount
5    try context.save()
6    to.balance += amount
7    try context.save()
8}

Clicca sulle righe che causano il problema.

Il tuo verdetto

Un tentativo al giorno. La risposta appare subito dopo.

Mantieni la tua serie

Crea un account per conservare la tua serie e seguire i tuoi progressi.

Crea un account