/ Vijos /

记录详情

Compile Error

foo.cc:69:2: error: stray '`' in program
   69 |  ```
      |  ^
foo.cc:69:3: error: stray '`' in program
   69 |  ```
      |   ^
foo.cc:69:4: error: stray '`' in program
   69 |  ```
      |    ^
foo.cc: In function 'void solve()':
foo.cc:44:9: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
   44 |         for(len=0;(1<<len)<=lim;len++);lim=(1<<len);len--;
      |         ^~~
foo.cc:44:40: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
   44 |         for(len=0;(1<<len)<=lim;len++);lim=(1<<len);len--;
      |                                        ^~~
foo.cc: In function 'int main()':
foo.cc:68:64: error: expected '}' at end of input
   68 | {scanf("%d",&T);for(int z=1;z<=T;z++){solve();clear();}return 0;//拜拜程序~}
      | ~                                                              ^
foo.cc:68:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   68 | {scanf("%d",&T);for(int z=1;z<=T;z++){solve();clear();}return 0;//拜拜程序~}
      |  ~~~~~^~~~~~~~~
foo.cc: In function 'void solve()':
foo.cc:41:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   41 |     scanf("%d%d",&x,&y);lim=x*y;
      |     ~~~~~^~~~~~~~~~~~~~
foo.cc:51:30: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   51 |             int a;int b;scanf("%d%d",&a,&b);db ret=0;
      |                         ~~~~~^~~~~~~~~~~~~~
foo.cc:61:28: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   61 |             db a;db b;scanf("%lf%lf",&a,&b);
      |                       ~~~~~^~~~~~~~~~~~~~~~
正在同步测试数据,请稍后
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P2039 龙与地下城
语言
C++
递交时间
2022-01-13 18:25:42
评测时间
2022-01-13 18:25:42
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes