F.A.Q
Hand In Hand
Online Acmers
Problem Archive
Realtime Judge Status
Authors Ranklist
 
     C/C++/Java Exams     
ACM Steps
Go to Job
Contest LiveCast
ICPC@China
Best Coder beta
VIP | STD Contests
    DIY | Web-DIY beta
Author ID 
Password 
 Register new ID

View Compilation Error

0_0_38876572_10762.cpp: In function 'bool zero(double)':
0_0_38876572_10762.cpp:18:9: error: 'fabs' was not declared in this scope; did you mean 'labs'?
   18 |     if (fabs(x) < eps) return true;
      |         ^~~~
      |         labs
0_0_38876572_10762.cpp: In function 'void guass()':
0_0_38876572_10762.cpp:33:17: error: 'fabs' was not declared in this scope; did you mean 'labs'?
   33 |             if (fabs(a[i][c]) > fabs(a[t][c])) t = i;
      |                 ^~~~
      |                 labs
0_0_38876572_10762.cpp:35:13: error: 'fabs' was not declared in this scope; did you mean 'labs'?
   35 |         if (fabs(a[t][c]) < eps) continue; //c这一列都是0
      |             ^~~~
      |             labs
0_0_38876572_10762.cpp:51:17: error: 'fabs' was not declared in this scope; did you mean 'labs'?
   51 |             if (fabs(a[i][n + 1]) > eps) {
      |                 ^~~~
      |                 labs
0_0_38876572_10762.cpp:70:9: error: 'vector' was not declared in this scope
   70 |         vector<double> jie;
      |         ^~~~~~
0_0_38876572_10762.cpp:4:1: note: 'std::vector' is defined in header '<vector>'; did you forget to '#include <vector>'?
    3 | #include <cstring>
  +++ |+#include <vector>
    4 | #define mm(a,n) memset(a, n, sizeof(a))
0_0_38876572_10762.cpp:70:16: error: expected primary-expression before 'double'
   70 |         vector<double> jie;
      |                ^~~~~~
0_0_38876572_10762.cpp:71:9: error: 'jie' was not declared in this scope
   71 |         jie.pb(0);
      |         ^~~


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2024 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2024-11-30 09:15:43, Gzip enabled