foo.cc: In function 'int main()':
foo.cc:8:2: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
  if(x<1);
  ^~
foo.cc:9:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
  {
  ^
foo.cc:12:2: error: 'else' without a previous 'if'
  else if (x<15);
  ^~~~
foo.cc:12:7: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
  else if (x<15);
       ^~
foo.cc:13:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
  {
  ^
foo.cc:16:2: error: 'else' without a previous 'if'
  else if (x<30);
  ^~~~
foo.cc:16:7: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
  else if (x<30);
       ^~
foo.cc:17:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
  {
  ^
foo.cc:20:2: error: 'else' without a previous 'if'
  else
  ^~~~
   
  
    [Hydro](https://hydro.ac)提供评测服务