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_38569588_24308.cpp: In function 'int main()':
0_0_38569588_24308.cpp:25:23: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
   25 |                 while(cin>>m>>n>>p&&m+n+p)
      |                       ^~~
      |                       std::cin
In file included from 0_0_38569588_24308.cpp:4:
/usr/lib/gcc/x86_64-pc-cygwin/11/include/c++/iostream:60:18: note: 'std::cin' declared here
   60 |   extern istream cin;           /// Linked to standard input
      |                  ^~~
0_0_38569588_24308.cpp:27:25: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   27 |                         cout<<"Fibo"<<endl;
      |                         ^~~~
      |                         std::cout
In file included from 0_0_38569588_24308.cpp:4:
/usr/lib/gcc/x86_64-pc-cygwin/11/include/c++/iostream:61:18: note: 'std::cout' declared here
   61 |   extern ostream cout;          /// Linked to standard output
      |                  ^~~~
0_0_38569588_24308.cpp:27:39: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   27 |                         cout<<"Fibo"<<endl;
      |                                       ^~~~
      |                                       std::endl
In file included from /usr/lib/gcc/x86_64-pc-cygwin/11/include/c++/iostream:39,
                 from 0_0_38569588_24308.cpp:4:
/usr/lib/gcc/x86_64-pc-cygwin/11/include/c++/ostream:684:5: note: 'std::endl' declared here
  684 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
0_0_38569588_24308.cpp:29:25: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   29 |                         cout<<"Nacci"<<endl;
      |                         ^~~~
      |                         std::cout
In file included from 0_0_38569588_24308.cpp:4:
/usr/lib/gcc/x86_64-pc-cygwin/11/include/c++/iostream:61:18: note: 'std::cout' declared here
   61 |   extern ostream cout;          /// Linked to standard output
      |                  ^~~~
0_0_38569588_24308.cpp:29:40: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   29 |                         cout<<"Nacci"<<endl;
      |                                        ^~~~
      |                                        std::endl
In file included from /usr/lib/gcc/x86_64-pc-cygwin/11/include/c++/iostream:39,
                 from 0_0_38569588_24308.cpp:4:
/usr/lib/gcc/x86_64-pc-cygwin/11/include/c++/ostream:684:5: note: 'std::endl' declared here
  684 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~


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 07:03:25, Gzip enabled