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_38810971_28525.cpp:1:8: error: stray '#' in program
    1 | Circuit#include<bits/stdc++.h>
      |        ^
0_0_38810971_28525.cpp:1:1: error: 'Circuit' does not name a type
    1 | Circuit#include<bits/stdc++.h>
      | ^~~~~~~
0_0_38810971_28525.cpp: In function 'int read()':
0_0_38810971_28525.cpp:8:25: error: 'getchar' was not declared in this scope
    8 |     int x=0,f=1;char ch=getchar();
      |                         ^~~~~~~
0_0_38810971_28525.cpp:1:1: note: 'getchar' is defined in header '<cstdio>'; did you forget to '#include <cstdio>'?
  +++ |+#include <cstdio>
    1 | Circuit#include<bits/stdc++.h>
0_0_38810971_28525.cpp: In function 'void write(long long int)':
0_0_38810971_28525.cpp:14:17: error: 'putchar' was not declared in this scope; did you mean 'char'?
   14 |         if(x<0) putchar('-'),x=-x;
      |                 ^~~~~~~
      |                 char
0_0_38810971_28525.cpp:16:9: error: 'putchar' was not declared in this scope; did you mean 'char'?
   16 |         putchar(x%10+'0');
      |         ^~~~~~~
      |         char
0_0_38810971_28525.cpp: In function 'int main()':
0_0_38810971_28525.cpp:60:9: error: 'cin' was not declared in this scope
   60 |         cin>>T;
      |         ^~~
0_0_38810971_28525.cpp:73:25: error: 'cout' was not declared in this scope
   73 |                         cout<<"-1"<<" "<<"-1"<<endl;
      |                         ^~~~
0_0_38810971_28525.cpp:73:48: error: 'endl' was not declared in this scope
   73 |                         cout<<"-1"<<" "<<"-1"<<endl;
      |                                                ^~~~
0_0_38810971_28525.cpp:76:25: error: 'cout' was not declared in this scope
   76 |                         cout<<ans1<<" "<<ans2<<endl;
      |                         ^~~~
0_0_38810971_28525.cpp:76:48: error: 'endl' was not declared in this scope
   76 |                         cout<<ans1<<" "<<ans2<<endl;
      |                                                ^~~~


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-23 05:40:55, Gzip enabled