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_18759524_24228.cpp: In function 'void init()':
0_0_18759524_24228.cpp:30:15: error: expected primary-expression before '%' token
         scanf(%d, &cost[i]);
               ^
0_0_18759524_24228.cpp:30:16: error: 'd' was not declared in this scope
         scanf(%d, &cost[i]);
                ^
0_0_18759524_24228.cpp:34:15: error: expected primary-expression before '%' token
         scanf(%d%d, &u, &v);
               ^
0_0_18759524_24228.cpp:34:16: error: 'd' was not declared in this scope
         scanf(%d%d, &u, &v);
                ^
0_0_18759524_24228.cpp: In function 'void solve()':
0_0_18759524_24228.cpp:97:12: error: expected primary-expression before '%' token
     printf(%d %d
            ^
0_0_18759524_24228.cpp:97:13: error: 'd' was not declared in this scope
     printf(%d %d
             ^
0_0_18759524_24228.cpp: In function 'int main()':
0_0_18759524_24228.cpp:103:18: error: expected primary-expression before '%' token
     while (scanf(%d%d, &n, &m) != EOF) {
                  ^
0_0_18759524_24228.cpp:103:19: error: 'd' was not declared in this scope
     while (scanf(%d%d, &n, &m) != EOF) {
                   ^


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-09-29 15:34:49, Gzip enabled