/ Vijos /

记录详情

Compile Error

/in/foo.cc:5:18: error: stray '\357' in program
  int a[10001]={1};
                  ^
/in/foo.cc:5:19: error: stray '\274' in program
  int a[10001]={1};
                   ^
/in/foo.cc:5:20: error: stray '\233' in program
  int a[10001]={1};
                    ^
/in/foo.cc: In function 'int main()':
/in/foo.cc:6:5: error: expected ',' or ';' before 'int'
     int n;
     ^~~
/in/foo.cc:8:2: error: 'cin' was not declared in this scope
  cin>>n;
  ^~~
/in/foo.cc:8:2: note: suggested alternative: 'main'
  cin>>n;
  ^~~
  main
/in/foo.cc:8:7: error: 'n' was not declared in this scope
  cin>>n;
       ^
/in/foo.cc:16:2: error: 'cout' was not declared in this scope
  cout<<a[n]<<endl;
  ^~~~
/in/foo.cc:16:14: error: 'endl' was not declared in this scope
  cout<<a[n]<<endl;
              ^~~~
/in/foo.cc:16:14: note: suggested alternative: 'enum'
  cout<<a[n]<<endl;
              ^~~~
              enum

信息

递交者
类型
递交
题目
P1130 数的计数
语言
C++
递交时间
2018-10-24 20:07:01
评测时间
2018-10-24 20:07:01
评测机
分数
0
总耗时
20ms
峰值内存
3.406 MiB