Borderou de evaluare (job #2554545)

Utilizator YusyBossFares Yusuf YusyBoss Data 23 februarie 2020 09:35:10
Problema Bazaf Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:5:163: error: narrowing conversion of '6227020800l' from 'long int' to 'int' inside { } [-Wnarrowing] int fact[] = {0, 1, 2, 6, 24, 120, 720, 5040, 40320, 362880, 3628800, 39916800, 479001600, 6227020800, 87178291200, 1307674368000, 20922789888000, 355687428096000}; ^ main.cpp:5:163: error: narrowing conversion of '87178291200l' from 'long int' to 'int' inside { } [-Wnarrowing] main.cpp:5:163: error: narrowing conversion of '1307674368000l' from 'long int' to 'int' inside { } [-Wnarrowing] main.cpp:5:163: error: narrowing conversion of '20922789888000l' from 'long int' to 'int' inside { } [-Wnarrowing] main.cpp:5:163: error: narrowing conversion of '355687428096000l' from 'long int' to 'int' inside { } [-Wnarrowing] Non zero exit status: 1

Ceva nu functioneaza?