#2238
cifre005
Se dau n
numere naturale. Să se afle pentru câte dintre numere, suma cifrelor împărţită la 9
dă restul r
.
Problema | cifre005 | Operații I/O | tastatură/ecran |
---|---|---|---|
Limita timp | 0.2 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #15661578 | Utilizator | |
Fișier | cifre005.cpp | Dimensiune | 265 B |
Data încărcării | 06 Mai 2019, 10:48 | Scor / rezultat | Eroare de compilare |
cifre005.cpp: In function 'int main()': cifre005.cpp:8:11: warning: right operand of comma operator has no effect [-Wunused-value] for(i=1, i<=n, i++) ^ cifre005.cpp:8:19: error: expected ';' before ')' token for(i=1, i<=n, i++) ^ cifre005.cpp:19:1: error: expected primary-expression at end of input } ^ cifre005.cpp:19:1: error: expected ';' at end of input cifre005.cpp:19:1: error: expected primary-expression at end of input cifre005.cpp:19:1: error: expected ')' at end of input cifre005.cpp:19:1: error: expected statement at end of input cifre005.cpp:6:14: warning: unused variable 'x' [-Wunused-variable] {long long n,x,i,r,j=0,s; ^ cifre005.cpp:6:20: warning: unused variable 'j' [-Wunused-variable] {long long n,x,i,r,j=0,s; ^ cifre005.cpp:6:24: warning: unused variable 's' [-Wunused-variable] {long long n,x,i,r,j=0,s; ^ cifre005.cpp:19:1: error: expected '}' at end of input } ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema cifre005 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ă.