#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 | #53756139 | Utilizator | |
Fișier | numere123.cpp | Dimensiune | 1.09 KB |
Data încărcării | 11 Noiembrie 2024, 08:03 | Scor / rezultat | Eroare de compilare |
numere123.cpp:4:1: error: stray '\302' in program st[k]=0; ^ numere123.cpp:4:1: error: stray '\240' in program numere123.cpp:4:1: error: stray '\302' in program numere123.cpp:4:1: error: stray '\240' in program numere123.cpp:10:1: error: stray '\302' in program st[k]++; ^ numere123.cpp:10:1: error: stray '\240' in program numere123.cpp:10:1: error: stray '\302' in program numere123.cpp:10:1: error: stray '\240' in program numere123.cpp:11:1: error: stray '\302' in program return 1;} ^ 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 else return 0; ^ 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:17:1: error: stray '\302' in program for(int i=1;i<=k-1;i++) ^ numere123.cpp:17:1: error: stray '\240' in program numere123.cpp:17:1: error: stray '\302' in program numere123.cpp:17:1: error: stray '\240' in program numere123.cpp:18:1: error: stray '\302' in program if(st[k]==st[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:18:1: error: stray '\302' in program 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 return 0; ^ 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 1; ^ 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:30:1: error: stray '\302' in program for(int i=1;i<=k;i++) ^ numere123.cpp:30:1: error: stray '\240' in program numere123.cpp:30:1: error: stray '\302' in program numere123.cpp:30:1: error: stray '\240' in program numere123.cpp:31:1: error: stray '\302' in program cout<<st[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:31:1: error: stray '\302' in program 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<<endl; ^ 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:36:1: error: stray '\302' in program int as; ^ numere123.cpp:36:1: error: stray '\240' in program numere123.cpp:36:1: error: stray '\302' in program numere123.cpp:36:1: error: stray '\240' in program numere123.cpp:37:1: error: stray '\302' in program k=1; ^ 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 init(); ^ 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 while(k>0) ^ 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 {do{as=succesor();} ^ 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(as && !valid()); ^ 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: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 if(as) ^ 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(solutie()) ^ 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: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: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 tipar(); ^ 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 else{ ^ 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 k++; ^ 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 init(); ^ 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 }else ^ 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 k--; ^ 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: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:74:1: error: stray '\302' in program return 0; ^ numere123.cpp:74:1: error: stray '\240' in program numere123.cpp:74:1: error: stray '\302' in program numere123.cpp:74:1: error: stray '\240' in program numere123.cpp: In function 'void tipar()': numere123.cpp:31:13: error: 'cout' was not declared in this scope cout<<st[i]<<' '; ^ numere123.cpp:32:7: error: 'cout' was not declared in this scope cout<<endl; ^ numere123.cpp:32:13: error: 'endl' was not declared in this scope cout<<endl; ^ numere123.cpp: In function 'int main()': numere123.cpp:56:5: error: 'cin' was not declared in this scope cin>>n; ^ numere123.cpp:59:9: error: 'v' was not declared in this scope v[++j]=n%10; ^ numere123.cpp:65:16: error: 'v' was not declared in this scope if(v[i]>v[i+1]) ^
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ă.