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_28411351_29976.cpp: In function 'int main()':
0_0_28411351_29976.cpp:9:9: error: 'cin' was not declared in this scope
  while (cin >> n >> m) {
         ^
0_0_28411351_29976.cpp:12:4: error: 'cout' was not declared in this scope
    cout << "-";
    ^
0_0_28411351_29976.cpp:15:18: error: too few arguments to function 'errno_t _itoa_s(int, char*, size_t, int)'
   _itoa_s(n, z, m);
                  ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/stdlib.h:667:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/cstdlib:72,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/ext/string_conversions.h:41,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/basic_string.h:2850,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/string:52,
                 from 0_0_28411351_29976.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/sec_api/stdlib_s.h:18:27: note: declared here
   _CRTIMP errno_t __cdecl _itoa_s(int _Value,char *_DstBuf,size_t _Size,int _Radix);
                           ^
0_0_28411351_29976.cpp:19:4: error: 'cout' was not declared in this scope
    cout << z[i];
    ^
0_0_28411351_29976.cpp:21:3: error: 'cout' was not declared in this scope
   cout << endl;
   ^
0_0_28411351_29976.cpp:21:11: error: 'endl' was not declared in this scope
   cout << endl;
           ^


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-10-06 15:24:05, Gzip enabled