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


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-28 22:17:04, Gzip enabled