pin.cpp:58:1: warning: "/*" within comment [-Wcomment]
58 | /*
|
pin.cpp:46:1: error: unterminated comment
46 | /*
| ^
pin.cpp: In function 'int main()':
pin.cpp:25:32: warning: format '%s' expects argument of type 'char*', but argument 2 has type 'char (*)[4]' [-Wformat=]
25 | for(int i=1;i<=n;i++) scanf("%s",s+i);
| ~^ ~~~
| | |
| | char (*)[4]
| char*
pin.cpp:24:7: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
24 | scanf("%d%d",&n,&d); d=4-d;
| ~~~~~^~~~~~~~~~~~~~
pin.cpp:25:29: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
25 | for(int i=1;i<=n;i++) scanf("%s",s+i);
| ~~~~~^~~~~~~~~~