QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#80179#5519. Count Hamiltonian CycleswlxhkkCompile Error//C++20709b2023-02-22 22:28:182023-02-22 22:28:18

詳細信息

answer.code: In function ‘int main()’:
answer.code:29:41: error: expected ‘}’ before ‘else’
   29 |                                         else{
      |                                         ^~~~
answer.code:28:37: note: to match this ‘{’
   28 |                                 else{
      |                                     ^
answer.code:29:41: error: expected ‘}’ before ‘else’
   29 |                                         else{
      |                                         ^~~~
answer.code:23:30: note: to match this ‘{’
   23 |                         if(a){
      |                              ^
answer.code:35:25: error: ‘else’ without a previous ‘if’
   35 |                         else if(c){
      |                         ^~~~
answer.code:40:28: error: ‘u’ was not declared in this scope
   40 |                         if(u) swap(a,b);
      |                            ^
answer.code: At global scope:
answer.code:42:23: error: expected constructor, destructor, or type conversion before ‘(’ token
   42 |                 printf("%lld\n",as*ksm(2,((ll)n*(p-2)-1)%(p-1))%p);
      |                       ^
answer.code:43:9: error: expected declaration before ‘}’ token
   43 |         }
      |         ^
answer.code:44:1: error: expected declaration before ‘}’ token
   44 | }
      | ^
answer.code: In function ‘int main()’:
answer.code:18:22: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   18 |                 scanf("%d\n",&n);as=1;
      |                 ~~~~~^~~~~~~~~~~