Project Euler #241: Perfection Quotients

  • + 0 comments

    This is my code. I'm getting run-time error. I think I have written correct algorithm. Can anyone tell me where I am wrong...

    include

    include

    using namespace std;

    typedef unsigned long long ll;

    bool pq(ll); ll sigma(ll);

    int main() { ll sum=0,n,i; bool truth; cin>>n; for(i=0;i