#995
Numere6
Se dau două numere naturale diferite. Afişaţi cel mai mare număr care poate fi scris folosind toate cifrele celor două numere date.
Problema | Numere6 | Operații I/O |
numere6.in /numere6.out
|
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #2664891 | Utilizator | |
Fișier | numere6.cpp | Dimensiune | 560 B |
Data încărcării | 20 Iunie 2016, 16:59 | Scor / rezultat | Eroare de compilare |
numere6.cpp: In function 'int main()': numere6.cpp:7:18: error: 'numere6' was not declared in this scope ifstream be (numere6.in.txt); ^ numere6.cpp:10:5: error: expected initializer before 'int' int i,j,k,u ^ numere6.cpp:12:9: error: 'a' was not declared in this scope be>>a; ^ numere6.cpp:14:10: error: 'v' was not declared in this scope {v[i]=a%1o; ^ numere6.cpp:14:12: error: 'i' was not declared in this scope {v[i]=a%1o; ^ numere6.cpp:14:17: error: unable to find numeric literal operator 'operator"" o' {v[i]=a%1o; ^ numere6.cpp:17:9: error: 'b' was not declared in this scope be>>b; ^ numere6.cpp:19:10: error: 'v' was not declared in this scope {v[i]=b%1o; ^ numere6.cpp:19:12: error: 'i' was not declared in this scope {v[i]=b%1o; ^ numere6.cpp:19:17: error: unable to find numeric literal operator 'operator"" o' {v[i]=b%1o; ^ numere6.cpp:22:5: error: 'm' was not declared in this scope m=v[1]; ^ numere6.cpp:22:7: error: 'v' was not declared in this scope m=v[1]; ^ numere6.cpp:23:9: error: 'j' was not declared in this scope for(j=2;j<=i;j++) ^ numere6.cpp:23:16: error: 'i' was not declared in this scope for(j=2;j<=i;j++) ^ numere6.cpp:24:14: error: 'k' was not declared in this scope {for(k=1;k<j;k++) ^ numere6.cpp:27:17: error: 'u' was not declared in this scope u=i;} ^ numere6.cpp:28:15: error: 'u' was not declared in this scope ki<<v[u]; ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema Numere6 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ă.