/ Vijos /

记录详情

Compile Error

foo.cc:1:1: error: 'include' does not name a type; did you mean '__has_include'?
 include <stdio.h>
 ^~~~~~~
 __has_include
foo.cc: In function 'int main()':
foo.cc:8:2: error: 'scanf' was not declared in this scope
  scanf("%d%d%lf%lf%lf",&n,&m,&d,&first,&last);
  ^~~~~
foo.cc:10:3: error: 'printf' was not declared in this scope
   printf("%.3lf\n", m==1 ? first : last);
   ^~~~~~
foo.cc:10:3: note: suggested alternative: 'int'
   printf("%.3lf\n", m==1 ? first : last);
   ^~~~~~
   int
foo.cc:12:2: error: 'a' was not declared in this scope
  a[n][0] = 1;
  ^
foo.cc:20:2: error: 'printf' was not declared in this scope
  printf("%.3lf\n",a[m][0]*last + a[m][1]*t + a[m][2]*d);
  ^~~~~~
foo.cc:20:2: note: suggested alternative: 'int'
  printf("%.3lf\n",a[m][0]*last + a[m][1]*t + a[m][2]*d);
  ^~~~~~
  int
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P1151 失落的成绩单
语言
C++
递交时间
2021-08-12 21:15:54
评测时间
2021-08-12 21:17:16
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes