#247
CifreOrd1
Se dau mai multe numere naturale, fiecare cu cel mult 9
cifre. Să se afişeze, în ordine descrescătoare, toate cifrele care apar în numerele date.
Variante Bacalaureat 2009
Problema | CifreOrd1 | Operații I/O |
cifreord1.in /cifreord1.out
|
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #51369100 | Utilizator | |
Fișier | cifreord1.cpp | Dimensiune | 382 B |
Data încărcării | 11 Iunie 2024, 08:37 | Scor / rezultat | Eroare de compilare |
cifreord1.cpp:9:1: error: stray '\342' in program ifstream cin(“cifreord1.in”); ^ cifreord1.cpp:9:1: error: stray '\200' in program cifreord1.cpp:9:1: error: stray '\234' in program cifreord1.cpp:9:1: error: stray '\342' in program cifreord1.cpp:9:1: error: stray '\200' in program cifreord1.cpp:9:1: error: stray '\235' in program cifreord1.cpp:10:1: error: stray '\342' in program ofstream cout(“cifreord1.out”); ^ cifreord1.cpp:10:1: error: stray '\200' in program cifreord1.cpp:10:1: error: stray '\234' in program cifreord1.cpp:10:1: error: stray '\342' in program cifreord1.cpp:10:1: error: stray '\200' in program cifreord1.cpp:10:1: error: stray '\235' in program cifreord1.cpp:21:1: error: stray '\342' in program for(int i=9;i>=0;i–) ^ cifreord1.cpp:21:1: error: stray '\200' in program cifreord1.cpp:21:1: error: stray '\223' in program cifreord1.cpp:25:1: error: stray '\342' in program cout<<i<<” “; ^ cifreord1.cpp:25:1: error: stray '\200' in program cifreord1.cpp:25:1: error: stray '\235' in program cifreord1.cpp:25:1: error: stray '\342' in program cifreord1.cpp:25:1: error: stray '\200' in program cifreord1.cpp:25:1: error: stray '\234' in program cifreord1.cpp:26:1: error: stray '\342' in program f[i]–; ^ cifreord1.cpp:26:1: error: stray '\200' in program cifreord1.cpp:26:1: error: stray '\223' in program cifreord1.cpp: In function 'int main()': cifreord1.cpp:9:17: error: 'cifreord1' was not declared in this scope ifstream cin(“cifreord1.in”); ^ cifreord1.cpp:21:18: warning: for increment expression has no effect [-Wunused-value] for(int i=9;i>=0;i–) ^ cifreord1.cpp:25:17: error: expected primary-expression before ';' token cout<<i<<” “; ^ cifreord1.cpp:26:4: warning: statement has no effect [-Wunused-value] f[i]–; ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema CifreOrd1 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ă.