QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#148415#3531. Prime or numberGuanYunchangCompile Error//C++201.2kb2023-08-23 16:05:412023-08-23 16:05:45

詳細信息

answer.code: In function ‘void solve()’:
answer.code:29:62: error: expected ‘;’ before ‘cout’
   29 |     if(__builtin_popcountll(n)<=2&&((n&(-n))==n||(n&(-n))==1) cout << "Yes" << endl;
      |                                                              ^~~~~
      |                                                              ;
answer.code:30:5: error: expected primary-expression before ‘else’
   30 |     else cout << "No" << endl;
      |     ^~~~
answer.code:29:85: error: expected ‘)’ before ‘else’
   29 |     if(__builtin_popcountll(n)<=2&&((n&(-n))==n||(n&(-n))==1) cout << "Yes" << endl;
      |       ~                                                                             ^
      |                                                                                     )
   30 |     else cout << "No" << endl;
      |     ~~~~