QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#863693#3007. Intersecting RectanglesisWFnoya#Compile Error//C++26237b2025-01-19 21:17:562025-01-19 21:18:05

Judging History

你现在查看的是最新测评结果

  • [2025-01-19 21:18:05]
  • 评测
  • [2025-01-19 21:17:56]
  • 提交

answer

double val[N][N]
val[0][0]=1;
    for(int i=1;i<=2550;i++){
        val[i][0]=val[i-1][0]/2;
    }
    for(int i=1;i<=2550;i++){
        for(int j=1;j<=i;j++){
            val[i][j]=(val[i-1][j]+val[i-1][j-1])/2;
        }
    }

详细

answer.code:1:12: error: ‘N’ was not declared in this scope
    1 | double val[N][N]
      |            ^
answer.code:1:15: error: ‘N’ was not declared in this scope
    1 | double val[N][N]
      |               ^
answer.code:2:1: error: expected initializer before ‘val’
    2 | val[0][0]=1;
      | ^~~
answer.code:3:5: error: expected unqualified-id before ‘for’
    3 |     for(int i=1;i<=2550;i++){
      |     ^~~
answer.code:3:17: error: ‘i’ does not name a type
    3 |     for(int i=1;i<=2550;i++){
      |                 ^
answer.code:3:25: error: ‘i’ does not name a type
    3 |     for(int i=1;i<=2550;i++){
      |                         ^
answer.code:6:5: error: expected unqualified-id before ‘for’
    6 |     for(int i=1;i<=2550;i++){
      |     ^~~
answer.code:6:17: error: ‘i’ does not name a type
    6 |     for(int i=1;i<=2550;i++){
      |                 ^
answer.code:6:25: error: ‘i’ does not name a type
    6 |     for(int i=1;i<=2550;i++){
      |                         ^