#3200
neaDragulin
Nea Drăgulin are un număr natural n
pe care îl scrie de k
ori, unul după altul. Aflaţi restul împărţirii numărului astfel obţinut la 72
.
Problema | neaDragulin | Operații I/O | tastatură/ecran |
---|---|---|---|
Limita timp | 0.5 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #38177946 | Utilizator | |
Fișier | neadragulin.cpp | Dimensiune | 572 B |
Data încărcării | 02 Octombrie 2022, 16:54 | Scor / rezultat | Eroare de compilare |
neadragulin.cpp:33:4: error: stray '\342' in program while((k – 1) % 72 > 0) ^ neadragulin.cpp:33:4: error: stray '\200' in program neadragulin.cpp:33:4: error: stray '\223' in program neadragulin.cpp:35:4: error: stray '\342' in program { k–; ^ neadragulin.cpp:35:4: error: stray '\200' in program neadragulin.cpp:35:4: error: stray '\223' in program neadragulin.cpp:37:8: error: stray '\342' in program cout << n << ‘ ‘ << n % 72 << ‘\n’; ^ neadragulin.cpp:37:8: error: stray '\200' in program neadragulin.cpp:37:8: error: stray '\230' in program neadragulin.cpp:37:8: error: stray '\342' in program neadragulin.cpp:37:8: error: stray '\200' in program neadragulin.cpp:37:8: error: stray '\230' in program neadragulin.cpp:37:8: error: stray '\342' in program neadragulin.cpp:37:8: error: stray '\200' in program neadragulin.cpp:37:8: error: stray '\230' in program neadragulin.cpp:37:8: error: stray '\' in program neadragulin.cpp:37:8: error: stray '\342' in program neadragulin.cpp:37:8: error: stray '\200' in program neadragulin.cpp:37:8: error: stray '\231' in program neadragulin.cpp:9:6: error: expected primary-expression before 'int' { int ret = 0; ^ neadragulin.cpp:9:6: error: expected '}' before 'int' neadragulin.cpp:9:6: error: expected ',' or ';' before 'int' neadragulin.cpp:11:4: error: expected unqualified-id before 'while' while (n) ^ neadragulin.cpp:19:4: error: expected unqualified-id before 'return' return ret; ^ neadragulin.cpp:21:1: error: expected declaration before '}' token } ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema neaDragulin 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ă.