newbie on Arduino uno 3 and lost with a sketch

hello,

I'm french. I'm lost with errors messages with my sketch:

C:\Users\franck\Desktop\SketchesArduinoVol1\Project_8_Memory_game\Project_8_Memory_game.ino:13:31: warning: narrowing conversion of '2' from 'int' to 'boolean {aka bool}' inside { } [-Wnarrowing]

boolean button[] = {2, 3, 4, 5}; // Pins connected to button inputs

^

C:\Users\franck\Desktop\SketchesArduinoVol1\Project_8_Memory_game\Project_8_Memory_game.ino:13:31: warning: narrowing conversion of '3' from 'int' to 'boolean {aka bool}' inside { } [-Wnarrowing]

C:\Users\franck\Desktop\SketchesArduinoVol1\Project_8_Memory_game\Project_8_Memory_game.ino:13:31: warning: narrowing conversion of '4' from 'int' to 'boolean {aka bool}' inside { } [-Wnarrowing]

C:\Users\franck\Desktop\SketchesArduinoVol1\Project_8_Memory_game\Project_8_Memory_game.ino:13:31: warning: narrowing conversion of '5' from 'int' to 'boolean {aka bool}' inside { } [-Wnarrowing]

C:\Users\franck\Desktop\SketchesArduinoVol1\Project_8_Memory_game\Project_8_Memory_game.ino:14:33: warning: narrowing conversion of '8' from 'int' to 'boolean {aka bool}' inside { } [-Wnarrowing]

boolean ledpin[] = {8, 9, 10, 11}; // Pins connected to LEDs

^

C:\Users\franck\Desktop\SketchesArduinoVol1\Project_8_Memory_game\Project_8_Memory_game.ino:14:33: warning: narrowing conversion of '9' from 'int' to 'boolean {aka bool}' inside { } [-Wnarrowing]

C:\Users\franck\Desktop\SketchesArduinoVol1\Project_8_Memory_game\Project_8_Memory_game.ino:14:33: warning: narrowing conversion of '10' from 'int' to 'boolean {aka bool}' inside { } [-Wnarrowing]

C:\Users\franck\Desktop\SketchesArduinoVol1\Project_8_Memory_game\Project_8_Memory_game.ino:14:33: warning: narrowing conversion of '11' from 'int' to 'boolean {aka bool}' inside { } [-Wnarrowing]

Le croquis utilise 5584 octets (17%) de l'espace de stockage de programmes. Le maximum est de 32256 octets.
Les variables globales utilisent 506 octets (24%) de mémoire dynamique, ce qui laisse 1542 octets pour les variables locales. Le maximum est de 2048 octets.

Can you help please.
The sketch is:

// Used with kind permission from Abdullah Alhazmy www.Alhazmy13.net
#include <Tone.h>
Tone speakerpin;
int starttune[] = {NOTE_C4, NOTE_F4, NOTE_C4, NOTE_F4, NOTE_C4,
NOTE_F4, NOTE_C4, NOTE_F4, NOTE_G4, NOTE_F4,
NOTE_E4, NOTE_F4, NOTE_G4
};
int duration2[] = {100, 200, 100, 200, 100, 400, 100, 100, 100, 100,
200, 100, 500
};
int note[] = {NOTE_C4, NOTE_C4, NOTE_G4, NOTE_C5, NOTE_G4, NOTE_C5};
int duration[] = {100, 100, 100, 300, 100, 300};
boolean button[] = {2, 3, 4, 5}; // Pins connected to button inputs
boolean ledpin[] = {8, 9, 10, 11}; // Pins connected to LEDs
int turn = 0; // Turn counter
int buttonstate = 0; // Check button state
int randomArray[100]; // Array that can store up to 100 inputs
int inputArray[100];

.../...

thank you so much.
I don't understand the warning.

Kindest regards

Franck

boolean button[] = {2, 3, 4, 5};

A boolean is either true or false :wink:

2,3,4,5 are not true or false