#2987
Buletin
Se dă un număr natural n
cu exact 13 cifre reprezentând un cod numeric personal. Să se afișeze anul, luna și ziua nașterii deținătorului.
Problema | Buletin | Operații I/O | tastatură/ecran |
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 32 MB
/
Stivă 4 MB
|
Id soluție | #16672107 | Utilizator | |
Fișier | buletin.cpp | Dimensiune | 383 B |
Data încărcării | 15 Septembrie 2019, 21:42 | Scor / rezultat | Eroare de compilare |
buletin.cpp:1:21: warning: extra tokens at end of #include directive [enabled by default] #include <iostream> ^ buletin.cpp:11:2: error: stray '\302' in program cin >> n; ^ buletin.cpp:11:2: error: stray '\240' in program buletin.cpp:11:2: error: stray '\302' in program buletin.cpp:11:2: error: stray '\240' in program buletin.cpp:13:2: error: stray '\302' in program n=n/1000000; ^ buletin.cpp:13:2: error: stray '\240' in program buletin.cpp:13:2: error: stray '\302' in program buletin.cpp:13:2: error: stray '\240' in program buletin.cpp:15:2: error: stray '\302' in program z=n%100; n=n/100; ^ buletin.cpp:15:2: error: stray '\240' in program buletin.cpp:15:2: error: stray '\302' in program buletin.cpp:15:2: error: stray '\240' in program buletin.cpp:17:2: error: stray '\302' in program l=n%100; n=n/100; ^ buletin.cpp:17:2: error: stray '\240' in program buletin.cpp:17:2: error: stray '\302' in program buletin.cpp:17:2: error: stray '\240' in program buletin.cpp:19:2: error: stray '\302' in program a=n%100; n=n/100; ^ buletin.cpp:19:2: error: stray '\240' in program buletin.cpp:19:2: error: stray '\302' in program buletin.cpp:19:2: error: stray '\240' in program buletin.cpp:21:2: error: stray '\302' in program if (a<10) cout << 0; ^ buletin.cpp:21:2: error: stray '\240' in program buletin.cpp:21:2: error: stray '\302' in program buletin.cpp:21:2: error: stray '\240' in program buletin.cpp:23:2: error: stray '\302' in program cout << a << " "; ^ buletin.cpp:23:2: error: stray '\240' in program buletin.cpp:23:2: error: stray '\302' in program buletin.cpp:23:2: error: stray '\240' in program buletin.cpp:25:2: error: stray '\302' in program if (l<10) cout << 0; ^ buletin.cpp:25:2: error: stray '\240' in program buletin.cpp:25:2: error: stray '\302' in program buletin.cpp:25:2: error: stray '\240' in program buletin.cpp:27:2: error: stray '\302' in program cout << l << " "; ^ buletin.cpp:27:2: error: stray '\240' in program buletin.cpp:27:2: error: stray '\302' in program buletin.cpp:27:2: error: stray '\240' in program buletin.cpp:29:2: error: stray '\302' in program if (z<10) cout << 0; ^ buletin.cpp:29:2: error: stray '\240' in program buletin.cpp:29:2: error: stray '\302' in program buletin.cpp:29:2: error: stray '\240' in program buletin.cpp:31:2: error: stray '\302' in program cout << z; ^ buletin.cpp:31:2: error: stray '\240' in program buletin.cpp:31:2: error: stray '\302' in program buletin.cpp:31:2: error: stray '\240' in program
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema Buletin 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ă.