QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#501465#8215. Isomorphic Delightucup-team3896#Compile Error//C++17711b2024-08-02 19:09:172024-08-02 19:09:18

详细

answer.code: In function ‘void solve()’:
answer.code:22:58: error: expected primary-expression before ‘void’
   22 |   if(n==6)return cout<<"6\n1 2\n2 3\n1 3\n3 4\n2 5\n5 6",void;
      |                                                          ^~~~
answer.code:22:58: error: expected ‘;’ before ‘void’
   22 |   if(n==6)return cout<<"6\n1 2\n2 3\n1 3\n3 4\n2 5\n5 6",void;
      |                                                          ^~~~
      |                                                          ;
answer.code:22:58: error: declaration does not declare anything [-fpermissive]
   22 |   if(n==6)return cout<<"6\n1 2\n2 3\n1 3\n3 4\n2 5\n5 6",void;
      |                                                          ^~~~
answer.code:23:10: warning: division by zero [-Wdiv-by-zero]
   23 |   cout<<1/0;
      |         ~^~