Borderou de evaluare (job #2108033)
Utilizator | Data | 17 ianuarie 2018 20:59:53 | |
---|---|---|---|
Problema | Numar de Divizori | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘int ndiv(int)’:
user.cpp:7:5: error: ‘ll’ was not declared in this scope
ll ans=0;
^
user.cpp:7:8: error: expected ‘;’ before ‘ans’
ll ans=0;
^
user.cpp:8:32: error: ‘ans’ was not declared in this scope
for (int i=1; i*i<=q; i++) ans+=(q/i) * 2;
^
user.cpp:10:12: error: ‘ans’ was not declared in this scope
return ans + r - r * (r + 1);
^
user.cpp:11:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !