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_38146312_28147.cpp:5:1: error: expected initializer before 'int'
 int n2[M], v[M];
 ^
0_0_38146312_28147.cpp: In function 'int main()':
0_0_38146312_28147.cpp:11:11: error: 'v' was not declared in this scope
    cin >> v[i] >> n2[i];
           ^
0_0_38146312_28147.cpp:11:19: error: 'n2' was not declared in this scope
    cin >> v[i] >> n2[i];
                   ^
0_0_38146312_28147.cpp:15:13: error: 'c2' was not declared in this scope
      memset(c2, 0, sizeof(c2));
             ^
0_0_38146312_28147.cpp:20:26: error: 'n2' was not declared in this scope
     for (int j = 0; j <= n2[i] && j * v[i] <= up; j++) {
                          ^
0_0_38146312_28147.cpp:20:39: error: 'v' was not declared in this scope
     for (int j = 0; j <= n2[i] && j * v[i] <= up; j++) {
                                       ^


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-26 06:46:34, Gzip enabled