/ Vijos /

记录详情

Compile Error

foo.cc:241:21: error: stray '@' in program
  lemontree712 LV 10 @ 7 年前
                     ^
foo.cc:241:25: error: stray '\345' in program
  lemontree712 LV 10 @ 7 年前
                         ^
foo.cc:241:26: error: stray '\271' in program
  lemontree712 LV 10 @ 7 年前
                          ^
foo.cc:241:27: error: stray '\264' in program
  lemontree712 LV 10 @ 7 年前
                           ^
foo.cc:241:28: error: stray '\345' in program
  lemontree712 LV 10 @ 7 年前
                            ^
foo.cc:241:29: error: stray '\211' in program
  lemontree712 LV 10 @ 7 年前
                             ^
foo.cc:241:30: error: stray '\215' in program
  lemontree712 LV 10 @ 7 年前
                              ^
foo.cc: In member function 'void interval::load(func)':
foo.cc:121:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
 if (t = fi(ff.value(l) - f.value(l)))
     ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
foo.cc:126:12: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
 else if (t = fi(ff.value(r) - f.value(r)))
          ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
foo.cc: At global scope:
foo.cc:239:1: error: expected unqualified-id before numeric constant
 0
 ^
foo.cc:250:14: error: redefinition of 'const double eps'
 const double eps = 1e-08;
              ^~~
foo.cc:9:14: note: 'const double eps' previously defined here
 const double eps = 1e-08;
              ^~~
foo.cc:251:14: error: redefinition of 'const double invalid'
 const double invalid = 1e+50;
              ^~~~~~~
foo.cc:10:14: note: 'const double invalid' previously defined here
 const double invalid = 1e+50;
              ^~~~~~~
foo.cc:252:14: error: redefinition of 'const double pi'
 const double pi = 3.14159265358979;
              ^~
foo.cc:11:14: note: 'const double pi' previously defined here
 const double pi = 3.14159265358979;
              ^~
foo.cc: In function 'bool valid(double)':
foo.cc:253:13: error: redefinition of 'bool valid(double)'
 inline bool valid (double a)
             ^~~~~
foo.cc:12:13: note: 'bool valid(double)' previously defined here
 inline bool valid (double a)
             ^~~~~
foo.cc: In function 'int fi(double)':
foo.cc:258:12: error: redefinition of 'int fi(double)'
 inline int fi (double a)
            ^~
foo.cc:17:12: note: 'int fi(double)' previously defined here
 inline int fi (double a)
            ^~
foo.cc: In function 'double ssqrt(double)':
foo.cc:264:15: error: redefinition of 'double ssqrt(double)'
 inline double ssqrt (double x)
               ^~~~~
foo.cc:23:15: note: 'double ssqrt(double)' previously defined here
 inline double ssqrt (double x)
               ^~~~~
foo.cc: In function 'double sacos(double)':
foo.cc:269:15: error: redefinition of 'double sacos(double)'
 inline double sacos (double x)
               ^~~~~
foo.cc:28:15: note: 'double sacos(double)' previously defined here
 inline double sacos (double x)
               ^~~~~
foo.cc: In function 'double nul(double, double, double)':
foo.cc:275:8: error: redefinition of 'double nul(double, double, double)'
 double nul (double x, double x0, double r) { return 0; }
        ^~~
foo.cc:34:8: note: 'double nul(double, double, double)' previously defined here
 double nul (double x, double x0, double r) { return 0; }
        ^~~
foo.cc: In function 'double cir(double, double, double)':
foo.cc:276:8: error: redefinition of 'double cir(double, double, double)'
 double cir (double x, double x0, double r) { return ssqrt(r * r - (x - x0) * (x - x0)); }
        ^~~
foo.cc:35:8: note: 'double cir(double, double, double)' previously defined here
 double cir (double x, double x0, double r) { return ssqrt(r * r - (x - x0) * (x - x0)); }
        ^~~
foo.cc: In function 'double lin(double, double, double)':
foo.cc:277:8: error: redefinition of 'double lin(double, double, double)'
 double lin (double x, double k, double b) { return k * x + b; }
        ^~~
foo.cc:36:8: note: 'double lin(double, double, double)' previously defined here
 double lin (double x, double k, double b) { return k * x + b; }
        ^~~
foo.cc: In function 'prd bin(double, double, double)':
foo.cc:279:5: error: redefinition of 'prd bin(double, double, double)'
 prd bin (double a, double b, double c)
     ^~~
foo.cc:38:5: note: 'prd bin(double, double, double)' previously defined here
 prd bin (double a, double b, double c)
     ^~~
foo.cc: In function 'double prlarea(double, double, double)':
foo.cc:285:8: error: redefinition of 'double prlarea(double, double, double)'
 double prlarea (double x0, double r, double x)
        ^~~~~~~
foo.cc:44:8: note: 'double prlarea(double, double, double)' previously defined here
 double prlarea (double x0, double r, double x)
        ^~~~~~~
foo.cc: At global scope:
foo.cc:290:7: error: redefinition of 'class segment'
 class segment
       ^~~~~~~
foo.cc:49:7: note: previous definition of 'class segment'
 class segment
       ^~~~~~~
foo.cc:309:7: error: redefinition of 'class circle'
 class circle
       ^~~~~~
foo.cc:68:7: note: previous definition of 'class circle'
 class circle
       ^~~~~~
foo.cc:335:7: error: redefinition of 'class func'
 class func
       ^~~~
foo.cc:94:7: note: previous definition of 'class func'
 class func
       ^~~~
foo.cc:352:7: error: redefinition of 'class interval'
 class interval
       ^~~~~~~~
foo.cc:111:7: note: previous definition of 'class interval'
 class interval
       ^~~~~~~~
foo.cc:377:14: error: redefinition of 'circle cs [510]'
 circle cs[510]; segment gs[510];
              ^
foo.cc:136:8: note: 'circle cs [510]' previously declared here
 circle cs[510]; segment gs[510];
        ^~
foo.cc:377:31: error: redefinition of 'segment gs [510]'
 circle cs[510]; segment gs[510];
                               ^
foo.cc:136:25: note: 'segment gs [510]' previously declared here
 circle cs[510]; segment gs[510];
                         ^~
foo.cc:378:18: error: redefinition of 'double lsh [500010]'
 double lsh[500010], lsht[500010]; int lshmr;
                  ^
foo.cc:137:8: note: 'double lsh [500010]' previously declared here
 double lsh[500010], lsht[500010]; int lshmr;
        ^~~
foo.cc:378:32: error: redefinition of 'double lsht [500010]'
 double lsh[500010], lsht[500010]; int lshmr;
                                ^
foo.cc:137:21: note: 'double lsht [500010]' previously declared here
 double lsh[500010], lsht[500010]; int lshmr;
                     ^~~~
foo.cc:378:39: error: redefinition of 'int lshmr'
 double lsh[500010], lsht[500010]; int lshmr;
                                       ^~~~~
foo.cc:137:39: note: 'int lshmr' previously declared here
 double lsh[500010], lsht[500010]; int lshmr;
                                       ^~~~~
foo.cc:379:20: error: redefinition of 'interval lqr [500010]'
 interval lqr[500010];
                    ^
foo.cc:138:10: note: 'interval lqr [500010]' previously declared here
 interval lqr[500010];
          ^~~
foo.cc: In function 'void lshinit()':
foo.cc:380:6: error: redefinition of 'void lshinit()'
 void lshinit (void)
      ^~~~~~~
foo.cc:139:6: note: 'void lshinit()' previously defined here
 void lshinit (void)
      ^~~~~~~
foo.cc: In function 'int place(double)':
foo.cc:390:5: error: redefinition of 'int place(double)'
 int place (double a)
     ^~~~~
foo.cc:149:5: note: 'int place(double)' previously defined here
 int place (double a)
     ^~~~~
foo.cc: In function 'int main()':
foo.cc:400:5: error: redefinition of 'int main()'
 int main ()
     ^~~~
foo.cc:159:5: note: 'int main()' previously defined here
 int main ()
     ^~~~
foo.cc: In function 'int main()':
foo.cc:163:6: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
 scanf("%d %lf", &n, &alpha); n++;
 ~~~~~^~~~~~~~~~~~~~~~~~~~~~
foo.cc:164:34: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
 for (int i = 0; i < n; i++) scanf("%lf", &h[i]);
                             ~~~~~^~~~~~~~~~~~~~
foo.cc:165:38: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
 for (int i = 0; i < n - 1; i++) scanf("%lf", &r[i]);
                                 ~~~~~^~~~~~~~~~~~~~
foo.cc: In function 'int main()':
foo.cc:404:6: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
 scanf("%d %lf", &n, &alpha); n++;
 ~~~~~^~~~~~~~~~~~~~~~~~~~~~
foo.cc:405:34: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
 for (int i = 0; i < n; i++) scanf("%lf", &h[i]);
                             ~~~~~^~~~~~~~~~~~~~
foo.cc:406:38: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
 for (int i = 0; i < n - 1; i++) scanf("%lf", &r[i]);
                                 ~~~~~^~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P1839 月下柠檬树
语言
C++
递交时间
2021-07-21 09:25:13
评测时间
2021-07-21 09:25:13
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes