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_39564369_12268.cpp:5:1: error: 'll' does not name a type
    5 | ll p[N];
      | ^~
0_0_39564369_12268.cpp:6:1: error: 'll' does not name a type
    6 | ll k = 1, n, mx = 0;
      | ^~
0_0_39564369_12268.cpp: In function 'void dfs(int, int)':
0_0_39564369_12268.cpp:15:5: error: 'mx' was not declared in this scope; did you mean 'x'?
   15 |     mx = max(sum,mx);
      |     ^~
      |     x
0_0_39564369_12268.cpp:19:15: error: 'p' was not declared in this scope
   19 |         dfs(i,p[i] + sum);
      |               ^
0_0_39564369_12268.cpp: In function 'void slove()':
0_0_39564369_12268.cpp:26:25: error: 'n' was not declared in this scope
   26 |     for(int i = 1; i <= n; i++) q[i].clear();
      |                         ^
0_0_39564369_12268.cpp:27:12: error: 'n' was not declared in this scope
   27 |     cin >> n;
      |            ^
0_0_39564369_12268.cpp:35:16: error: 'p' was not declared in this scope
   35 |         cin >> p[i];
      |                ^
0_0_39564369_12268.cpp:36:16: error: 'k' was not declared in this scope
   36 |         p[i] = k * 15 / p[i];
      |                ^
0_0_39564369_12268.cpp:38:5: error: 'mx' was not declared in this scope
   38 |     mx = 0;
      |     ^~
0_0_39564369_12268.cpp:40:11: error: 'p' was not declared in this scope
   40 |     dfs(1,p[1]);
      |           ^
0_0_39564369_12268.cpp:41:5: error: 'll' was not declared in this scope
   41 |     ll kk = __gcd(mx,k);
      |     ^~
0_0_39564369_12268.cpp:42:18: error: 'kk' was not declared in this scope
   42 |     cout << mx / kk << '/' << k / kk << endl;
      |                  ^~
0_0_39564369_12268.cpp:42:31: error: 'k' was not declared in this scope
   42 |     cout << mx / kk << '/' << k / kk << endl;
      |                               ^
0_0_39564369_12268.cpp: In function 'int main()':
0_0_39564369_12268.cpp:51:9: error: 'k' was not declared in this scope
   51 |         k = lcm(k,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-10 22:45:17, Gzip enabled