Banner Home Page DIY Contests Problems Ranklist Status Statistics

View Compilation Error

2_29033_2274660_2884.cpp:19:2: error: stray '#' in program
         scanf("%d",&s[i]);
  ^
2_29033_2274660_2884.cpp:19:8: error: stray '#' in program
         scanf("%d",&s[i]);
        ^
2_29033_2274660_2884.cpp:19:14: error: stray '#' in program
         scanf("%d",&s[i]);
              ^
2_29033_2274660_2884.cpp:19:20: error: stray '#' in program
         scanf("%d",&s[i]);
                    ^
2_29033_2274660_2884.cpp:19:26: error: stray '#' in program
         scanf("%d",&s[i]);
                          ^
2_29033_2274660_2884.cpp:19:32: error: stray '#' in program
         scanf("%d",&s[i]);
                                ^
2_29033_2274660_2884.cpp:19:38: error: stray '#' in program
         scanf("%d",&s[i]);
                                      ^
2_29033_2274660_2884.cpp:19:44: error: stray '#' in program
         scanf("%d",&s[i]);
                                            ^
2_29033_2274660_2884.cpp:37:2: error: stray '#' in program
         if(i>0)
  ^
2_29033_2274660_2884.cpp:37:8: error: stray '#' in program
         if(i>0)
        ^
2_29033_2274660_2884.cpp:37:14: error: stray '#' in program
         if(i>0)
              ^
2_29033_2274660_2884.cpp:37:20: error: stray '#' in program
         if(i>0)
                    ^
2_29033_2274660_2884.cpp:37:26: error: stray '#' in program
         if(i>0)
                          ^
2_29033_2274660_2884.cpp:37:32: error: stray '#' in program
         if(i>0)
                                ^
2_29033_2274660_2884.cpp:37:38: error: stray '#' in program
         if(i>0)
                                      ^
2_29033_2274660_2884.cpp:37:44: error: stray '#' in program
         if(i>0)
                                            ^
2_29033_2274660_2884.cpp:38:2: error: stray '#' in program
             printf(" ");
  ^
2_29033_2274660_2884.cpp:38:8: error: stray '#' in program
             printf(" ");
        ^
2_29033_2274660_2884.cpp:38:14: error: stray '#' in program
             printf(" ");
              ^
2_29033_2274660_2884.cpp:38:20: error: stray '#' in program
             printf(" ");
                    ^
2_29033_2274660_2884.cpp:38:26: error: stray '#' in program
             printf(" ");
                          ^
2_29033_2274660_2884.cpp:38:32: error: stray '#' in program
             printf(" ");
                                ^
2_29033_2274660_2884.cpp:38:38: error: stray '#' in program
             printf(" ");
                                      ^
2_29033_2274660_2884.cpp:38:44: error: stray '#' in program
             printf(" ");
                                            ^
2_29033_2274660_2884.cpp:38:50: error: stray '#' in program
             printf(" ");
                                                  ^
2_29033_2274660_2884.cpp:38:56: error: stray '#' in program
             printf(" ");
                                                        ^
2_29033_2274660_2884.cpp:38:62: error: stray '#' in program
             printf(" ");
                                                              ^
2_29033_2274660_2884.cpp:38:68: error: stray '#' in program
             printf(" ");
                                                                    ^
2_29033_2274660_2884.cpp: In function 'int main()':
2_29033_2274660_2884.cpp:19:3: error: lvalue required as unary '&' operand
         scanf("%d",&s[i]);
   ^
2_29033_2274660_2884.cpp:19:9: error: lvalue required as unary '&' operand
         scanf("%d",&s[i]);
         ^
2_29033_2274660_2884.cpp:19:15: error: lvalue required as unary '&' operand
         scanf("%d",&s[i]);
               ^
2_29033_2274660_2884.cpp:19:21: error: lvalue required as unary '&' operand
         scanf("%d",&s[i]);
                     ^
2_29033_2274660_2884.cpp:19:27: error: lvalue required as unary '&' operand
         scanf("%d",&s[i]);
                           ^
2_29033_2274660_2884.cpp:19:33: error: lvalue required as unary '&' operand
         scanf("%d",&s[i]);
                                 ^
2_29033_2274660_2884.cpp:19:39: error: lvalue required as unary '&' operand
         scanf("%d",&s[i]);
                                       ^
2_29033_2274660_2884.cpp:19:45: error: lvalue required as unary '&' operand
         scanf("%d",&s[i]);
                                             ^
2_29033_2274660_2884.cpp:19:63: error: 'i' was not declared in this scope
         scanf("%d",&s[i]);
                                                               ^
2_29033_2274660_2884.cpp:37:3: error: lvalue required as unary '&' operand
         if(i>0)
   ^
2_29033_2274660_2884.cpp:37:9: error: lvalue required as unary '&' operand
         if(i>0)
         ^
2_29033_2274660_2884.cpp:37:15: error: lvalue required as unary '&' operand
         if(i>0)
               ^
2_29033_2274660_2884.cpp:37:21: error: lvalue required as unary '&' operand
         if(i>0)
                     ^
2_29033_2274660_2884.cpp:37:27: error: lvalue required as unary '&' operand
         if(i>0)
                           ^
2_29033_2274660_2884.cpp:37:33: error: lvalue required as unary '&' operand
         if(i>0)
                                 ^
2_29033_2274660_2884.cpp:37:39: error: lvalue required as unary '&' operand
         if(i>0)
                                       ^
2_29033_2274660_2884.cpp:37:45: error: lvalue required as unary '&' operand
         if(i>0)
                                             ^
2_29033_2274660_2884.cpp:38:3: error: lvalue required as unary '&' operand
             printf(" ");
   ^
2_29033_2274660_2884.cpp:38:9: error: lvalue required as unary '&' operand
             printf(" ");
         ^
2_29033_2274660_2884.cpp:38:15: error: lvalue required as unary '&' operand
             printf(" ");
               ^
2_29033_2274660_2884.cpp:38:21: error: lvalue required as unary '&' operand
             printf(" ");
                     ^
2_29033_2274660_2884.cpp:38:27: error: lvalue required as unary '&' operand
             printf(" ");
                           ^
2_29033_2274660_2884.cpp:38:33: error: lvalue required as unary '&' operand
             printf(" ");
                                 ^
2_29033_2274660_2884.cpp:38:39: error: lvalue required as unary '&' operand
             printf(" ");
                                       ^
2_29033_2274660_2884.cpp:38:45: error: lvalue required as unary '&' operand
             printf(" ");
                                             ^
2_29033_2274660_2884.cpp:38:51: error: lvalue required as unary '&' operand
             printf(" ");
                                                   ^
2_29033_2274660_2884.cpp:38:57: error: lvalue required as unary '&' operand
             printf(" ");
                                                         ^
2_29033_2274660_2884.cpp:38:63: error: lvalue required as unary '&' operand
             printf(" ");
                                                               ^
2_290