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_38569590_23762.cpp: In function 'int main()':
0_0_38569590_23762.cpp:22:23: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
   22 |                 while(cin>>n>>m>>p&&n+m+p)
      |                       ^~~
      |                       std::cin
In file included from /usr/lib/gcc/x86_64-pc-cygwin/11/include/c++/x86_64-pc-cygwin/bits/stdc++.h:75,
                 from 0_0_38569590_23762.cpp:1:
/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_38569590_23762.cpp:25:25: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   25 |                         cout<<"Fibo"<<endl;
      |                         ^~~~
      |                         std::cout
In file included from /usr/lib/gcc/x86_64-pc-cygwin/11/include/c++/x86_64-pc-cygwin/bits/stdc++.h:75,
                 from 0_0_38569590_23762.cpp:1:
/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_38569590_23762.cpp:25:39: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   25 |                         cout<<"Fibo"<<endl;
      |                                       ^~~~
      |                                       std::endl
In file included from /usr/lib/gcc/x86_64-pc-cygwin/11/include/c++/istream:39,
                 from /usr/lib/gcc/x86_64-pc-cygwin/11/include/c++/sstream:38,
                 from /usr/lib/gcc/x86_64-pc-cygwin/11/include/c++/complex:45,
                 from /usr/lib/gcc/x86_64-pc-cygwin/11/include/c++/ccomplex:39,
                 from /usr/lib/gcc/x86_64-pc-cygwin/11/include/c++/x86_64-pc-cygwin/bits/stdc++.h:54,
                 from 0_0_38569590_23762.cpp:1:
/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_38569590_23762.cpp:27:25: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   27 |                         cout<<"Nacci"<<endl;
      |                         ^~~~
      |                         std::cout
In file included from /usr/lib/gcc/x86_64-pc-cygwin/11/include/c++/x86_64-pc-cygwin/bits/stdc++.h:75,
                 from 0_0_38569590_23762.cpp:1:
/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_38569590_23762.cpp:27:40: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   27 |                         cout<<"Nacci"<<endl;
      |                                        ^~~~
      |                                        std::endl
In file included from /usr/lib/gcc/x86_64-pc-cygwin/11/include/c++/istream:39,
                 from /usr/lib/gcc/x86_64-pc-cygwin/11/include/c++/sstream:38,
                 from /usr/lib/gcc/x86_64-pc-cygwin/11/include/c++/complex:45,
                 from /usr/lib/gcc/x86_64-pc-cygwin/11/include/c++/ccomplex:39,
                 from /usr/lib/gcc/x86_64-pc-cygwin/11/include/c++/x86_64-pc-cygwin/bits/stdc++.h:54,
                 from 0_0_38569590_23762.cpp:1:
/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-12-28 11:19:44, Gzip enabled