QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#429065#4832. Telepathyucup-team2262#Compile Error//C++141.9kb2024-06-02 00:27:132024-06-02 00:27:13

详细

answer.code: In function ‘void solv()’:
answer.code:62:24: error: expected ‘}’ before numeric constant
   62 |     vector<int> v = {0 0 2 0 1 1 2 0};
      |                     ~  ^
answer.code:62:24: error: expected ‘,’ or ‘;’ before numeric constant
answer.code: At global scope:
answer.code:63:25: error: expected ‘}’ before numeric constant
   63 |     vector<int> v2 = {0 0 0 0 0 0 0 0};
      |                      ~  ^
answer.code:63:25: error: expected ‘,’ or ‘;’ before numeric constant
answer.code:63:38: error: expected declaration before ‘}’ token
   63 |     vector<int> v2 = {0 0 0 0 0 0 0 0};
      |                                      ^
answer.code:65:5: error: ‘cin’ does not name a type
   65 |     cin >> ty;
      |     ^~~
answer.code:66:5: error: expected unqualified-id before ‘if’
   66 |     if (ty == "Flim")
      |     ^~
answer.code:72:5: error: ‘cin’ does not name a type
   72 |     cin >> n >> k;
      |     ^~~
answer.code:74:5: error: ‘cin’ does not name a type
   74 |     cin >> s;
      |     ^~~
answer.code:75:5: error: expected unqualified-id before ‘for’
   75 |     for (int i = 0; i < k; ++i)
      |     ^~~
answer.code:75:21: error: ‘i’ does not name a type; did you mean ‘fi’?
   75 |     for (int i = 0; i < k; ++i)
      |                     ^
      |                     fi
answer.code:75:28: error: expected unqualified-id before ‘++’ token
   75 |     for (int i = 0; i < k; ++i)
      |                            ^~
answer.code:80:5: error: ‘cout’ does not name a type
   80 |     cout << "\n";
      |     ^~~~
answer.code:81:1: error: expected declaration before ‘}’ token
   81 | }
      | ^