kangaroo.cpp: In function 'int main()':
kangaroo.cpp:22:14: error: expected primary-expression before ';' token
if(ok)ans=+;
^
kangaroo.cpp:24:35: error: 'next_permutation' was not declared in this scope
}while(next_permutation(vec,vec+n));
^
kangaroo.cpp:8:34: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("kangaroo.in","r",stdin);
^
kangaroo.cpp:9:36: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("kangoroo.out","w",stdout);
^
kangaroo.cpp:11:27: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d%d", &n,&s,&e);
^
kangaroo.cpp:13:23: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &vec[i]);
^