ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Discussion of Problem 1083. Factorials!!!

Why Compilation Error
Posted by XSpider 4 Mar 2008 23:20
#include<iostream.h>
int main()
{int n, k=0;
int result = 1;
char test[20];
scanf("%d %s",&n, test);

while (test[k++]);
k--;

while (n>0)
   { result *= n;
     n = n-k;
   }

printf("%d", result);

        return 0;
}
What is wrong?!
Re: Why Compilation Error
Posted by Varoon 13 Mar 2008 09:46
#include<stdio.h>