QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#748771#8934. Challenge NPCucup-team3862#Compile Error//C++201.4kb2024-11-14 21:24:002024-11-14 21:24:01

Details

answer.code:11:17: error: type/value mismatch at argument 1 in template parameter list for ‘template<class _Tp, class _Alloc> class std::vector’
   11 |   vector<vector,int>> g;
      |                 ^~~
answer.code:11:17: note:   expected a type, got ‘vector’
answer.code:11:20: error: expected unqualified-id before ‘>’ token
   11 |   vector<vector,int>> g;
      |                    ^~
answer.code:14:1: error: expected primary-expression before ‘int’
   14 | int main() {
      | ^~~
answer.code:12:15: error: bit-field ‘vv’ with non-integral type ‘std::vector<int>’
   12 |   vector<int> vv:
      |               ^~
answer.code:12:17: error: expected ‘;’ at end of member declaration
   12 |   vector<int> vv:
      |                 ^
      |                  ;
answer.code:63:2: error: expected ‘}’ at end of input
   63 | }
      |  ^
answer.code:7:17: note: to match this ‘{’
    7 | struct mf_graph {
      |                 ^
answer.code: In lambda function:
answer.code:24:5: error: ‘i64’ was not declared in this scope
   24 |     i64 X = 0, Y = 0;
      |     ^~~
answer.code:25:21: error: ‘X’ was not declared in this scope
   25 |     for (auto v: x) X += v;
      |                     ^
answer.code:26:21: error: ‘Y’ was not declared in this scope
   26 |     for (auto v: y) Y += v;
      |                     ^
answer.code:27:16: error: ‘Y’ was not declared in this scope
   27 |     return X < Y;
      |                ^
answer.code:27:12: error: ‘X’ was not declared in this scope
   27 |     return X < Y;
      |            ^
answer.code: In member function ‘int mf_graph::main()’:
answer.code:29:10: error: ‘i64’ was not declared in this scope
   29 |   vector<i64> a(m);
      |          ^~~
answer.code:29:13: error: template argument 1 is invalid
   29 |   vector<i64> a(m);
      |             ^
answer.code:29:13: error: template argument 2 is invalid
answer.code:31:34: error: invalid types ‘int[int]’ for array subscript
   31 |     for (int j = 0; j < n; ++j) a[i] += vt[i][j];
      |                                  ^
answer.code:33:9: error: request for member ‘front’ in ‘a’, which is of non-class type ‘int’
   33 |   if (a.front() == a.back()) {
      |         ^~~~~
answer.code:33:22: error: request for member ‘back’ in ‘a’, which is of non-class type ‘int’
   33 |   if (a.front() == a.back()) {
      |                      ^~~~
answer.code:36:5: error: return-statement with no value, in function returning ‘int’ [-fpermissive]
   36 |     return;
      |     ^~~~~~
answer.code: In lambda function:
answer.code:45:11: error: ‘dak’ was not declared in this scope
   45 |       if (dak % da != 0) {
      |           ^~~
answer.code:45:17: error: ‘da’ was not declared in this scope; did you mean ‘a’?
   45 |       if (dak % da != 0) {
      |                 ^~
      |                 a
answer.code:48:17: error: ‘dak’ was not declared in this scope
   48 |       auto vk = dak / da + vt[0][i];
      |                 ^~~
answer.code:48:23: error: ‘da’ was not declared in this scope; did you mean ‘a’?
   48 |       auto vk = dak / da + vt[0][i];
      |                       ^~
      |                       a
answer.code: In member function ‘int mf_graph::main()’:
answer.code:54:3: error: ‘mf’ was not declared in this scope; did you mean ‘m’?
   54 |   mf.rebuild(T);
      |   ^~
      |   m
answer.code: At global scope:
answer.code:63:2: error: expected unqualified-id at end of input
   63 | }
      |  ^