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_39792385_32481.cpp: In function 'int main()':
0_0_39792385_32481.cpp:6:9: error: 'cin' was not declared in this scope
    6 |         cin>>a;
      |         ^~~
0_0_39792385_32481.cpp:3:1: note: 'std::cin' is defined in header '<iostream>'; did you forget to '#include <iostream>'?
    2 | #include <cmath>
  +++ |+#include <iostream>
    3 | using namespace std ;
0_0_39792385_32481.cpp:7:25: error: 'cout' was not declared in this scope
    7 |         if(a<101&&a>89) cout<<"A";
      |                         ^~~~
0_0_39792385_32481.cpp:7:25: note: 'std::cout' is defined in header '<iostream>'; did you forget to '#include <iostream>'?
0_0_39792385_32481.cpp:8:24: error: 'cout' was not declared in this scope
    8 |         if(a<90&&a>79) cout<<"B";
      |                        ^~~~
0_0_39792385_32481.cpp:8:24: note: 'std::cout' is defined in header '<iostream>'; did you forget to '#include <iostream>'?
0_0_39792385_32481.cpp:9:24: error: 'cout' was not declared in this scope
    9 |         if(a<80&&a>69) cout<<"C";
      |                        ^~~~
0_0_39792385_32481.cpp:9:24: note: 'std::cout' is defined in header '<iostream>'; did you forget to '#include <iostream>'?
0_0_39792385_32481.cpp:10:24: error: 'cout' was not declared in this scope
   10 |         if(a<70&&a>59) cout<<"D";
      |                        ^~~~
0_0_39792385_32481.cpp:10:24: note: 'std::cout' is defined in header '<iostream>'; did you forget to '#include <iostream>'?
0_0_39792385_32481.cpp:11:23: error: 'cout' was not declared in this scope
   11 |         if(a<60&&a>0) cout<<"E";
      |                       ^~~~
0_0_39792385_32481.cpp:11:23: note: 'std::cout' is defined in header '<iostream>'; did you forget to '#include <iostream>'?
0_0_39792385_32481.cpp:12:24: error: 'cout' was not declared in this scope
   12 |         if(a<0&&a>100) cout<<"Score is error!";
      |                        ^~~~
0_0_39792385_32481.cpp:12:24: note: 'std::cout' is defined in header '<iostream>'; did you forget to '#include <iostream>'?


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2025 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.001000(s) query 1, Server time : 2025-02-18 07:07:52, Gzip enabled