/ Vijos /

记录详情

Compile Error

foo.cc: In function ‘void solve()’:
foo.cc:44:17: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation]
   44 |                 for(len=0;(1<<len)<=lim;len++);lim=(1<<len);len--;
      |                 ^~~
foo.cc:44:48: 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:65: error: expected ‘}’ at end of input
   68 | {scanf("%d",&T);for(int z=1;z<=T;z++){solve();clear();}return 0;//拜拜程序~}
      | ~                                                               ^

信息

递交者
类型
递交
题目
P2039 龙与地下城
语言
C++
递交时间
2025-04-08 15:28:20
评测时间
2025-04-08 15:28:20
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes