/ Vijos /

记录详情

Compile Error

foo.cc:1:9: error: #include expects "FILENAME" or <FILENAME>
 #include
         ^
foo.cc:5:1: error: 'ifstream' does not name a type
 ifstream fin("a.in");
 ^~~~~~~~
foo.cc:7:1: error: 'ofstream' does not name a type
 ofstream fout("a.out");
 ^~~~~~~~
foo.cc: In function 'int main()':
foo.cc:15:1: error: 'fin' was not declared in this scope
 fin>>m;
 ^~~
foo.cc:15:1: note: suggested alternative: 'main'
 fin>>m;
 ^~~
 main
foo.cc:19:10: error: invalid operands of types 'int' and 'int [1001]' to binary 'operator-'
 b[i]=a[i]-a;
      ~~~~^~
foo.cc:19:12: error: expected ')' before ';' token
 b[i]=a[i]-a;
            ^
foo.cc:13:7: warning: unused variable 'j' [-Wunused-variable]
 int i,j,m,a[1001]={0},b[1001]={0};
       ^
foo.cc: At global scope:
foo.cc:23:1: error: 'j' does not name a type
 j=b[m]-b[m-1]+b[m];
 ^
foo.cc:25:1: error: 'fout' does not name a type; did you mean 'float'?
 fout
 ^~~~
 float
正在同步测试数据,请稍后
自豪的采用HydroJudge(https://github.com/hydro-dev/Hydro)进行评测。

信息

递交者
类型
递交
题目
P1220 拉面秘籍
语言
C++
递交时间
2021-03-25 21:04:09
评测时间
2021-03-25 21:04:09
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes