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_38790593_10800.cpp:16:12: error: 'N' was not declared in this scope
   16 | int primes[N], cnt;     // primes[]??????
      |            ^
0_0_38790593_10800.cpp:17:11: error: 'N' was not declared in this scope
   17 | int euler[N];           // ??????????
      |           ^
0_0_38790593_10800.cpp:18:9: error: 'N' was not declared in this scope
   18 | bool st[N];         // st[x]??x?????
      |         ^
0_0_38790593_10800.cpp: In function 'void get_eulers(int)':
0_0_38790593_10800.cpp:23:5: error: 'euler' was not declared in this scope
   23 |     euler[1] = 1;
      |     ^~~~~
0_0_38790593_10800.cpp:26:14: error: 'st' was not declared in this scope; did you mean 'std'?
   26 |         if (!st[i])
      |              ^~
      |              std
0_0_38790593_10800.cpp:28:13: error: 'primes' was not declared in this scope
   28 |             primes[cnt ++ ] = i;
      |             ^~~~~~
0_0_38790593_10800.cpp:31:25: error: 'primes' was not declared in this scope
   31 |         for (int j = 0; primes[j] <= n / i; j ++ )
      |                         ^~~~~~
0_0_38790593_10800.cpp:34:13: error: 'st' was not declared in this scope; did you mean 't'?
   34 |             st[t] = true;
      |             ^~
      |             t
0_0_38790593_10800.cpp: In function 'int main()':
0_0_38790593_10800.cpp:70:38: error: void value not ignored as it ought to be
   70 |                     ans += get_eulers(n/i);
      |                            ~~~~~~~~~~^~~~~
0_0_38790593_10800.cpp:73:38: error: void value not ignored as it ought to be
   73 |                     ans += get_eulers(i);
      |                            ~~~~~~~~~~^~~


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-11-22 17:29:48, Gzip enabled