#ifndef FUNCTION14_H_
#define FUNCTION14_H_
#include <bits/stdc++.h>
using namespace std;
int factorial( int m) ;
int comb( int n,int k) ;
int main ( )
{
int n;
cin >> n;
long long sum1 = 0 , sum2 = 0 ;
for ( int i = 0 ; i < n; i++ )
{
int a, b, c;
cin >> a >> b >> c;
sum1 + = factorial( a) ;
sum2 + = comb( b, c) ;
}
cout << sum1 << ' ' << sum2 << '\n ' ;
}
#endif
I2lmbmRlZiBGVU5DVElPTjE0X0hfCiNkZWZpbmUgRlVOQ1RJT04xNF9IXwojaW5jbHVkZSA8Yml0cy9zdGRjKysuaD4KdXNpbmcgbmFtZXNwYWNlIHN0ZDsKaW50IGZhY3RvcmlhbChpbnQgbSk7CmludCBjb21iKGludCBuLGludCBrKTsKaW50IG1haW4gKCkKewogICAgaW50IG47CiAgICBjaW4gPj4gbjsKCiAgICBsb25nIGxvbmcgc3VtMSA9IDAsIHN1bTIgPSAwOwogICAgZm9yIChpbnQgaSA9IDA7IGkgPCBuOyBpKyspCiAgICB7CiAgICAgICAgaW50IGEsIGIsIGM7CiAgICAgICAgY2luID4+IGEgPj4gYiA+PiBjOwogICAgICAgIHN1bTEgKz0gZmFjdG9yaWFsKGEpOwogICAgICAgIHN1bTIgKz0gY29tYihiLCBjKTsKICAgIH0KCiAgICBjb3V0IDw8IHN1bTEgPDwgJyAnIDw8IHN1bTIgPDwgJ1xuJzsKfQojZW5kaWY=
compilation info
/usr/bin/ld: /home/v0NWtm/cc22ppKc.o: in function `main':
prog.cpp:(.text.startup+0x86): undefined reference to `factorial(int)'
/usr/bin/ld: prog.cpp:(.text.startup+0x98): undefined reference to `comb(int, int)'
collect2: error: ld returned 1 exit status
stdout