The document “operations.h” could not be saved. You don’t have permission. To view or change permissions, select the item in the Finder and choose File > Get Info.

I tried to sort an array in descending order in C++. So, I used

std::sort(x, x + len, greater<int>());

and Xcode shows debugging message

Use of undeclared identifier 'greater'; did you mean 'std::greater'?

Fix in operations.h

I accidentally clicked the fix button and after that when I try to run this project, a warning message of

The document “operations.h” could not be saved. You don’t have permission.

To view or change permissions, select the item in the Finder and choose File > Get Info.

comes up.

How do I get rid of this message and undo the changes made?

Please help me it is so annoying.....

The document “operations.h” could not be saved. You don’t have permission. To view or change permissions, select the item in the Finder and choose File &gt; Get Info.
 
 
Q