/ Vijos /

记录详情

Compile Error

/in/foo.cc: In function 'int main()':
/in/foo.cc:12:10: warning: unused variable 'arr' [-Wunused-variable]
     int *arr=(int *)malloc(sizeof(int)*1000000);
          ^~~
/in/foo.cc:16:7: warning: unused variable 'arr' [-Wunused-variable]
  int *arr = (int *)malloc(sizeof(int)*100);
       ^~~
/in/foo.cc:20:8: error: 'arr' was not declared in this scope
   cin>>arr[i];
        ^~~
/in/foo.cc:21:7: error: 'arr' was not declared in this scope
  sort(arr,arr+n);
       ^~~
/in/foo.cc:21:16: error: 'sort' was not declared in this scope
  sort(arr,arr+n);
                ^

信息

递交者
类型
递交
题目
P1917 艾酱最喜欢的数字
语言
C++
递交时间
2019-03-17 01:18:05
评测时间
2019-03-17 01:18:05
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes