Mã chấm Tài khoản Bài tập Ngôn ngữ lập trình Trạng thái Thời gian Bộ nhớ Kích thước Thời gian nộp
268916 Nguyễn Đan Huy Số PI C/C++ Lỗi biên dịch (CE) 0 MS 0 KB 357 2023-11-18 20:46:01

Lỗi biên dịch:

Main.cc: In function ‘int main()’:
Main.cc:11:20: error: expected unqualified-id before ‘=’ token
      for ( int64_t = 0; i <= terms; i++)
                    ^
Main.cc:11:20: error: expected ‘;’ before ‘=’ token
Main.cc:11:20: error: expected primary-expression before ‘=’ token
Main.cc:11:25: error: ‘i’ was not declared in this scope
      for ( int64_t = 0; i <= terms; i++)
                         ^
Main.cc:11:35: error: expected ‘)’ before ‘;’ token
      for ( int64_t = 0; i <= terms; i++)
                                   ^
Main.cc:11:6: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation]
      for ( int64_t = 0; i <= terms; i++)
      ^~~
Main.cc:11:37: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘for’
      for ( int64_t = 0; i <= terms; i++)
                                     ^
Main.cc:11:37: error: ‘i’ was not declared in this scope