QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#476125#9116. DRD Stringucup-team3648#Compile Error//C++202.0kb2024-07-13 17:56:032024-07-13 17:56:05

詳細信息

answer.code: In function ‘int main()’:
answer.code:72:3: error: expected primary-expression before ‘for’
   72 |   for (int bit = 32; bit >= 0; --bit) {
      |   ^~~
answer.code:71:19: error: expected ‘;’ before ‘for’
   71 |   int64_t ans = 0;
      |                   ^
      |                   ;
   72 |   for (int bit = 32; bit >= 0; --bit) {
      |   ~~~              
answer.code:72:3: error: expected primary-expression before ‘for’
   72 |   for (int bit = 32; bit >= 0; --bit) {
      |   ^~~
answer.code:71:19: error: expected ‘)’ before ‘for’
   71 |   int64_t ans = 0;
      |                   ^
      |                   )
   72 |   for (int bit = 32; bit >= 0; --bit) {
      |   ~~~              
answer.code:69:7: note: to match this ‘(’
   69 |   for (
      |       ^
answer.code:77:11: error: ‘ans’ was not declared in this scope; did you mean ‘abs’?
   77 |   cout << ans + 1 << "\n";
      |           ^~~
      |           abs