#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 | #53765852 | Utilizator | |
Fișier | numere123.cpp | Dimensiune | 793 B |
Data încărcării | 11 Noiembrie 2024, 10:56 | Scor / rezultat | Eroare de compilare |
numere123.cpp:5:1: error: stray '\302' in program st[k]=0; ^ numere123.cpp:5:1: error: stray '\240' in program numere123.cpp:5:1: error: stray '\302' in program numere123.cpp:5:1: error: stray '\240' in program numere123.cpp:11:1: error: stray '\302' in program st[k]++; ^ numere123.cpp:11:1: error: stray '\240' in program numere123.cpp:11:1: error: stray '\302' in program numere123.cpp:11:1: error: stray '\240' in program numere123.cpp:12:1: error: stray '\302' in program return 1;} ^ 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 else return 0; ^ 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:18:1: error: stray '\302' in program for(int i=1;i<=k-1;i++) ^ numere123.cpp:18:1: error: stray '\240' in program numere123.cpp:18:1: error: stray '\302' in program numere123.cpp:18:1: error: stray '\240' in program numere123.cpp:19:1: error: stray '\302' in program if(st[k]==st[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:19:1: error: stray '\302' in program 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 return 0; ^ 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 1; ^ 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:31:1: error: stray '\302' in program for(int i=1;i<=k;i++) ^ numere123.cpp:31:1: error: stray '\240' in program numere123.cpp:31:1: error: stray '\302' in program numere123.cpp:31:1: error: stray '\240' in program numere123.cpp:32:1: error: stray '\302' in program cout<<st[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:32:1: error: stray '\302' in program 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<<endl; ^ 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:37:1: error: stray '\302' in program int as; ^ numere123.cpp:37:1: error: stray '\240' in program numere123.cpp:37:1: error: stray '\302' in program numere123.cpp:37:1: error: stray '\240' in program numere123.cpp:38:1: error: stray '\302' in program k=1; ^ 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 init(); ^ 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 while(k>0) ^ 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 {do{as=succesor();} ^ 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 while(as && !valid()); ^ 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: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 if(as) ^ 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(solutie()) ^ 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: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: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 tipar(); ^ 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 else{ ^ 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 k++; ^ 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: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 init(); ^ 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 }else ^ 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 k--; ^ 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:52:1: error: stray '\302' in program } ^ numere123.cpp:52:1: error: stray '\240' in program numere123.cpp:52:1: error: stray '\302' in program numere123.cpp:52:1: error: stray '\240' in program numere123.cpp:58:1: error: stray '\302' in program return 0; ^ numere123.cpp:58:1: error: stray '\240' in program numere123.cpp:58:1: error: stray '\302' in program numere123.cpp:58:1: error: stray '\240' in program numere123.cpp: In function 'void tipar()': numere123.cpp:32:13: error: 'cout' was not declared in this scope cout<<st[i]<<' '; ^ numere123.cpp:33:7: error: 'cout' was not declared in this scope cout<<endl; ^ numere123.cpp:33:13: error: 'endl' was not declared in this scope cout<<endl; ^ numere123.cpp: In function 'int main()': numere123.cpp:55:2: error: 'cin' was not declared in this scope {cin>>n; ^
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ă.