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_39207936_11437.cpp: In function 'int main()':
0_0_39207936_11437.cpp:49:16: error: 'cin' was not declared in this scope
   49 |         while (cin >> a >> b >> c)
      |                ^~~
0_0_39207936_11437.cpp:1:1: note: 'std::cin' is defined in header '<iostream>'; did you forget to '#include <iostream>'?
  +++ |+#include <iostream>
    1 | 
0_0_39207936_11437.cpp:58:25: error: 'cout' was not declared in this scope
   58 |                         cout << "w(" << a << ", " << b << ", " << c << ") = "
      |                         ^~~~
0_0_39207936_11437.cpp:58:25: note: 'std::cout' is defined in header '<iostream>'; did you forget to '#include <iostream>'?
0_0_39207936_11437.cpp:59:33: error: 'endl' was not declared in this scope
   59 |                         << 1 << endl;
      |                                 ^~~~
0_0_39207936_11437.cpp:1:1: note: 'std::endl' is defined in header '<ostream>'; did you forget to '#include <ostream>'?
  +++ |+#include <ostream>
    1 | 
0_0_39207936_11437.cpp:64:25: error: 'cout' was not declared in this scope
   64 |                         cout << "w(" << a << ", " << b << ", " << c << ") = "
      |                         ^~~~
0_0_39207936_11437.cpp:64:25: note: 'std::cout' is defined in header '<iostream>'; did you forget to '#include <iostream>'?
0_0_39207936_11437.cpp:65:45: error: 'endl' was not declared in this scope
   65 |                         << f[20][20][20] << endl;
      |                                             ^~~~
0_0_39207936_11437.cpp:65:45: note: 'std::endl' is defined in header '<ostream>'; did you forget to '#include <ostream>'?
0_0_39207936_11437.cpp:68:17: error: 'cout' was not declared in this scope
   68 |                 cout << "w(" << a << ", " << b << ", " << c << ") = "
      |                 ^~~~
0_0_39207936_11437.cpp:68:17: note: 'std::cout' is defined in header '<iostream>'; did you forget to '#include <iostream>'?
0_0_39207936_11437.cpp:69:35: error: 'endl' was not declared in this scope
   69 |                  << f[a][b][c] << endl;
      |                                   ^~~~
0_0_39207936_11437.cpp:69:35: note: 'std::endl' is defined in header '<ostream>'; did you forget to '#include <ostream>'?


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