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_38727106_56.cpp: In function 'int main()':
0_0_38727106_56.cpp:140:21: error: 'll' was not declared in this scope
  140 |         std::vector<ll> &factors = PRFactor.factors;
      |                     ^~
0_0_38727106_56.cpp:140:23: error: template argument 1 is invalid
  140 |         std::vector<ll> &factors = PRFactor.factors;
      |                       ^
0_0_38727106_56.cpp:140:23: error: template argument 2 is invalid
0_0_38727106_56.cpp:140:45: error: invalid initialization of reference of type 'int&' from expression of type 'std::vector<long long int>'
  140 |         std::vector<ll> &factors = PRFactor.factors;
      |                                    ~~~~~~~~~^~~~~~~
0_0_38727106_56.cpp:142:19: error: expected ';' before 'n'
  142 |                 ll n;
      |                   ^~
      |                   ;
0_0_38727106_56.cpp:143:29: error: 'n' was not declared in this scope
  143 |                 std::cin >> n;
      |                             ^
0_0_38727106_56.cpp:144:25: error: request for member 'clear' in 'factors', which is of non-class type 'int'
  144 |                 factors.clear();
      |                         ^~~~~
0_0_38727106_56.cpp:146:35: error: request for member 'begin' in 'factors', which is of non-class type 'int'
  146 |                 std::sort(factors.begin(), factors.end());
      |                                   ^~~~~
0_0_38727106_56.cpp:146:52: error: request for member 'end' in 'factors', which is of non-class type 'int'
  146 |                 std::sort(factors.begin(), factors.end());
      |                                                    ^~~
0_0_38727106_56.cpp:147:49: error: request for member 'begin' in 'factors', which is of non-class type 'int'
  147 |                 int total = std::unique(factors.begin(), factors.end()) - factors.begin();
      |                                                 ^~~~~
0_0_38727106_56.cpp:147:66: error: request for member 'end' in 'factors', which is of non-class type 'int'
  147 |                 int total = std::unique(factors.begin(), factors.end()) - factors.begin();
      |                                                                  ^~~
0_0_38727106_56.cpp:147:83: error: request for member 'begin' in 'factors', which is of non-class type 'int'
  147 |                 int total = std::unique(factors.begin(), factors.end()) - factors.begin();
      |                                                                                   ^~~~~
0_0_38727106_56.cpp:148:52: error: request for member 'front' in 'factors', which is of non-class type 'int'
  148 |                 std::cout << (total == 1 ? factors.front() % MOD : 1);
      |                                                    ^~~~~
0_0_38727106_56.cpp:148:62: error: 'MOD' was not declared in this scope
  148 |                 std::cout << (total == 1 ? factors.front() % MOD : 1);
      |                                                              ^~~


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-27 01:05:11, Gzip enabled