Problem pascal
User simps
Submission Time 2023-07-06 15:57:50
Score 0
Max Time N/A
Max Memory N/A

Compile Error

pascal.cpp:4:24: error: ‘long long unsigned int div’ redeclared as different kind of entity
4 | unsigned long long int div;
| ^~~
In file included from /usr/include/c++/9/bits/std_abs.h:38,
from /usr/include/c++/9/cmath:47,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:41,
from pascal.cpp:1:
/usr/include/stdlib.h:852:14: note: previous declaration ‘div_t div(int, int)’
852 | extern div_t div (int __numer, int __denom)
| ^~~
pascal.cpp:6:16: error: ‘a’ was not declared in this scope
6 | int factorial (a) {
| ^
pascal.cpp: In function ‘int main()’:
pascal.cpp:15:27: error: ‘factorial’ cannot be used as a function
15 | div = (R-C) * factorial(C)
| ^