#3158
numere123
Se citește un număr natural n
având cifrele diferite două câte două. Afișați în ordine crescătoare numerele care se pot obține din cifrele lui n
și care au același număr de cifre ca n
.
Problema | numere123 | Operații I/O | tastatură/ecran |
---|---|---|---|
Limita timp | 0.4 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #53762640 | Utilizator | |
Fișier | numere123.cpp | Dimensiune | 834 B |
Data încărcării | 11 Noiembrie 2024, 10:04 | Scor / rezultat | Eroare de compilare |
numere123.cpp:6:1: error: stray '\302' in program st[k]=0; ^ numere123.cpp:6:1: error: stray '\240' in program numere123.cpp:6:1: error: stray '\302' in program numere123.cpp:6:1: error: stray '\240' in program numere123.cpp:12:1: error: stray '\302' in program st[k]++; ^ numere123.cpp:12:1: error: stray '\240' in program numere123.cpp:12:1: error: stray '\302' in program numere123.cpp:12:1: error: stray '\240' in program numere123.cpp:13:1: error: stray '\302' in program return 1;} ^ numere123.cpp:13:1: error: stray '\240' in program numere123.cpp:13:1: error: stray '\302' in program numere123.cpp:13:1: error: stray '\240' in program numere123.cpp:14:1: error: stray '\302' in program else return 0; ^ numere123.cpp:14:1: error: stray '\240' in program numere123.cpp:14:1: error: stray '\302' in program numere123.cpp:14:1: error: stray '\240' in program numere123.cpp:19:1: error: stray '\302' in program for(int i=1;i<=k-1;i++) ^ numere123.cpp:19:1: error: stray '\240' in program numere123.cpp:19:1: error: stray '\302' in program numere123.cpp:19:1: error: stray '\240' in program numere123.cpp:20:1: error: stray '\302' in program if(st[k]==st[i]) ^ numere123.cpp:20:1: error: stray '\240' in program numere123.cpp:20:1: error: stray '\302' in program numere123.cpp:20:1: error: stray '\240' in program numere123.cpp:20:1: error: stray '\302' in program numere123.cpp:20:1: error: stray '\240' in program numere123.cpp:20:1: error: stray '\302' in program numere123.cpp:20:1: error: stray '\240' in program numere123.cpp:21:1: error: stray '\302' in program return 0; ^ numere123.cpp:21:1: error: stray '\240' in program numere123.cpp:21:1: error: stray '\302' in program numere123.cpp:21:1: error: stray '\240' in program numere123.cpp:21:1: error: stray '\302' in program numere123.cpp:21:1: error: stray '\240' in program numere123.cpp:21:1: error: stray '\302' in program numere123.cpp:21:1: error: stray '\240' in program numere123.cpp:22:1: error: stray '\302' in program return 1; ^ numere123.cpp:22:1: error: stray '\240' in program numere123.cpp:22:1: error: stray '\302' in program numere123.cpp:22:1: error: stray '\240' in program numere123.cpp:32:1: error: stray '\302' in program for(int i=1;i<=k;i++) ^ numere123.cpp:32:1: error: stray '\240' in program numere123.cpp:32:1: error: stray '\302' in program numere123.cpp:32:1: error: stray '\240' in program numere123.cpp:33:1: error: stray '\302' in program cout<<st[i]<<' '; ^ numere123.cpp:33:1: error: stray '\240' in program numere123.cpp:33:1: error: stray '\302' in program numere123.cpp:33:1: error: stray '\240' in program numere123.cpp:33:1: error: stray '\302' in program numere123.cpp:33:1: error: stray '\240' in program numere123.cpp:33:1: error: stray '\302' in program numere123.cpp:33:1: error: stray '\240' in program numere123.cpp:34:1: error: stray '\302' in program cout<<endl; ^ numere123.cpp:34:1: error: stray '\240' in program numere123.cpp:34:1: error: stray '\302' in program numere123.cpp:34:1: error: stray '\240' in program numere123.cpp:38:1: error: stray '\302' in program int as; ^ numere123.cpp:38:1: error: stray '\240' in program numere123.cpp:38:1: error: stray '\302' in program numere123.cpp:38:1: error: stray '\240' in program numere123.cpp:39:1: error: stray '\302' in program k=1; ^ numere123.cpp:39:1: error: stray '\240' in program numere123.cpp:39:1: error: stray '\302' in program numere123.cpp:39:1: error: stray '\240' in program numere123.cpp:40:1: error: stray '\302' in program init(); ^ numere123.cpp:40:1: error: stray '\240' in program numere123.cpp:40:1: error: stray '\302' in program numere123.cpp:40:1: error: stray '\240' in program numere123.cpp:41:1: error: stray '\302' in program while(k>0) ^ numere123.cpp:41:1: error: stray '\240' in program numere123.cpp:41:1: error: stray '\302' in program numere123.cpp:41:1: error: stray '\240' in program numere123.cpp:42:1: error: stray '\302' in program {do{as=succesor();} ^ numere123.cpp:42:1: error: stray '\240' in program numere123.cpp:42:1: error: stray '\302' in program numere123.cpp:42:1: error: stray '\240' in program numere123.cpp:43:1: error: stray '\302' in program while(as && !valid()); ^ numere123.cpp:43:1: error: stray '\240' in program numere123.cpp:43:1: error: stray '\302' in program numere123.cpp:43:1: error: stray '\240' in program numere123.cpp:43:1: error: stray '\302' in program numere123.cpp:43:1: error: stray '\240' in program numere123.cpp:44:1: error: stray '\302' in program if(as) ^ numere123.cpp:44:1: error: stray '\240' in program numere123.cpp:44:1: error: stray '\302' in program numere123.cpp:44:1: error: stray '\240' in program numere123.cpp:44:1: error: stray '\302' in program numere123.cpp:44:1: error: stray '\240' in program numere123.cpp:45:1: error: stray '\302' in program if(solutie()) ^ numere123.cpp:45:1: error: stray '\240' in program numere123.cpp:45:1: error: stray '\302' in program numere123.cpp:45:1: error: stray '\240' in program numere123.cpp:45:1: error: stray '\302' in program numere123.cpp:45:1: error: stray '\240' in program numere123.cpp:45:1: error: stray '\302' in program numere123.cpp:45:1: error: stray '\240' in program numere123.cpp:45:1: error: stray '\302' in program numere123.cpp:45:1: error: stray '\240' in program numere123.cpp:45:1: error: stray '\302' in program numere123.cpp:45:1: error: stray '\240' in program numere123.cpp:46:1: error: stray '\302' in program tipar(); ^ numere123.cpp:46:1: error: stray '\240' in program numere123.cpp:46:1: error: stray '\302' in program numere123.cpp:46:1: error: stray '\240' in program numere123.cpp:46:1: error: stray '\302' in program numere123.cpp:46:1: error: stray '\240' in program numere123.cpp:46:1: error: stray '\302' in program numere123.cpp:46:1: error: stray '\240' in program numere123.cpp:46:1: error: stray '\302' in program numere123.cpp:46:1: error: stray '\240' in program numere123.cpp:46:1: error: stray '\302' in program numere123.cpp:46:1: error: stray '\240' in program numere123.cpp:47:1: error: stray '\302' in program else{ ^ numere123.cpp:47:1: error: stray '\240' in program numere123.cpp:47:1: error: stray '\302' in program numere123.cpp:47:1: error: stray '\240' in program numere123.cpp:47:1: error: stray '\302' in program numere123.cpp:47:1: error: stray '\240' in program numere123.cpp:48:1: error: stray '\302' in program k++; ^ numere123.cpp:48:1: error: stray '\240' in program numere123.cpp:48:1: error: stray '\302' in program numere123.cpp:48:1: error: stray '\240' in program numere123.cpp:48:1: error: stray '\302' in program numere123.cpp:48:1: error: stray '\240' in program numere123.cpp:48:1: error: stray '\302' in program numere123.cpp:48:1: error: stray '\240' in program numere123.cpp:49:1: error: stray '\302' in program init(); ^ numere123.cpp:49:1: error: stray '\240' in program numere123.cpp:49:1: error: stray '\302' in program numere123.cpp:49:1: error: stray '\240' in program numere123.cpp:49:1: error: stray '\302' in program numere123.cpp:49:1: error: stray '\240' in program numere123.cpp:49:1: error: stray '\302' in program numere123.cpp:49:1: error: stray '\240' in program numere123.cpp:50:1: error: stray '\302' in program }else ^ numere123.cpp:50:1: error: stray '\240' in program numere123.cpp:50:1: error: stray '\302' in program numere123.cpp:50:1: error: stray '\240' in program numere123.cpp:50:1: error: stray '\302' in program numere123.cpp:50:1: error: stray '\240' in program numere123.cpp:51:1: error: stray '\302' in program k--; ^ numere123.cpp:51:1: error: stray '\240' in program numere123.cpp:51:1: error: stray '\302' in program numere123.cpp:51:1: error: stray '\240' in program numere123.cpp:51:1: error: stray '\302' in program numere123.cpp:51:1: error: stray '\240' in program numere123.cpp:53:1: error: stray '\302' in program } ^ numere123.cpp:53:1: error: stray '\240' in program numere123.cpp:53:1: error: stray '\302' in program numere123.cpp:53:1: error: stray '\240' in program numere123.cpp:59:1: error: stray '\302' in program return 0; ^ numere123.cpp:59:1: error: stray '\240' in program numere123.cpp:59:1: error: stray '\302' in program numere123.cpp:59:1: error: stray '\240' in program
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema numere123 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ă.