stones.cpp: In function ‘int main()’:
stones.cpp:51:9: warning: ‘auto’ changes meaning in C++11; please remove it [-Wc++0x-compat]
auto I = s.begin();
^
stones.cpp:51:14: error: ‘I’ does not name a type
auto I = s.begin();
^
stones.cpp:52:9: warning: ‘auto’ changes meaning in C++11; please remove it [-Wc++0x-compat]
auto J = S.begin();
^
stones.cpp:52:14: error: ‘J’ does not name a type
auto J = S.begin();
^
stones.cpp:58:15: error: ‘I’ was not declared in this scope
while(I != s.end() && J != S.end()){
^
stones.cpp:58:31: error: ‘J’ was not declared in this scope
while(I != s.end() && J != S.end()){
^
stones.cpp:30:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &n);
^
stones.cpp:32:40: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
int x, y; scanf("%d%d", &x, &y);
^