#2687
UltimaCifraPrimaCifra
Se citesc n
numere naturale, să se pe afișeze pe câte o linie, fiecare pereche de numere consecutive care au ultima cifră egală cu prima cifra a numărului urmator.
Problema | UltimaCifraPrimaCifra | Operații I/O | tastatură/ecran |
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #12857315 | Utilizator | |
Fișier | ultimacifraprimacifra.cpp | Dimensiune | 512 B |
Data încărcării | 16 Decembrie 2018, 16:33 | Scor / rezultat | Eroare de compilare |
ultimacifraprimacifra.cpp:9:2: error: stray '\302' in program int c=0; ^ ultimacifraprimacifra.cpp:9:2: error: stray '\240' in program ultimacifraprimacifra.cpp:9:2: error: stray '\302' in program ultimacifraprimacifra.cpp:9:2: error: stray '\240' in program ultimacifraprimacifra.cpp:11:2: error: stray '\302' in program while(x!=0) ^ ultimacifraprimacifra.cpp:11:2: error: stray '\240' in program ultimacifraprimacifra.cpp:11:2: error: stray '\302' in program ultimacifraprimacifra.cpp:11:2: error: stray '\240' in program ultimacifraprimacifra.cpp:13:2: error: stray '\302' in program { ^ ultimacifraprimacifra.cpp:13:2: error: stray '\240' in program ultimacifraprimacifra.cpp:13:2: error: stray '\302' in program ultimacifraprimacifra.cpp:13:2: error: stray '\240' in program ultimacifraprimacifra.cpp:15:2: error: stray '\302' in program c = x%10; ^ ultimacifraprimacifra.cpp:15:2: error: stray '\240' in program ultimacifraprimacifra.cpp:15:2: error: stray '\302' in program ultimacifraprimacifra.cpp:15:2: error: stray '\240' in program ultimacifraprimacifra.cpp:15:2: error: stray '\302' in program ultimacifraprimacifra.cpp:15:2: error: stray '\240' in program ultimacifraprimacifra.cpp:15:2: error: stray '\302' in program ultimacifraprimacifra.cpp:15:2: error: stray '\240' in program ultimacifraprimacifra.cpp:17:2: error: stray '\302' in program x=x/10; ^ ultimacifraprimacifra.cpp:17:2: error: stray '\240' in program ultimacifraprimacifra.cpp:17:2: error: stray '\302' in program ultimacifraprimacifra.cpp:17:2: error: stray '\240' in program ultimacifraprimacifra.cpp:17:2: error: stray '\302' in program ultimacifraprimacifra.cpp:17:2: error: stray '\240' in program ultimacifraprimacifra.cpp:17:2: error: stray '\302' in program ultimacifraprimacifra.cpp:17:2: error: stray '\240' in program ultimacifraprimacifra.cpp:19:2: error: stray '\302' in program } ^ ultimacifraprimacifra.cpp:19:2: error: stray '\240' in program ultimacifraprimacifra.cpp:19:2: error: stray '\302' in program ultimacifraprimacifra.cpp:19:2: error: stray '\240' in program ultimacifraprimacifra.cpp:21:2: error: stray '\302' in program return c; ^ ultimacifraprimacifra.cpp:21:2: error: stray '\240' in program ultimacifraprimacifra.cpp:21:2: error: stray '\302' in program ultimacifraprimacifra.cpp:21:2: error: stray '\240' in program ultimacifraprimacifra.cpp:29:2: error: stray '\302' in program return x%10; ^ ultimacifraprimacifra.cpp:29:2: error: stray '\240' in program ultimacifraprimacifra.cpp:29:2: error: stray '\302' in program ultimacifraprimacifra.cpp:29:2: error: stray '\240' in program ultimacifraprimacifra.cpp:35:2: error: stray '\302' in program int n=5; ^ ultimacifraprimacifra.cpp:35:2: error: stray '\240' in program ultimacifraprimacifra.cpp:35:2: error: stray '\302' in program ultimacifraprimacifra.cpp:35:2: error: stray '\240' in program ultimacifraprimacifra.cpp:37:2: error: stray '\302' in program int v[]={12, 213, 214, 412, 212}; ^ ultimacifraprimacifra.cpp:37:2: error: stray '\240' in program ultimacifraprimacifra.cpp:37:2: error: stray '\302' in program ultimacifraprimacifra.cpp:37:2: error: stray '\240' in program ultimacifraprimacifra.cpp:39:2: error: stray '\302' in program for(int i=0; i<n-1; i++) ^ ultimacifraprimacifra.cpp:39:2: error: stray '\240' in program ultimacifraprimacifra.cpp:39:2: error: stray '\302' in program ultimacifraprimacifra.cpp:39:2: error: stray '\240' in program ultimacifraprimacifra.cpp:41:2: error: stray '\302' in program if(ultima_cifra(v[i])==prima_cifra(v[i+1])) ^ ultimacifraprimacifra.cpp:41:2: error: stray '\240' in program ultimacifraprimacifra.cpp:41:2: error: stray '\302' in program ultimacifraprimacifra.cpp:41:2: error: stray '\240' in program ultimacifraprimacifra.cpp:41:2: error: stray '\302' in program ultimacifraprimacifra.cpp:41:2: error: stray '\240' in program ultimacifraprimacifra.cpp:41:2: error: stray '\302' in program ultimacifraprimacifra.cpp:41:2: error: stray '\240' in program ultimacifraprimacifra.cpp:43:2: error: stray '\302' in program cout<<v[i]<<" "<<v[i+1]<<endl; ^ ultimacifraprimacifra.cpp:43:2: error: stray '\240' in program ultimacifraprimacifra.cpp:43:2: error: stray '\302' in program ultimacifraprimacifra.cpp:43:2: error: stray '\240' in program ultimacifraprimacifra.cpp:43:2: error: stray '\302' in program ultimacifraprimacifra.cpp:43:2: error: stray '\240' in program ultimacifraprimacifra.cpp:43:2: error: stray '\302' in program ultimacifraprimacifra.cpp:43:2: error: stray '\240' in program ultimacifraprimacifra.cpp:43:2: error: stray '\302' in program ultimacifraprimacifra.cpp:43:2: error: stray '\240' in program ultimacifraprimacifra.cpp:43:2: error: stray '\302' in program ultimacifraprimacifra.cpp:43:2: error: stray '\240' in program ultimacifraprimacifra.cpp:45:2: error: stray '\302' in program return 0; ^ ultimacifraprimacifra.cpp:45:2: error: stray '\240' in program ultimacifraprimacifra.cpp:45:2: error: stray '\302' in program ultimacifraprimacifra.cpp:45:2: error: stray '\240' in program
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema UltimaCifraPrimaCifra 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ă.