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_38765557_12912.cpp: In function 'int main()':
0_0_38765557_12912.cpp:37:5: error: 'cin' was not declared in this scope
   37 |     cin>>T;
      |     ^~~
0_0_38765557_12912.cpp:3:1: note: 'std::cin' is defined in header '<iostream>'; did you forget to '#include <iostream>'?
    2 | #include <cstring>
  +++ |+#include <iostream>
    3 | #define m(a,b) memset(a,b,sizeof a)
0_0_38765557_12912.cpp:45:9: error: 'string' was not declared in this scope
   45 |         string s1,s2;
      |         ^~~~~~
0_0_38765557_12912.cpp:3:1: note: 'std::string' is defined in header '<string>'; did you forget to '#include <string>'?
    2 | #include <cstring>
  +++ |+#include <string>
    3 | #define m(a,b) memset(a,b,sizeof a)
0_0_38765557_12912.cpp:48:18: error: 's1' was not declared in this scope; did you mean 'n1'?
   48 |             cin>>s1>>s2;
      |                  ^~
      |                  n1
0_0_38765557_12912.cpp:48:22: error: 's2' was not declared in this scope; did you mean 'n2'?
   48 |             cin>>s1>>s2;
      |                      ^~
      |                      n2


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-05-03 07:42:02, Gzip enabled