运行 ID: 35303

Main.cc: In function ‘int main()’:
Main.cc:7:11: error: ‘a’ was not declared in this scope
     int s[a];
           ^
Main.cc:8:20: warning: comparison of constant ‘100’ with boolean expression is always true [-Wbool-compare]
     for(int c=0;0>s[c];
                 ^
Main.cc:10:17: error: invalid types ‘int[int]’ for array subscript
         sum+=s[c]
                 ^
Main.cc:13:9: error: ‘retun’ was not declared in this scope
         retun 0;
         ^~~~~
Main.cc:13:9: note: suggested alternative: ‘rewind’
         retun 0;
         ^~~~~
         rewind