#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 | #53765901 | Utilizator | |
Fișier | numere123.cpp | Dimensiune | 802 B |
Data încărcării | 11 Noiembrie 2024, 10:57 | 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:1:1: error: 'Permutari' does not name a type Permutari ^ numere123.cpp: In function 'void init()': numere123.cpp:5:7: error: 'st' was not declared in this scope st[k]=0; ^ numere123.cpp:5:10: error: 'k' was not declared in this scope st[k]=0; ^ numere123.cpp: In function 'int succesor()': numere123.cpp:9:6: error: 'st' was not declared in this scope { if(st[k]<n) ^ numere123.cpp:9:9: error: 'k' was not declared in this scope { if(st[k]<n) ^ numere123.cpp:9:12: error: 'n' was not declared in this scope { if(st[k]<n) ^ numere123.cpp: In function 'int valid()': numere123.cpp:18:22: error: 'k' was not declared in this scope for(int i=1;i<=k-1;i++) ^ numere123.cpp:19:16: error: 'st' was not declared in this scope if(st[k]==st[i]) ^ numere123.cpp: In function 'int solutie()': numere123.cpp:24:5: error: 'k' was not declared in this scope {if(k==n) ^ numere123.cpp:24:8: error: 'n' was not declared in this scope {if(k==n) ^ numere123.cpp: In function 'void tipar()': numere123.cpp:31:22: error: 'k' was not declared in this scope for(int i=1;i<=k;i++) ^ numere123.cpp:32:13: error: 'cout' was not declared in this scope cout<<st[i]<<' '; ^ numere123.cpp:32:19: error: 'st' 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 'void back()': numere123.cpp:38:7: error: 'k' was not declared in this scope k=1; ^ numere123.cpp: In function 'int main()': numere123.cpp:55:2: error: 'cin' was not declared in this scope {cin>>n; ^ numere123.cpp:55:7: error: 'n' was not declared in this scope {cin>>n; ^ numere123.cpp: In function 'int succesor()': numere123.cpp:15:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ numere123.cpp: In function 'int solutie()': numere123.cpp:28:1: warning: control reaches end of non-void function [-Wreturn-type] } ^
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ă.