记录详情

Compile Error

foo.c: In function ‘main’:
foo.c:6:11: warning: left-hand operand of comma expression has no effect [-Wunused-value]
    6 |         (a,b)==n;
      |           ^
foo.c:6:14: warning: statement with no effect [-Wunused-value]
    6 |         (a,b)==n;
      |         ~~~~~^~~
foo.c:7:13: warning: comparison of constant ‘100000’ with boolean expression is always true [-Wbool-compare]
    7 |         1<=n<=100000;
      |             ^~
foo.c:7:10: warning: comparisons like ‘X<=Y<=Z’ do not have their mathematical meaning [-Wparentheses]
    7 |         1<=n<=100000;
      |         ~^~~
foo.c:7:9: warning: statement with no effect [-Wunused-value]
    7 |         1<=n<=100000;
      |         ^
foo.c:8:9: error: ‘cout’ undeclared (first use in this function)
    8 |         cout<<n<<endl;
      |         ^~~~
foo.c:8:9: note: each undeclared identifier is reported only once for each function it appears in
foo.c:8:18: error: ‘endl’ undeclared (first use in this function)
    8 |         cout<<n<<endl;
      |                  ^~~~
正在同步测试数据,请稍后

信息

递交者
类型
递交
题目
P1002 硕哥的最短路
语言
C
递交时间
2024-08-13 21:24:39
评测时间
2024-08-13 21:24:39
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes