/ Vijos /

记录详情

Compile Error

/in/foo.cc: In function 'int main()':
/in/foo.cc:7:8: error: 'b' does not name a type
  const b=100;
        ^
/in/foo.cc:8:11: error: 'b' was not declared in this scope
   int n,a[b]=0;
           ^
/in/foo.cc:12:8: error: 'a' was not declared in this scope
   cin>>a[i];
        ^
/in/foo.cc:14:7: error: 'a' was not declared in this scope
  sort(a[0],sizeof(a[i]))
       ^
/in/foo.cc:14:21: error: 'i' was not declared in this scope
  sort(a[0],sizeof(a[i]))
                     ^
/in/foo.cc:15:17: error: 'j' was not declared in this scope
     for(int j=0;j<n;j++)
                 ^

信息

递交者
类型
递交
题目
P1316 明明的随机数
语言
C++
递交时间
2018-03-27 13:33:46
评测时间
2018-03-27 13:33:46
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes