fork download
  1. program P(input,output);
  2. var m,n:integer;
  3. function FUN(n:integer):integer;
  4. var x:integer
  5. begin
  6. if n < 1 then FUN:=1
  7. else begin
  8. x:=n*FUN(n-1);
  9. m:=m-1;
  10. FUN:=m+x;
  11. end;
  12. end;
  13. begin
  14. readln (m,n);
  15. writeln (m,n,FUN(n));
  16. end.
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cs(1,11): error CS1041: Identifier expected
prog.cs(1,17): error CS1041: Identifier expected
prog.cs(1,11): error CS0100: The parameter name `NeedSomeGeneratorHere' is a duplicate
prog.cs(1,9): error CS0116: A namespace can only contain types and namespace declarations
prog.cs(2,8): error CS8025: Parsing error
Compilation failed: 5 error(s), 0 warnings
stdout
Standard output is empty