Banner Home Page DIY Contests Problems Ranklist Status Statistics

View Compilation Error

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