Author
anonymous
almost 5 years ago
Language
Compiler
Options
Author
anonymous
almost 5 years ago
$
prog.cc: In lambda function:
prog.cc:3:28: error: use of 'factorial' before deduction of 'auto'
3 | return n > 1 ? n * factorial(n - 1) : 1;
| ^~~~~~~~~
prog.cc: In function 'int main()':
prog.cc:5:21: error: void value not ignored as it ought to be
5 | return factorial(5);
| ~~~~~~~~~^~~
Exit Code:
1