0_0_39387995_21584.cpp: In function 'int main()':
0_0_39387995_21584.cpp:7:22: error: too few arguments to function 'char* gets_s(char*, rsize_t)'
7 | while (gets_s(a), strcmp(a, "#") != 0)
| ~~~~~~^~~
In file included from gcc-13.1.0/x86_64-w64-mingw32/include/stdio.h:1641,
from 0_0_39387995_21584.cpp:1:
gcc-13.1.0/x86_64-w64-mingw32/include/sec_api/stdio_s.h:571:25: note: declared here
571 | _CRTIMP char* __cdecl gets_s(char*,rsize_t);
| ^~~~~~
0_0_39387995_21584.cpp:7:27: error: 'strcmp' was not declared in this scope
7 | while (gets_s(a), strcmp(a, "#") != 0)
| ^~~~~~
0_0_39387995_21584.cpp:3:1: note: 'strcmp' is defined in header '<cstring>'; did you forget to '#include <cstring>'?
2 | #include<string>
+++ |+#include <cstring>
3 | int main()
0_0_39387995_21584.cpp:10:21: error: 'strlen' was not declared in this scope
10 | l = strlen(a);
| ^~~~~~
0_0_39387995_21584.cpp:10:21: note: 'strlen' is defined in header '<cstring>'; did you forget to '#include <cstring>'?
|