QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#69437 | #4786. Balance | resultant | Compile Error | / | / | C++14 | 2.7kb | 2022-12-27 15:56:52 | 2022-12-27 15:56:53 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
详细
answer.code:5:9: error: ‘vector’ does not name a type 5 | typedef vector<double>VD; | ^~~~~~ answer.code:8:1: error: ‘VD’ does not name a type 8 | VD simplex(vector<VD>A, VD b, VD c){ | ^~ answer.code: In function ‘int main()’: answer.code:59:5: error: ‘VD’ was not declared in this scope 59 | VD c; | ^~ answer.code:60:5: error: ‘vector’ was not declared in this scope 60 | vector<VD>A; | ^~~~~~ answer.code:3:1: note: ‘std::vector’ is defined in header ‘<vector>’; did you forget to ‘#include <vector>’? 2 | #include<algorithm> +++ |+#include <vector> 3 | using namespace std; answer.code:60:15: error: ‘A’ was not declared in this scope 60 | vector<VD>A; | ^ answer.code:61:7: error: expected ‘;’ before ‘b’ 61 | VD b; | ^~ | ; answer.code:62:24: error: ‘c’ was not declared in this scope 62 | for(k=1;k<=cnt;k++)c.push_back(-s[k]); | ^ answer.code:64:9: error: ‘b’ was not declared in this scope 64 | b.push_back(-a[i][j]); | ^ answer.code:65:11: error: expected ‘;’ before ‘t’ 65 | VD t; | ^~ | ; answer.code:66:28: error: ‘t’ was not declared in this scope 66 | for(k=1;k<=cnt;k++)t.push_back(-f[i][j][k]); | ^ answer.code:67:21: error: ‘t’ was not declared in this scope 67 | A.push_back(t); | ^ answer.code:69:7: error: expected ‘;’ before ‘ret’ 69 | VD ret=simplex(A,b,c); | ^~~~ | ; answer.code:70:29: error: ‘ret’ was not declared in this scope 70 | for(i=1;i<=cnt;i++)w[i]=ret[i-1]; | ^~~ answer.code:50:10: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 50 | scanf("%d",&n); | ~~~~~^~~~~~~~~ answer.code:51:44: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 51 | for(i=1;i<=n;i++)for(j=1;j<=n;j++)scanf("%d",&a[i][j]); | ~~~~~^~~~~~~~~~~~~~~