#3275
nrSumCifMax
Se dau 3
numere naturale, fiecare având câte două cifre. Afișați-le pe acelea care au suma cifrelor maximă.
CNFB - Concurs de pregatire, clasa a 5-a
Problema | nrSumCifMax | Operații I/O | tastatură/ecran |
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #43582354 | Utilizator | |
Fișier | nrsumcifmax.cpp | Dimensiune | 561 B |
Data încărcării | 04 Mai 2023, 13:32 | Scor / rezultat | Eroare de compilare |
nrsumcifmax.cpp:9:1: error: stray '\302' in program cin>>a>>b>>c; ^ nrsumcifmax.cpp:9:1: error: stray '\240' in program nrsumcifmax.cpp:9:1: error: stray '\302' in program nrsumcifmax.cpp:9:1: error: stray '\240' in program nrsumcifmax.cpp:11:1: error: stray '\302' in program smaxim = a%10+a/10; ^ nrsumcifmax.cpp:11:1: error: stray '\240' in program nrsumcifmax.cpp:11:1: error: stray '\302' in program nrsumcifmax.cpp:11:1: error: stray '\240' in program nrsumcifmax.cpp:13:1: error: stray '\302' in program if (b%10+b/10 > smaxim) ^ nrsumcifmax.cpp:13:1: error: stray '\240' in program nrsumcifmax.cpp:13:1: error: stray '\302' in program nrsumcifmax.cpp:13:1: error: stray '\240' in program nrsumcifmax.cpp:15:1: error: stray '\302' in program smaxim = b%10+b/10; ^ nrsumcifmax.cpp:15:1: error: stray '\240' in program nrsumcifmax.cpp:15:1: error: stray '\302' in program nrsumcifmax.cpp:15:1: error: stray '\240' in program nrsumcifmax.cpp:15:1: error: stray '\302' in program nrsumcifmax.cpp:15:1: error: stray '\240' in program nrsumcifmax.cpp:15:1: error: stray '\302' in program nrsumcifmax.cpp:15:1: error: stray '\240' in program nrsumcifmax.cpp:17:1: error: stray '\302' in program if (c%10+c/10 > smaxim) ^ nrsumcifmax.cpp:17:1: error: stray '\240' in program nrsumcifmax.cpp:17:1: error: stray '\302' in program nrsumcifmax.cpp:17:1: error: stray '\240' in program nrsumcifmax.cpp:19:1: error: stray '\302' in program smaxim = c%10+c/10; ^ nrsumcifmax.cpp:19:1: error: stray '\240' in program nrsumcifmax.cpp:19:1: error: stray '\302' in program nrsumcifmax.cpp:19:1: error: stray '\240' in program nrsumcifmax.cpp:19:1: error: stray '\302' in program nrsumcifmax.cpp:19:1: error: stray '\240' in program nrsumcifmax.cpp:19:1: error: stray '\302' in program nrsumcifmax.cpp:19:1: error: stray '\240' in program nrsumcifmax.cpp:21:1: error: stray '\302' in program if (smaxim == a/10 + a%10) ^ nrsumcifmax.cpp:21:1: error: stray '\240' in program nrsumcifmax.cpp:21:1: error: stray '\302' in program nrsumcifmax.cpp:21:1: error: stray '\240' in program nrsumcifmax.cpp:23:1: error: stray '\302' in program cout<<a<<" "; ^ nrsumcifmax.cpp:23:1: error: stray '\240' in program nrsumcifmax.cpp:23:1: error: stray '\302' in program nrsumcifmax.cpp:23:1: error: stray '\240' in program nrsumcifmax.cpp:23:1: error: stray '\302' in program nrsumcifmax.cpp:23:1: error: stray '\240' in program nrsumcifmax.cpp:23:1: error: stray '\302' in program nrsumcifmax.cpp:23:1: error: stray '\240' in program nrsumcifmax.cpp:25:1: error: stray '\302' in program if (smaxim == b/10 + b%10) ^ nrsumcifmax.cpp:25:1: error: stray '\240' in program nrsumcifmax.cpp:25:1: error: stray '\302' in program nrsumcifmax.cpp:25:1: error: stray '\240' in program nrsumcifmax.cpp:27:1: error: stray '\302' in program cout<<b<<" "; ^ nrsumcifmax.cpp:27:1: error: stray '\240' in program nrsumcifmax.cpp:27:1: error: stray '\302' in program nrsumcifmax.cpp:27:1: error: stray '\240' in program nrsumcifmax.cpp:27:1: error: stray '\302' in program nrsumcifmax.cpp:27:1: error: stray '\240' in program nrsumcifmax.cpp:27:1: error: stray '\302' in program nrsumcifmax.cpp:27:1: error: stray '\240' in program nrsumcifmax.cpp:29:1: error: stray '\302' in program if (smaxim == c/10 + c%10) ^ nrsumcifmax.cpp:29:1: error: stray '\240' in program nrsumcifmax.cpp:29:1: error: stray '\302' in program nrsumcifmax.cpp:29:1: error: stray '\240' in program nrsumcifmax.cpp:31:1: error: stray '\302' in program cout<<c<<" "; ^ nrsumcifmax.cpp:31:1: error: stray '\240' in program nrsumcifmax.cpp:31:1: error: stray '\302' in program nrsumcifmax.cpp:31:1: error: stray '\240' in program nrsumcifmax.cpp:31:1: error: stray '\302' in program nrsumcifmax.cpp:31:1: error: stray '\240' in program nrsumcifmax.cpp:31:1: error: stray '\302' in program nrsumcifmax.cpp:31:1: error: stray '\240' in program nrsumcifmax.cpp:33:1: error: stray '\302' in program return 0; ^ nrsumcifmax.cpp:33:1: error: stray '\240' in program nrsumcifmax.cpp:33:1: error: stray '\302' in program nrsumcifmax.cpp:33:1: error: stray '\240' in program nrsumcifmax.cpp:39:1: error: stray '\310' in program Citește mai multe pe Brainly.ro - https://brainly.ro/tema/6394188#readmore ^ nrsumcifmax.cpp:39:1: error: stray '\231' in program nrsumcifmax.cpp:39:1: error: 'Cite' does not name a type
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema nrSumCifMax face parte din prima categorie. Soluția propusă de tine va fi evaluată astfel:
Suma punctajelor acordate pe testele utilizate pentru verificare este 100. Astfel, soluția ta poate obține cel mult 100 de puncte, caz în care se poate considera corectă.