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_39781024_8555.cpp: In function 'int main()':
0_0_39781024_8555.cpp:3:11: error: 'scanf' was not declared in this scope
    3 |     while(scanf("%d%d%d",&a,&b,&c)==3){
      |           ^~~~~
0_0_39781024_8555.cpp:7:13: error: 'printf' was not declared in this scope
    7 |             printf("1\n");
      |             ^~~~~~
0_0_39781024_8555.cpp:1:1: note: 'printf' is defined in header '<cstdio>'; did you forget to '#include <cstdio>'?
  +++ |+#include <cstdio>
    1 | int main(){
0_0_39781024_8555.cpp:10:24: error: expected '}' at end of input
   10 |             int temp=b;
      |                        ^
0_0_39781024_8555.cpp:9:16: note: to match this '{'
    9 |         if(b<c){
      |                ^
0_0_39781024_8555.cpp:10:24: error: expected '}' at end of input
   10 |             int temp=b;
      |                        ^
0_0_39781024_8555.cpp:3:39: note: to match this '{'
    3 |     while(scanf("%d%d%d",&a,&b,&c)==3){
      |                                       ^
0_0_39781024_8555.cpp:10:24: error: expected '}' at end of input
   10 |             int temp=b;
      |                        ^
0_0_39781024_8555.cpp:1:11: note: to match this '{'
    1 | int main(){
      |           ^


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 09:18:07, Gzip enabled