#1409
Numere11
Se dau n
numere naturale. Calculați suma obținută prin adunarea celui mai mare divizor prim al fiecărui număr dat.
Problema | Numere11 | Operații I/O | tastatură/ecran |
---|---|---|---|
Limita timp | 1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #50749491 | Utilizator | |
Fișier | numere11.cpp | Dimensiune | 2.34 KB |
Data încărcării | 28 Aprilie 2024, 17:04 | Scor / rezultat | Eroare de compilare |
numere11.cpp:2:44: error: empty character constant ____....----''''\`\`\`\` |. ^ numere11.cpp:2:46: error: empty character constant ____....----''''\`\`\`\` |. ^ numere11.cpp:2:32: error: stray '\`' in program ____....----''''\`\`\`\` |. ^ numere11.cpp:2:32: error: stray '\`' in program numere11.cpp:2:32: error: stray '\`' in program numere11.cpp:2:32: error: stray '\`' in program numere11.cpp:3:25: error: empty character constant ,'''\`\`\`\` ____....----; '. ^ numere11.cpp:3:27: warning: character constant too long for its type [enabled by default] ,'''\`\`\`\` ____....----; '. ^ numere11.cpp:4:36: error: empty character constant | __....----''''\`\`\`\` .-.\`'. '. ^ numere11.cpp:4:38: error: empty character constant | __....----''''\`\`\`\` .-.\`'. '. ^ numere11.cpp:4:24: error: stray '\`' in program | __....----''''\`\`\`\` .-.\`'. '. ^ numere11.cpp:4:24: error: stray '\`' in program numere11.cpp:4:24: error: stray '\`' in program numere11.cpp:4:24: error: stray '\`' in program numere11.cpp:4:24: error: stray '\`' in program numere11.cpp:4:57: warning: multi-character character constant [-Wmultichar] | __....----''''\`\`\`\` .-.\`'. '. ^ numere11.cpp:5:59: warning: multi-character character constant [-Wmultichar] |.-. ..... | | '. '. ^ numere11.cpp:6:24: error: stray '\`' in program \`| | ..:::::::::::::::| | .-;. | ^ numere11.cpp:7:25: error: stray '\`' in program | |\`'-;-::::::::::::::::::::| |,,.| |-=' ^ numere11.cpp:7:29: warning: character constant too long for its type [enabled by default] | |\`'-;-::::::::::::::::::::| |,,.| |-=' ^ numere11.cpp:32:25: error: stray '\`' in program | | ,\`':::::;+++++++++++;:::| |'"-| |-.. ^ numere11.cpp:32:31: warning: character constant too long for its type [enabled by default] | | ,\`':::::;+++++++++++;:::| |'"-| |-.. ^ numere11.cpp:32:57: warning: missing terminating " character [enabled by default] | | ,\`':::::;+++++++++++;:::| |'"-| |-.. ^ numere11.cpp:32:25: error: missing terminating " character | | ,\`':::::;+++++++++++;:::| |'"-| |-.. ^ numere11.cpp:33:28: warning: character constant too long for its type [enabled by default] | |' ::::;+++++++++++++;::| | '-' ,| ^ numere11.cpp:33:61: warning: missing terminating ' character [enabled by default] | |' ::::;+++++++++++++;::| | '-' ,| ^ numere11.cpp:33:25: error: missing terminating ' character | |' ::::;+++++++++++++;::| | '-' ,| ^ numere11.cpp:34:62: warning: missing terminating ' character [enabled by default] | | ::::;++++++++++++++;:| | .' | ^ numere11.cpp:34:25: error: missing terminating ' character | | ::::;++++++++++++++;:| | .' | ^ numere11.cpp:35:27: warning: character constant too long for its type [enabled by default] ,;-'_ \`-._===++++++++++_.-'| | .' .' ^ numere11.cpp:35:60: warning: multi-character character constant [-Wmultichar] ,;-'_ \`-._===++++++++++_.-'| | .' .' ^ numere11.cpp:36:24: error: stray '\`' in program | \`\`\`\`'''----....___-' '-' .' .' ^ numere11.cpp:36:24: error: stray '\`' in program numere11.cpp:36:24: error: stray '\`' in program numere11.cpp:36:24: error: stray '\`' in program numere11.cpp:36:33: error: empty character constant | \`\`\`\`'''----....___-' '-' .' .' ^ numere11.cpp:36:35: warning: character constant too long for its type [enabled by default] | \`\`\`\`'''----....___-' '-' .' .' ^ numere11.cpp:36:58: warning: multi-character character constant [-Wmultichar] | \`\`\`\`'''----....___-' '-' .' .' ^ numere11.cpp:37:24: warning: character constant too long for its type [enabled by default] '---....____ \`\`\`\`'''--; ,' ^ numere11.cpp:37:52: error: empty character constant '---....____ \`\`\`\`'''--; ,' ^ numere11.cpp:37:60: warning: missing terminating ' character [enabled by default] '---....____ \`\`\`\`'''--; ,' ^ numere11.cpp:37:24: error: missing terminating ' character '---....____ \`\`\`\`'''--; ,' ^ numere11.cpp:38:36: error: stray '\`' in program \`\`\`\`''''----....____|.' ^ numere11.cpp:38:36: error: stray '\`' in program numere11.cpp:38:36: error: stray '\`' in program numere11.cpp:38:36: error: stray '\`' in program numere11.cpp:38:40: error: empty character constant \`\`\`\`''''----....____|.' ^ numere11.cpp:38:42: error: empty character constant \`\`\`\`''''----....____|.' ^ numere11.cpp:38:58: warning: missing terminating ' character [enabled by default] \`\`\`\`''''----....____|.' ^ numere11.cpp:38:36: error: missing terminating ' character \`\`\`\`''''----....____|.' ^ numere11.cpp:1:51: error: '____' does not name a type ____ ^ numere11.cpp:6:62: error: expected unqualified-id before '.' token \`| | ..:::::::::::::::| | .-;. | ^ numere11.cpp:9:53: error: expected unqualified-id before '|' token | | | :::::::::::::::;;;;;| | | | ^ numere11.cpp:10:45: error: expected unqualified-id before numeric constant | | | :::::::::;;;10010011| | | | ^ numere11.cpp:11:40: error: expected unqualified-id before numeric constant | | | :::::;;1010001100111| | | | ^ numere11.cpp:12:37: error: expected unqualified-id before numeric constant | | | :::;1110001111000011| | | | ^ numere11.cpp:13:35: error: expected unqualified-id before numeric constant | | | :;111000121110011+++| | | | ^ numere11.cpp:14:35: error: expected unqualified-id before numeric constant | | | |;1100000111++++++++| | | | ^ numere11.cpp:15:36: error: expected unqualified-id before '++' token | | | | ;++++++++++++++++;| | | | ^ numere11.cpp:15:53: error: expected unqualified-id before '|' token | | | | ;++++++++++++++++;| | | | ^ numere11.cpp:16:37: error: expected unqualified-id before '++' token | | | | ;++++++++++++++;.| | | | ^ numere11.cpp:16:52: error: expected unqualified-id before '.' token | | | | ;++++++++++++++;.| | | | ^ numere11.cpp:18:49: error: expected unqualified-id before '.' token | | | | .:++++++++;. | | | | ^ numere11.cpp:19:44: error: expected unqualified-id before '+' token | | | | .:;+:.. | | | | ^ numere11.cpp:20:53: error: expected unqualified-id before '|' token | | | | ;; | | | | ^ numere11.cpp:21:45: error: expected unqualified-id before ':' token | | | | .,:+;:,. | | | | ^ numere11.cpp:22:44: error: expected unqualified-id before '+' token | | | | .::::;+::::, | | | | ^ numere11.cpp:23:47: error: expected id-expression before '::' token | | | | ::::::;;::::::. | | | | ^ numere11.cpp:24:47: error: expected id-expression before '::' token | | | | :::::::+;:::::::.| | | | ^ numere11.cpp:25:47: error: expected id-expression before '::' token | | | | ::::::::;;::::::::| | | | ^ numere11.cpp:28:42: error: expected unqualified-id before '++' token | | | ::::::::;+++;:::::::| | | | ^ numere11.cpp:28:48: error: expected id-expression before '::' token | | | ::::::::;+++;:::::::| | | | ^ numere11.cpp:29:41: error: expected unqualified-id before '++' token | | | :::::::;+++++;::::::| | | | ^ numere11.cpp:29:49: error: expected id-expression before '::' token | | | :::::::;+++++;::::::| | | | ^ numere11.cpp:30:40: error: expected unqualified-id before '++' token | | | ::::::;+++++++;:::::| | | | ^ numere11.cpp:30:50: error: expected id-expression before '::' token | | | ::::::;+++++++;:::::| | | | ^ numere11.cpp:31:39: error: expected unqualified-id before '++' token | | |.:::::;+++++++++;::::| | | | ^ numere11.cpp:31:51: error: expected id-expression before '::' token | | |.:::::;+++++++++;::::| | | | ^ numere11.cpp:34:37: error: expected unqualified-id before '++' token | | ::::;++++++++++++++;:| | .' | ^ numere11.cpp:34:52: error: expected unqualified-id before ':' token | | ::::;++++++++++++++;:| | .' | ^ numere11.cpp:35:26: error: expected unqualified-id before '-' token ,;-'_ \`-._===++++++++++_.-'| | .' .' ^ numere11.cpp:37:59: error: expected unqualified-id before ',' token '---....____ \`\`\`\`'''--; ,' ^ numere11.cpp:38:40: error: expected unqualified-id before '\x0' \`\`\`\`''''----....____|.' ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema Numere11 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ă.