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_39690175_24595.cpp: In function 'int main()':
0_0_39690175_24595.cpp:3:11: error: 'cin' was not declared in this scope
    3 |     while(cin >> n){
      |           ^~~
0_0_39690175_24595.cpp:10:13: error: 'a' was not declared in this scope
   10 |             a[i] = x;
      |             ^
0_0_39690175_24595.cpp:15:16: error: 'a' was not declared in this scope
   15 |             if(a[i] % 2 == 1){
      |                ^
0_0_39690175_24595.cpp:19:14: error: 'cout' is not a member of 'std'
   19 |         std::cout << prod << std::endl;
      |              ^~~~
0_0_39690175_24595.cpp:1:1: note: 'std::cout' is defined in header '<iostream>'; did you forget to '#include <iostream>'?
  +++ |+#include <iostream>
    1 | int main() {
0_0_39690175_24595.cpp:19:35: error: 'endl' is not a member of 'std'
   19 |         std::cout << prod << std::endl;
      |                                   ^~~~
0_0_39690175_24595.cpp:1:1: note: 'std::endl' is defined in header '<ostream>'; did you forget to '#include <ostream>'?
  +++ |+#include <ostream>
    1 | int main() {


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-17 13:26:40, Gzip enabled