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_16622311_4098.c: In function 'main':
0_0_16622311_4098.c:8:2: error: stray '\' in program
  scanf(\"%lf\",&s);
  ^
0_0_16622311_4098.c:8:2: error: missing terminating " character
0_0_16622311_4098.c:9:11: error: expected ')' before ';' token
  s=fabs(s);
           ^
0_0_16622311_4098.c:10:2: error: stray '\' in program
  printf(\"%lf\\n\",s);
  ^
0_0_16622311_4098.c:10:2: error: missing terminating " character
0_0_16622311_4098.c:8:2: error: incompatible type for argument 1 of 'scanf'
  scanf(\"%lf\",&s);
  ^
In file included from 0_0_16622311_4098.c:1:0:
GCC4.9.2/x86_64-w64-mingw32/include/stdio.h:386:15: note: expected 'const char * __restrict__' but argument is of type 'double'
   int __cdecl scanf(const char * __restrict__ _Format,...) __MINGW_ATTRIB_DEPRECATED_SEC_WARN;
               ^
0_0_16622311_4098.c:13:1: error: expected ';' before '}' token
 }
 ^
0_0_16622311_4098.c:13:1: error: expected declaration or statement at end of input


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-17 08:23:17, Gzip enabled