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_38993190_9944.cpp: In function 'int main()':
0_0_38993190_9944.cpp:49:9: error: 'cin' was not declared in this scope
   49 |  while (cin >> a >> b >> c)
      |         ^~~
0_0_38993190_9944.cpp:1:1: note: 'std::cin' is defined in header '<iostream>'; did you forget to '#include <iostream>'?
  +++ |+#include <iostream>
    1 | 
0_0_38993190_9944.cpp:58:4: error: 'cout' was not declared in this scope
   58 |    cout << "w(" << a << ", " << b << ", " << c << ") = "
      |    ^~~~
0_0_38993190_9944.cpp:58:4: note: 'std::cout' is defined in header '<iostream>'; did you forget to '#include <iostream>'?
0_0_38993190_9944.cpp:59:12: error: 'endl' was not declared in this scope
   59 |    << 1 << endl;
      |            ^~~~
0_0_38993190_9944.cpp:1:1: note: 'std::endl' is defined in header '<ostream>'; did you forget to '#include <ostream>'?
  +++ |+#include <ostream>
    1 | 
0_0_38993190_9944.cpp:64:4: error: 'cout' was not declared in this scope
   64 |    cout << "w(" << a << ", " << b << ", " << c << ") = "
      |    ^~~~
0_0_38993190_9944.cpp:64:4: note: 'std::cout' is defined in header '<iostream>'; did you forget to '#include <iostream>'?
0_0_38993190_9944.cpp:65:24: error: 'endl' was not declared in this scope
   65 |    << f[20][20][20] << endl;
      |                        ^~~~
0_0_38993190_9944.cpp:65:24: note: 'std::endl' is defined in header '<ostream>'; did you forget to '#include <ostream>'?
0_0_38993190_9944.cpp:68:3: error: 'cout' was not declared in this scope
   68 |   cout << "w(" << a << ", " << b << ", " << c << ") = "
      |   ^~~~
0_0_38993190_9944.cpp:68:3: note: 'std::cout' is defined in header '<iostream>'; did you forget to '#include <iostream>'?
0_0_38993190_9944.cpp:69:21: error: 'endl' was not declared in this scope
   69 |    << f[a][b][c] << endl;
      |                     ^~~~
0_0_38993190_9944.cpp:69:21: 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-09-29 01:30:02, Gzip enabled