Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

over 8 years ago

Language

Compiler

Options

Author

anonymous

over 8 years ago

$
prog.c:1:1: warning: data definition has no type or storage class [enabled by default]
 n,h[],t[];s(i,j){for(;n<=i;n&&puts(!strstr(t,h)&&n%j?t:"Shaggy"),n++)sprintf(n?t:h,"%d",n?n:j);}
 ^
prog.c:1:1: warning: type defaults to 'int' in declaration of 'n' [enabled by default]
prog.c:1:3: warning: type defaults to 'int' in declaration of 'h' [enabled by default]
 n,h[],t[];s(i,j){for(;n<=i;n&&puts(!strstr(t,h)&&n%j?t:"Shaggy"),n++)sprintf(n?t:h,"%d",n?n:j);}
   ^
prog.c:1:7: warning: type defaults to 'int' in declaration of 't' [enabled by default]
 n,h[],t[];s(i,j){for(;n<=i;n&&puts(!strstr(t,h)&&n%j?t:"Shaggy"),n++)sprintf(n?t:h,"%d",n?n:j);}
       ^
prog.c:1:11: warning: return type defaults to 'int' [enabled by default]
 n,h[],t[];s(i,j){for(;n<=i;n&&puts(!strstr(t,h)&&n%j?t:"Shaggy"),n++)sprintf(n?t:h,"%d",n?n:j);}
           ^
prog.c: In function 's':
prog.c:1:11: warning: type of 'i' defaults to 'int' [enabled by default]
prog.c:1:11: warning: type of 'j' defaults to 'int' [enabled by default]
prog.c:1:1: warning: implicit declaration of function 'puts' [-Wimplicit-function-declaration]
 n,h[],t[];s(i,j){for(;n<=i;n&&puts(!strstr(t,h)&&n%j?t:"Shaggy"),n++)sprintf(n?t:h,"%d",n?n:j);}
 ^
prog.c:1:1: warning: implicit declaration of function 'strstr' [-Wimplicit-function-declaration]
prog.c:1:37: warning: incompatible implicit declaration of built-in function 'strstr' [enabled by default]
 n,h[],t[];s(i,j){for(;n<=i;n&&puts(!strstr(t,h)&&n%j?t:"Shaggy"),n++)sprintf(n?t:h,"%d",n?n:j);}
                                     ^
prog.c:1:1: warning: passing argument 1 of 'strstr' from incompatible pointer type [enabled by default]
 n,h[],t[];s(i,j){for(;n<=i;n&&puts(!strstr(t,h)&&n%j?t:"Shaggy"),n++)sprintf(n?t:h,"%d",n?n:j);}
 ^
prog.c:1:1: note: expected 'const char *' but argument is of type 'int *'
prog.c:1:1: warning: passing argument 2 of 'strstr' from incompatible pointer type [enabled by default]
prog.c:1:1: note: expected 'const char *' but argument is of type 'int *'
prog.c:1:55: warning: pointer type mismatch in conditional expression [enabled by default]
 n,h[],t[];s(i,j){for(;n<=i;n&&puts(!strstr(t,h)&&n%j?t:"Shaggy"),n++)sprintf(n?t:h,"%d",n?n:j);}
                                                       ^
prog.c:1:1: warning: implicit declaration of function 'sprintf' [-Wimplicit-function-declaration]
 n,h[],t[];s(i,j){for(;n<=i;n&&puts(!strstr(t,h)&&n%j?t:"Shaggy"),n++)sprintf(n?t:h,"%d",n?n:j);}
 ^
prog.c:1:70: warning: incompatible implicit declaration of built-in function 'sprintf' [enabled by default]
 n,h[],t[];s(i,j){for(;n<=i;n&&puts(!strstr(t,h)&&n%j?t:"Shaggy"),n++)sprintf(n?t:h,"%d",n?n:j);}
                                                                      ^
prog.c:1:1: warning: passing argument 1 of 'sprintf' from incompatible pointer type [enabled by default]
 n,h[],t[];s(i,j){for(;n<=i;n&&puts(!strstr(t,h)&&n%j?t:"Shaggy"),n++)sprintf(n?t:h,"%d",n?n:j);}
 ^
prog.c:1:1: note: expected 'char *' but argument is of type 'int *'
prog.c: At top level:
prog.c:3:1: warning: data definition has no type or storage class [enabled by default]
 i,j;main(){scanf("%d%d",&i,&j);s(i,j);}
 ^
prog.c:3:1: warning: type defaults to 'int' in declaration of 'i' [enabled by default]
prog.c:3:3: warning: type defaults to 'int' in declaration of 'j' [enabled by default]
 i,j;main(){scanf("%d%d",&i,&j);s(i,j);}
   ^
prog.c:3:5: warning: return type defaults to 'int' [enabled by default]
 i,j;main(){scanf("%d%d",&i,&j);s(i,j);}
     ^
prog.c: In function 'main':
prog.c:3:1: warning: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
 i,j;main(){scanf("%d%d",&i,&j);s(i,j);}
 ^
prog.c:3:12: warning: incompatible implicit declaration of built-in function 'scanf' [enabled by default]
 i,j;main(){scanf("%d%d",&i,&j);s(i,j);}
            ^
prog.c: At top level:
prog.c:1:3: warning: array 'h' assumed to have one element [enabled by default]
 n,h[],t[];s(i,j){for(;n<=i;n&&puts(!strstr(t,h)&&n%j?t:"Shaggy"),n++)sprintf(n?t:h,"%d",n?n:j);}
   ^
prog.c:1:7: warning: array 't' assumed to have one element [enabled by default]
 n,h[],t[];s(i,j){for(;n<=i;n&&puts(!strstr(t,h)&&n%j?t:"Shaggy"),n++)sprintf(n?t:h,"%d",n?n:j);}
       ^
1
2
3
4
5
6
7
8
9
10
Shaggy
12
13
14
15
16
17
18
19
20
21
Shaggy
23
24
25
26
27
28
29
30
31
32
Shaggy
34
35
36
37
38
39
40
41
42
43
Shaggy
45
46
47
48
49
50
51
52
53
54
Shaggy
56
57
58
59
60
61
62
63
64
65
Shaggy
67
68
69
70
71
72
73
74
75
76
Shaggy
78
79
80
81
82
83
84
85
86
87
Shaggy
89
90
91
92
93
94
95
96
97
98
Shaggy
100
101
102
103
104
105
106
107
108
109
Shaggy
Shaggy
Shaggy
Shaggy
Shaggy
Shaggy
Shaggy
Shaggy
Shaggy
Shaggy
120
Shaggy
122
123
124
125
126
127
128
129
130
131
Shaggy
133
134
135
136
137
138
139
140
141
142
Shaggy
144
145
146
147
148
149
150
151
152
153
Shaggy
155
156
157
158
159
160
161
162
163
164
Shaggy
166
167
168
169
170
171
172
173
174
175
Shaggy
177
178
179
180
181
182
183
184
185
186
Shaggy
188
189
190
191
192
193
194
195
196
197
Shaggy
199
200
201
202
203
204
205
206
207
208
Shaggy
210
Shaggy
212
Exit Code:
0