F.A.Q
Hand In Hand
Online Acmers
Problem Archive
Realtime Judge Status
Authors Ranklist
 
     C/C++/Java Exams     
ACM Steps
Go to Job
Contest LiveCast
ICPC@China
Best Coder beta
VIP | STD Contests
    DIY | Web-DIY beta
Author ID 
Password 
 Register new ID

View Compilation Error

0_0_23218163_28541.cpp:14:10: error: 'N' was not declared in this scope
  int gcd[N][N],num[N][N];
          ^
0_0_23218163_28541.cpp:14:13: error: 'N' was not declared in this scope
  int gcd[N][N],num[N][N];
             ^
0_0_23218163_28541.cpp:14:20: error: 'N' was not declared in this scope
  int gcd[N][N],num[N][N];
                    ^
0_0_23218163_28541.cpp:14:23: error: 'N' was not declared in this scope
  int gcd[N][N],num[N][N];
                       ^
0_0_23218163_28541.cpp: In function 'll calc(ll, ll, ll, ll)':
0_0_23218163_28541.cpp:18:20: error: expected primary-expression before ')' token
      ll ans = (tot+)*(x*y)+(tot+)*tot/*(y*y);//总和
                    ^
0_0_23218163_28541.cpp:18:33: error: expected primary-expression before ')' token
      ll ans = (tot+)*(x*y)+(tot+)*tot/*(y*y);//总和
                                 ^
0_0_23218163_28541.cpp:25:7: error: 'i' was not declared in this scope
      ;i<cnt;++i){
       ^
0_0_23218163_28541.cpp:28:6: error: 'res' was not declared in this scope
      res = tot/cnt*res;
      ^
0_0_23218163_28541.cpp: In function 'void init()':
0_0_23218163_28541.cpp:37:7: error: 'i' was not declared in this scope
      ;i<N;i++)
       ^
0_0_23218163_28541.cpp:37:9: error: 'N' was not declared in this scope
      ;i<N;i++)
         ^
0_0_23218163_28541.cpp:38:11: error: 'j' was not declared in this scope
          ;j<N;j++)
           ^
0_0_23218163_28541.cpp:40:14: error: 'else' without a previous 'if'
              else if(i<j) gcd[i][j] = gcd[i][j%i];
              ^
0_0_23218163_28541.cpp:40:27: error: 'gcd' was not declared in this scope
              else if(i<j) gcd[i][j] = gcd[i][j%i];
                           ^
0_0_23218163_28541.cpp:41:24: error: 'gcd' was not declared in this scope
                   else gcd[i][j] = gcd[i%j][j];
                        ^
0_0_23218163_28541.cpp: In function 'int main()':
0_0_23218163_28541.cpp:58:11: error: 'i' was not declared in this scope
          ;i<=m;i++)
           ^
0_0_23218163_28541.cpp:59:15: error: 'j' was not declared in this scope
              ;j<i&&j<=n;j++)
               ^
0_0_23218163_28541.cpp:64:24: error: 'ans' was not declared in this scope
          printf("%d\n",ans);
                        ^


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2024 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2024-07-01 15:45:28, Gzip enabled