记录详情

Wrong Answer

/in/foo.cc: In function 'int main()':
/in/foo.cc:10:1: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
   10 | if(s+f+h>0&& s*d*g+a*f*g+a*d*h-s*f*h>0)
      | ^~
/in/foo.cc:12:5: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
   12 |     cout << a*d*g-s*f*g-s*d*h-a*f*h<<'+'<< s*d*g+a*f*g+a*d*h-s*f*h<< 'i' << endl;
      |     ^~~~
/in/foo.cc:13:1: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
   13 | if(s+f+h>0&&s*d*g+a*f*g+a*d*h-s*f*h<0)
      | ^~
/in/foo.cc:15:5: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
   15 |     cout << a*d*g-s*f*g-s*d*h-a*f*h<< s*d*g+a*f*g+a*d*h-s*f*h<< 'i' << endl;
      |     ^~~~
/in/foo.cc:16:1: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
   16 | if(s+f+h<0&&s*d*g+a*f*g+a*d*h-s*f*h>0)
      | ^~
/in/foo.cc:18:5: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
   18 |     cout << a*d*g-s*f*g-s*d*h-a*f*h<<'+'<< s*d*g+a*f*g+a*d*h-s*f*h<< 'i' << endl;
      |     ^~~~
/in/foo.cc:19:1: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
   19 | if(s+f+h<0&& s*d*g+a*f*g+a*d*h-s*f*h<0)
      | ^~
/in/foo.cc:21:5: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
   21 |     cout << a*d*g-s*f*g-s*d*h-a*f*h<< s*d*g+a*f*g+a*d*h-s*f*h<< 'i' << endl;
      |     ^~~~
# 状态 耗时 内存占用
#1 Wrong Answer 2ms 488.0 KiB
#2 Wrong Answer 1ms 532.0 KiB
#3 Wrong Answer 1ms 284.0 KiB
#4 Wrong Answer 1ms 364.0 KiB
#5 Wrong Answer 1ms 532.0 KiB

信息

递交者
类型
递交
题目
P1015 contest1-5 复数类的算术、赋值运算符的重载
比赛
2026-11-13 C++实测1
语言
C++
递交时间
2026-11-13 20:41:18
评测时间
2026-11-13 20:41:18
评测机
分数
0
总耗时
9ms
峰值内存
532.0 KiB