friend.cpp:26:4: error: ambiguating new declaration of 'long long int findSample(int, int*, int*, int*)'
26 | ll findSample(int n, int confidence[], int host[], int protocol[]) {
| ^~~~~~~~~~
In file included from friend.cpp:4:
friend.h:7:5: note: old declaration 'int findSample(int, int*, int*, int*)'
7 | int findSample(int n,int confidence[],int host[],int protocol[]);
| ^~~~~~~~~~
friend.cpp:65:5: error: 'cin' does not name a type
65 | cin >> n;
| ^~~
friend.cpp:67:14: error: size of array 'conf' is not an integral constant-expression
67 | int conf[n], host[n], prot[n];
| ^
friend.cpp:67:23: error: size of array 'host' is not an integral constant-expression
67 | int conf[n], host[n], prot[n];
| ^
friend.cpp:67:32: error: size of array 'prot' is not an integral constant-expression
67 | int conf[n], host[n], prot[n];
| ^
friend.cpp:20:18: error: expected unqualified-id before 'for'
20 | #define f(i,x,n) for(int i=x;i<n;i++)
| ^~~
friend.cpp:68:5: note: in expansion of macro 'f'
68 | f(i,0,n) {
| ^
friend.cpp:68:7: error: 'i' does not name a type; did you mean 'vi'?
68 | f(i,0,n) {
| ^
friend.cpp:20:30: note: in definition of macro 'f'
20 | #define f(i,x,n) for(int i=x;i<n;i++)
| ^
friend.cpp:68:7: error: 'i' does not name a type; did you mean 'vi'?
68 | f(i,0,n) {
| ^
friend.cpp:20:34: note: in definition of macro 'f'
20 | #define f(i,x,n) for(int i=x;i<n;i++)
| ^
friend.cpp:20:18: error: expected unqualified-id before 'for'
20 | #define f(i,x,n) for(int i=x;i<n;i++)
| ^~~
friend.cpp:71:5: note: in expansion of macro 'f'
71 | f(i,1,n) {
| ^
friend.cpp:71:7: error: 'i' does not name a type; did you mean 'vi'?
71 | f(i,1,n) {
| ^
friend.cpp:20:30: note: in definition of macro 'f'
20 | #define f(i,x,n) for(int i=x;i<n;i++)
| ^
friend.cpp:71:7: error: 'i' does not name a type; did you mean 'vi'?
71 | f(i,1,n) {
| ^
friend.cpp:20:34: note: in definition of macro 'f'
20 | #define f(i,x,n) for(int i=x;i<n;i++)
| ^
friend.cpp:74:5: error: 'cout' does not name a type
74 | cout << findSample(n,conf,host,prot) << endl;
| ^~~~
friend.cpp:75:1: error: expected declaration before '}' token
75 | }*/
| ^
friend.cpp:75:3: error: expected unqualified-id before '/' token
75 | }*/
| ^