记录详情

Compile Error

foo.cc: In function 'int main()':
foo.cc:5:2: error: 'scanf' was not declared in this scope
    5 |  scanf("%d",&n);
      |  ^~~~~
foo.cc:26:2: error: 'printf' was not declared in this scope
   26 |  printf("%d",k-1);
      |  ^~~~~~
foo.cc:2:1: note: 'printf' is defined in header '<cstdio>'; did you forget to '#include <cstdio>'?
    1 | #include <math.h>
  +++ |+#include <cstdio>
    2 | int main()
foo.cc:10:10: warning: unused variable 'k1' [-Wunused-variable]
   10 |  int k=0,k1=0;
      |          ^~
正在同步测试数据,请稍后
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P1088 4-2 最长递增子序列
语言
C++
递交时间
2021-12-08 19:22:27
评测时间
2021-12-08 19:22:27
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes