#999
Numere7
Se dau două numere naturale diferite. Afişaţi cel mai mic număr care poate fi scris folosind toate cifrele celor două numere date.
Problema | Numere7 | Operații I/O |
numere7.in /numere7.out
|
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #4428639 | Utilizator | |
Fișier | numere7.cpp | Dimensiune | 702 B |
Data încărcării | 23 Februarie 2017, 16:33 | Scor / rezultat | Eroare de compilare |
numere7.cpp:6:7: error: expected initializer before 'v' int n v[1001],i,,b,c,j,p; ^ numere7.cpp: In function 'int main()': numere7.cpp:9:9: error: 'a' was not declared in this scope in>>a>>b; ^ numere7.cpp:9:12: error: 'b' was not declared in this scope in>>a>>b; ^ numere7.cpp:10:5: error: 'i' was not declared in this scope i=0; ^ numere7.cpp:14:9: error: 'c' was not declared in this scope c=a%10; ^ numere7.cpp:20:9: error: 'c' was not declared in this scope c=b%10; ^ numere7.cpp:23:5: error: 'n' was not declared in this scope n=i; ^ numere7.cpp:25:13: error: 'j' was not declared in this scope for(j=i+1;j<=n;j++) ^ numere7.cpp:27:16: error: 'v' was not declared in this scope if(v[j]<v[i]) ^ numere7.cpp:29:9: error: expected ';' before '}' token } ^ numere7.cpp:32:12: error: 'v' was not declared in this scope if(v[i]!=0) ^ numere7.cpp:35:13: error: 'p' was not declared in this scope p=i; ^ numere7.cpp:39:19: error: 'p' was not declared in this scope if(i!=p) ^ numere7.cpp:40:18: error: 'v' was not declared in this scope out<<v[i]; ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema Numere7 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ă.