运行 ID: 121406

Main.cc: In function ‘int main()’:
Main.cc:6:18: error: expected ‘;’ before ‘<=’ token
     for(int i=1,i<=n;i++) {
                  ^~
Main.cc:6:18: error: expected primary-expression before ‘<=’ token
Main.cc:9:20: error: expected ‘;’ before ‘<=’ token
       for(int i=1,i<=n;i++) {
                    ^~
Main.cc:9:20: error: expected primary-expression before ‘<=’ token
Main.cc:10:10: warning: unused variable ‘ansl’ [-Wunused-variable]
      int ansl=0,ansr=0;
          ^~~~
Main.cc:10:17: warning: unused variable ‘ansr’ [-Wunused-variable]
      int ansl=0,ansr=0;
                 ^~~~
Main.cc:13:20: error: expected ‘;’ before ‘<=’ token
       for(int j=0,j<=n;j++) {
                    ^~
Main.cc:13:20: error: expected primary-expression before ‘<=’ token
Main.cc:16:15: error: ‘ansl’ was not declared in this scope
               ansl=j;
               ^~~~
Main.cc:16:15: note: suggested alternative: ‘ffsl’
               ansl=j;
               ^~~~
               ffsl
Main.cc:19:15: error: ‘ansr’ was not declared in this scope
               ansr=j;
               ^~~~
Main.cc:19:15: note: suggested alternative: ‘abs’
               ansr=j;
               ^~~~
               abs
Main.cc:22:27: error: ‘ansl’ was not declared in this scope
           printf("%d%d\n",ansl,ansr);
                           ^~~~
Main.cc:22:27: note: suggested alternative: ‘ffsl’
           printf("%d%d\n",ansl,ansr);
                           ^~~~
                           ffsl
Main.cc:22:32: error: ‘ansr’ was not declared in this scope
           printf("%d%d\n",ansl,ansr);
                                ^~~~
Main.cc:22:32: note: suggested alternative: ‘abs’
           printf("%d%d\n",ansl,ansr);
                                ^~~~
                                abs
Main.cc:27:1: error: expected ‘}’ at end of input
 }
 ^
Main.cc:7:14: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
         scanf("%d%d%d",&h[i],&l[i],&r[i]);
         ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~