gap.cpp: In function 'long long int findGap(int, int)':
gap.cpp:36:33: error: 'dis' was not declared in this scope
for(int i = mn; i <= mx; i+=dis)
^
gap.cpp:37:15: warning: unused variable 'a' [-Wunused-variable]
long long a, b;
^
gap.cpp:37:18: warning: unused variable 'b' [-Wunused-variable]
long long a, b;
^
gap.cpp:38:15: error: 'i' was not declared in this scope
MinMax(i,i+dis,&a,&b);
^
gap.cpp:38:19: error: 'dis' was not declared in this scope
MinMax(i,i+dis,&a,&b);
^
gap.cpp:38:24: error: 'a' was not declared in this scope
MinMax(i,i+dis,&a,&b);
^
gap.cpp:38:27: error: 'b' was not declared in this scope
MinMax(i,i+dis,&a,&b);
^
gap.cpp:32:15: warning: unused variable 'mnds' [-Wunused-variable]
long long mnds = (mx-mn)/N;
^
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]
}
^