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_23160355_15584.cpp: In function 'int main()':
0_0_23160355_15584.cpp:146:18: error: expected primary-expression before '%' token
     while(~scanf(%d %d,&n,&m))
                  ^
0_0_23160355_15584.cpp:146:19: error: 'd' was not declared in this scope
     while(~scanf(%d %d,&n,&m))
                   ^
0_0_23160355_15584.cpp:152:20: error: too few arguments to function 'int printf(const char*, ...)'
             printf();
                    ^
In file included from 0_0_23160355_15584.cpp:4:0:
GCC4.9.2/x86_64-w64-mingw32/include/stdio.h:378:15: note: declared here
   int __cdecl printf(const char * __restrict__ _Format,...);
               ^
0_0_23160355_15584.cpp:157:19: error: expected primary-expression before '%' token
             scanf(%d %d %lf,&p[i].u, &p[i].v, &p[i].w);
                   ^
0_0_23160355_15584.cpp:157:26: error: 'lf' was not declared in this scope
             scanf(%d %d %lf,&p[i].u, &p[i].v, &p[i].w);
                          ^
0_0_23160355_15584.cpp:180:16: error: expected primary-expression before '%' token
         printf(%d,count);
                ^
0_0_23160355_15584.cpp:182:20: error: expected primary-expression before '%' token
             printf(%d ,ans[i]);
                    ^
0_0_23160355_15584.cpp:183:16: error: expected primary-expression before '%' token
         printf(%d,ans[count]);
                ^


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 19:25:33, Gzip enabled