Skip to content

Conversation

@antonioialazzo
Copy link

No description provided.

Comment on lines +25 to +26
int Div(int a, int b){
return a/b;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Dovrebbe esserci un controllo della divisione per 0.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In questa soluzione si ha che 2.1 + 1.1 = 3 che, semanticamente, è errato.
Potresti definire delle funzioni template per ovviare.

@Picred
Copy link
Collaborator

Picred commented Oct 31, 2025

Cerca di utilizzare i conventional commits

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants