记录详情

Compile Error

foo.cc: In function 'int main()':
foo.cc:81:18: error: 'cal1' was not declared in this scope
     printf("%d",(cal1()-cal2())&P);
                  ^~~~
foo.cc:81:18: note: suggested alternative: 'scalb'
     printf("%d",(cal1()-cal2())&P);
                  ^~~~
                  scalb
foo.cc:81:25: error: 'cal2' was not declared in this scope
     printf("%d",(cal1()-cal2())&P);
                         ^~~~
foo.cc:81:25: note: suggested alternative: 'scalb'
     printf("%d",(cal1()-cal2())&P);
                         ^~~~
                         scalb
foo.cc:78:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
     scanf("%d",&n);
     ~~~~~^~~~~~~~~
foo.cc:79:32: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
     for(int i=1;i<=n;i++) scanf("%d",&a[i]);
                           ~~~~~^~~~~~~~~~~~
正在同步测试数据,请稍后

信息

递交者
类型
递交
题目
P1015 子序列
语言
C++
递交时间
2021-02-04 11:53:26
评测时间
2021-02-04 11:53:26
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes