fork(3) download
  1. #include<bits/stdc++.h>
  2. using namespace std;
  3. using ll=long long int;
  4. ll CountDivisors(ll x){
  5. ll count=0;
  6. for(int i=1;i*i<=x;i++){
  7. if(x%i==0){
  8. if(x/i!=i){
  9. count+=2;
  10. }else{
  11. count++;
  12. }
  13. }
  14. }
  15. return count;
  16. }
  17. int main(){
  18. ll n;
  19. cin>>n;
  20. while(n--){
  21. ll x;
  22. cin>>x;
  23. cout<<CountDivisors(x)<<"\n";
  24. }
  25. r
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp:25:5: error: use of undeclared identifier 'r'
    r
    ^
prog.cpp:25:6: error: expected '}'
    r
     ^
prog.cpp:17:11: note: to match this '{'
int main(){
          ^
2 errors generated.
stdout
Standard output is empty