Se citește un număr natural n
. Să se determine câți divizori pari are acest număr.
Problema | Numarul Divizorilor Pari | Operații I/O | tastatură/ecran |
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #13228417 | Utilizator | |
Fișier | numarul_divizorilor_pari.cpp | Dimensiune | 388 B |
Data încărcării | 15 Ianuarie 2019, 08:43 | Scor / rezultat | Eroare de compilare |
numarul_divizorilor_pari.cpp:1:9: error: #include expects "FILENAME" or <FILENAME> #include <iostream> ^ numarul_divizorilor_pari.cpp:2:1: error: stray '\302' in program using namespace std; ^ numarul_divizorilor_pari.cpp:2:1: error: stray '\240' in program numarul_divizorilor_pari.cpp:2:1: error: stray '\302' in program numarul_divizorilor_pari.cpp:2:1: error: stray '\240' in program numarul_divizorilor_pari.cpp:3:1: error: stray '\302' in program int n,nr,d; ^ numarul_divizorilor_pari.cpp:3:1: error: stray '\240' in program numarul_divizorilor_pari.cpp:4:1: error: stray '\302' in program int main() ^ numarul_divizorilor_pari.cpp:4:1: error: stray '\240' in program numarul_divizorilor_pari.cpp:6:1: error: stray '\302' in program cin>>n; ^ numarul_divizorilor_pari.cpp:6:1: error: stray '\240' in program numarul_divizorilor_pari.cpp:6:1: error: stray '\302' in program numarul_divizorilor_pari.cpp:6:1: error: stray '\240' in program numarul_divizorilor_pari.cpp:6:1: error: stray '\302' in program numarul_divizorilor_pari.cpp:6:1: error: stray '\240' in program numarul_divizorilor_pari.cpp:6:1: error: stray '\302' in program numarul_divizorilor_pari.cpp:6:1: error: stray '\240' in program numarul_divizorilor_pari.cpp:7:1: error: stray '\302' in program for(d=1;d*d<n;d++) ^ numarul_divizorilor_pari.cpp:7:1: error: stray '\240' in program numarul_divizorilor_pari.cpp:7:1: error: stray '\302' in program numarul_divizorilor_pari.cpp:7:1: error: stray '\240' in program numarul_divizorilor_pari.cpp:7:1: error: stray '\302' in program numarul_divizorilor_pari.cpp:7:1: error: stray '\240' in program numarul_divizorilor_pari.cpp:7:1: error: stray '\302' in program numarul_divizorilor_pari.cpp:7:1: error: stray '\240' in program numarul_divizorilor_pari.cpp:8:1: error: stray '\302' in program { ^ numarul_divizorilor_pari.cpp:8:1: error: stray '\240' in program numarul_divizorilor_pari.cpp:8:1: error: stray '\302' in program numarul_divizorilor_pari.cpp:8:1: error: stray '\240' in program numarul_divizorilor_pari.cpp:8:1: error: stray '\302' in program numarul_divizorilor_pari.cpp:8:1: error: stray '\240' in program numarul_divizorilor_pari.cpp:8:1: error: stray '\302' in program numarul_divizorilor_pari.cpp:8:1: error: stray '\240' in program numarul_divizorilor_pari.cpp:9:1: error: stray '\302' in program if(n%d==0) ^ numarul_divizorilor_pari.cpp:9:1: error: stray '\240' in program numarul_divizorilor_pari.cpp:9:1: error: stray '\302' in program numarul_divizorilor_pari.cpp:9:1: error: stray '\240' in program numarul_divizorilor_pari.cpp:9:1: error: stray '\302' in program numarul_divizorilor_pari.cpp:9:1: error: stray '\240' in program numarul_divizorilor_pari.cpp:9:1: error: stray '\302' in program numarul_divizorilor_pari.cpp:9:1: error: stray '\240' in program numarul_divizorilor_pari.cpp:9:1: error: stray '\302' in program numarul_divizorilor_pari.cpp:9:1: error: stray '\240' in program numarul_divizorilor_pari.cpp:9:1: error: stray '\302' in program numarul_divizorilor_pari.cpp:9:1: error: stray '\240' in program numarul_divizorilor_pari.cpp:9:1: error: stray '\302' in program numarul_divizorilor_pari.cpp:9:1: error: stray '\240' in program numarul_divizorilor_pari.cpp:9:1: error: stray '\302' in program numarul_divizorilor_pari.cpp:9:1: error: stray '\240' in program numarul_divizorilor_pari.cpp:10:1: error: stray '\302' in program { ^ numarul_divizorilor_pari.cpp:10:1: error: stray '\240' in program numarul_divizorilor_pari.cpp:10:1: error: stray '\302' in program numarul_divizorilor_pari.cpp:10:1: error: stray '\240' in program numarul_divizorilor_pari.cpp:10:1: error: stray '\302' in program numarul_divizorilor_pari.cpp:10:1: error: stray '\240' in program numarul_divizorilor_pari.cpp:10:1: error: stray '\302' in program numarul_divizorilor_pari.cpp:10:1: error: stray '\240' in program numarul_divizorilor_pari.cpp:10:1: error: stray '\302' in program numarul_divizorilor_pari.cpp:10:1: error: stray '\240' in program numarul_divizorilor_pari.cpp:10:1: error: stray '\302' in program numarul_divizorilor_pari.cpp:10:1: error: stray '\240' in program numarul_divizorilor_pari.cpp:10:1: error: stray '\302' in program numarul_divizorilor_pari.cpp:10:1: error: stray '\240' in program numarul_divizorilor_pari.cpp:10:1: error: stray '\302' in program numarul_divizorilor_pari.cpp:10:1: error: stray '\240' in program numarul_divizorilor_pari.cpp:10:1: error: stray '\302' in program numarul_divizorilor_pari.cpp:10:1: error: stray '\240' in program numarul_divizorilor_pari.cpp:11:1: error: stray '\302' in program if(d%2==0) nr++; ^ numarul_divizorilor_pari.cpp:11:1: error: stray '\240' in program numarul_divizorilor_pari.cpp:11:1: error: stray '\302' in program numarul_divizorilor_pari.cpp:11:1: error: stray '\240' in program numarul_divizorilor_pari.cpp:11:1: error: stray '\302' in program numarul_divizorilor_pari.cpp:11:1: error: stray '\240' in program numarul_divizorilor_pari.cpp:11:1: error: stray '\302' in program numarul_divizorilor_pari.cpp:11:1: error: stray '\240' in program numarul_divizorilor_pari.cpp:11:1: error: stray '\302' in program numarul_divizorilor_pari.cpp:11:1: error: stray '\240' in program numarul_divizorilor_pari.cpp:11:1: error: stray '\302' in program numarul_divizorilor_pari.cpp:11:1: error: stray '\240' in program numarul_divizorilor_pari.cpp:11:1: error: stray '\302' in program numarul_divizorilor_pari.cpp:11:1: error: stray '\240' in program numarul_divizorilor_pari.cpp:11:1: error: stray '\302' in program numarul_divizorilor_pari.cpp:11:1: error: stray '\240' in program numarul_divizorilor_pari.cpp:11:1: error: stray '\302' in program numarul_divizorilor_pari.cpp:11:1: error: stray '\240' in program numarul_divizorilor_pari.cpp:11:1: error: stray '\302' in program numarul_divizorilor_pari.cpp:11:1: error: stray '\240' in program numarul_divizorilor_pari.cpp:11:1: error: stray '\302' in program numarul_divizorilor_pari.cpp:11:1: error: stray '\240' in program numarul_divizorilor_pari.cpp:11:1: error: stray '\302' in program numarul_divizorilor_pari.cpp:11:1: error: stray '\240' in program numarul_divizorilor_pari.cpp:11:1: error: stray '\302' in program numarul_divizorilor_pari.cpp:11:1: error: stray '\240' in program numarul_divizorilor_pari.cpp:11:1: error: stray '\302' in program numarul_divizorilor_pari.cpp:11:1: error: stray '\240' in program numarul_divizorilor_pari.cpp:12:1: error: stray '\302' in program if((n/d)%2==0) nr++; ^ numarul_divizorilor_pari.cpp:12:1: error: stray '\240' in program numarul_divizorilor_pari.cpp:12:1: error: stray '\302' in program numarul_divizorilor_pari.cpp:12:1: error: stray '\240' in program numarul_divizorilor_pari.cpp:12:1: error: stray '\302' in program numarul_divizorilor_pari.cpp:12:1: error: stray '\240' in program numarul_divizorilor_pari.cpp:12:1: error: stray '\302' in program numarul_divizorilor_pari.cpp:12:1: error: stray '\240' in program numarul_divizorilor_pari.cpp:12:1: error: stray '\302' in program numarul_divizorilor_pari.cpp:12:1: error: stray '\240' in program numarul_divizorilor_pari.cpp:12:1: error: stray '\302' in program numarul_divizorilor_pari.cpp:12:1: error: stray '\240' in program numarul_divizorilor_pari.cpp:12:1: error: stray '\302' in program numarul_divizorilor_pari.cpp:12:1: error: stray '\240' in program numarul_divizorilor_pari.cpp:12:1: error: stray '\302' in program numarul_divizorilor_pari.cpp:12:1: error: stray '\240' in program numarul_divizorilor_pari.cpp:12:1: error: stray '\302' in program numarul_divizorilor_pari.cpp:12:1: error: stray '\240' in program numarul_divizorilor_pari.cpp:12:1: error: stray '\302' in program numarul_divizorilor_pari.cpp:12:1: error: stray '\240' in program numarul_divizorilor_pari.cpp:12:1: error: stray '\302' in program numarul_divizorilor_pari.cpp:12:1: error: stray '\240' in program numarul_divizorilor_pari.cpp:12:1: error: stray '\302' in program numarul_divizorilor_pari.cpp:12:1: error: stray '\240' in program numarul_divizorilor_pari.cpp:12:1: error: stray '\302' in program numarul_divizorilor_pari.cpp:12:1: error: stray '\240' in program numarul_divizorilor_pari.cpp:12:1: error: stray '\302' in program numarul_divizorilor_pari.cpp:12:1: error: stray '\240' in program numarul_divizorilor_pari.cpp:13:1: error: stray '\302' in program } ^ numarul_divizorilor_pari.cpp:13:1: error: stray '\240' in program numarul_divizorilor_pari.cpp:13:1: error: stray '\302' in program numarul_divizorilor_pari.cpp:13:1: error: stray '\240' in program numarul_divizorilor_pari.cpp:13:1: error: stray '\302' in program numarul_divizorilor_pari.cpp:13:1: error: stray '\240' in program numarul_divizorilor_pari.cpp:13:1: error: stray '\302' in program numarul_divizorilor_pari.cpp:13:1: error: stray '\240' in program numarul_divizorilor_pari.cpp:13:1: error: stray '\302' in program numarul_divizorilor_pari.cpp:13:1: error: stray '\240' in program numarul_divizorilor_pari.cpp:13:1: error: stray '\302' in program numarul_divizorilor_pari.cpp:13:1: error: stray '\240' in program numarul_divizorilor_pari.cpp:13:1: error: stray '\302' in program numarul_divizorilor_pari.cpp:13:1: error: stray '\240' in program numarul_divizorilor_pari.cpp:13:1: error: stray '\302' in program numarul_divizorilor_pari.cpp:13:1: error: stray '\240' in program numarul_divizorilor_pari.cpp:13:1: error: stray '\302' in program numarul_divizorilor_pari.cpp:13:1: error: stray '\240' in program numarul_divizorilor_pari.cpp:14:1: error: stray '\302' in program } ^ numarul_divizorilor_pari.cpp:14:1: error: stray '\240' in program numarul_divizorilor_pari.cpp:14:1: error: stray '\302' in program numarul_divizorilor_pari.cpp:14:1: error: stray '\240' in program numarul_divizorilor_pari.cpp:14:1: error: stray '\302' in program numarul_divizorilor_pari.cpp:14:1: error: stray '\240' in program numarul_divizorilor_pari.cpp:14:1: error: stray '\302' in program numarul_divizorilor_pari.cpp:14:1: error: stray '\240' in program numarul_divizorilor_pari.cpp:15:1: error: stray '\302' in program if((d*d==n)&&(d%2==0)) nr++; ^ numarul_divizorilor_pari.cpp:15:1: error: stray '\240' in program numarul_divizorilor_pari.cpp:15:1: error: stray '\302' in program numarul_divizorilor_pari.cpp:15:1: error: stray '\240' in program numarul_divizorilor_pari.cpp:15:1: error: stray '\302' in program numarul_divizorilor_pari.cpp:15:1: error: stray '\240' in program numarul_divizorilor_pari.cpp:15:1: error: stray '\302' in program numarul_divizorilor_pari.cpp:15:1: error: stray '\240' in program numarul_divizorilor_pari.cpp:15:1: error: stray '\302' in program numarul_divizorilor_pari.cpp:15:1: error: stray '\240' in program numarul_divizorilor_pari.cpp:16:1: error: stray '\302' in program cout<<nr; ^ numarul_divizorilor_pari.cpp:16:1: error: stray '\240' in program numarul_divizorilor_pari.cpp:16:1: error: stray '\302' in program numarul_divizorilor_pari.cpp:16:1: error: stray '\240' in program numarul_divizorilor_pari.cpp:16:1: error: stray '\302' in program numarul_divizorilor_pari.cpp:16:1: error: stray '\240' in program numarul_divizorilor_pari.cpp:16:1: error: stray '\302' in program numarul_divizorilor_pari.cpp:16:1: error: stray '\240' in program numarul_divizorilor_pari.cpp:17:1: error: stray '\302' in program return 0; ^ numarul_divizorilor_pari.cpp:17:1: error: stray '\240' in program numarul_divizorilor_pari.cpp:17:1: error: stray '\302' in program numarul_divizorilor_pari.cpp:17:1: error: stray '\240' in program numarul_divizorilor_pari.cpp:17:1: error: stray '\302' in program numarul_divizorilor_pari.cpp:17:1: error: stray '\240' in program numarul_divizorilor_pari.cpp:17:1: error: stray '\302' in program numarul_divizorilor_pari.cpp:17:1: error: stray '\240' in program numarul_divizorilor_pari.cpp:17:1: error: stray '\302' in program numarul_divizorilor_pari.cpp:17:1: error: stray '\240' in program numarul_divizorilor_pari.cpp: In function 'int main()': numarul_divizorilor_pari.cpp:6:9: error: 'cin' was not declared in this scope cin>>n; ^ numarul_divizorilor_pari.cpp:16:9: error: 'cout' was not declared in this scope cout<<nr; ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema Numarul Divizorilor Pari 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ă.