bizarre.cpp: In function ‘int main()’:
bizarre.cpp:19:15: error: ‘sort’ was not declared in this scope
sort(a,a+n);
^
bizarre.cpp:21:27: error: ‘unique’ was not declared in this scope
n = (int)(unique(a,a+n) - a);
^
bizarre.cpp:9:19: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&n);
^
bizarre.cpp:11:26: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&a[i]);
^
bizarre.cpp:14:19: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&m);
^