QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#364012#6747. PermutationZhaoZiLongCompile Error//C++17108b2024-03-24 09:53:192024-03-24 09:53:20

詳細信息

answer.code:4:1: error: expected initializer before ‘int’
    4 | int n;
      | ^~~
answer.code:5:1: error: ‘cin’ does not name a type
    5 | cin>>n;
      | ^~~
answer.code:6:1: error: expected unqualified-id before ‘for’
    6 | for(int i=1;i<=n;i++)
      | ^~~
answer.code:6:13: error: ‘i’ does not name a type
    6 | for(int i=1;i<=n;i++)
      |             ^
answer.code:6:18: error: ‘i’ does not name a type
    6 | for(int i=1;i<=n;i++)
      |                  ^
answer.code:8:1: error: expected declaration before ‘}’ token
    8 | }
      | ^