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_28406410_13360.cpp: In function 'int main()':
0_0_28406410_13360.cpp:74:24: error: invalid conversion from 'char*' to 'size_t {aka long long unsigned int}' [-fpermissive]
    strncpy_s(a, c[i], j);
                        ^
0_0_28406410_13360.cpp:74:24: error: invalid conversion from 'int' to 'const char*' [-fpermissive]
0_0_28406410_13360.cpp:74:24: error: too few arguments to function 'errno_t strncpy_s(char*, size_t, const char*, size_t)'
In file included from GCC4.9.2/x86_64-w64-mingw32/include/string.h:180:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/cstring:42,
                 from 0_0_28406410_13360.cpp:4:
GCC4.9.2/x86_64-w64-mingw32/include/sec_api/string_s.h:29:27: note: declared here
   _CRTIMP errno_t __cdecl strncpy_s(char *_Dst,size_t _DstSizeInChars,const char *_Src,size_t _MaxCount);
                           ^
0_0_28406410_13360.cpp:75:22: error: invalid conversion from 'char*' to 'size_t {aka long long unsigned int}' [-fpermissive]
    strncpy_s(b, c[i] + j, len - j);
                      ^
0_0_28406410_13360.cpp:75:31: error: invalid conversion from 'int' to 'const char*' [-fpermissive]
    strncpy_s(b, c[i] + j, len - j);
                               ^
0_0_28406410_13360.cpp:75:34: error: too few arguments to function 'errno_t strncpy_s(char*, size_t, const char*, size_t)'
    strncpy_s(b, c[i] + j, len - j);
                                  ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/string.h:180:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/cstring:42,
                 from 0_0_28406410_13360.cpp:4:
GCC4.9.2/x86_64-w64-mingw32/include/sec_api/string_s.h:29:27: note: declared here
   _CRTIMP errno_t __cdecl strncpy_s(char *_Dst,size_t _DstSizeInChars,const char *_Src,size_t _MaxCount);
                           ^


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-14 23:57:05, Gzip enabled