gap.cpp: In function 'long long int findGap(int, int)':
gap.cpp:37:15: warning: unused variable 'aa' [-Wunused-variable]
long long aa, bb;
^
gap.cpp:37:19: warning: unused variable 'bb' [-Wunused-variable]
long long aa, bb;
^
gap.cpp:38:15: error: 'i' was not declared in this scope
MinMax(i,i+mnds,&aa,&bb);
^
gap.cpp:38:25: error: 'aa' was not declared in this scope
MinMax(i,i+mnds,&aa,&bb);
^
gap.cpp:38:29: error: 'bb' was not declared in this scope
MinMax(i,i+mnds,&aa,&bb);
^
gap.cpp: At global scope:
gap.cpp:45:2: error: expected unqualified-id before 'return'
return ans;
^
gap.cpp:47:2: error: expected unqualified-id before 'return'
return 0;
^
gap.cpp:48:1: error: expected declaration before '}' token
}
^
gap.cpp: In function 'long long int findGap(int, int)':
gap.cpp:43:2: warning: control reaches end of non-void function [-Wreturn-type]
}
^