submission_id stringlengths 10 10 | problem_id stringlengths 6 6 | language stringclasses 3
values | code stringlengths 1 522k | compiler_output stringlengths 43 10.2k |
|---|---|---|---|---|
s175746115 | p02255 | C | #include <stdio.h>
#define N 10000
int A[N],i,j,v;
for(i=0;i<N;i++){
scanf(%d,A[i]);
if(A[i] != 0){
break;
}
v = A[i];
for(j=0;j<i;j++){
}
}
| main.c:6:1: error: expected identifier or '(' before 'for'
6 | for(i=0;i<N;i++){
| ^~~
main.c:6:10: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
6 | for(i=0;i<N;i++){
| ^
main.c:6:14: error: expected '=', ',', ';', 'asm' or '__attribute__' before '++' token
6... |
s174024623 | p02255 | C | #include <stdio.h>
int main(void) {
int A[100];
int i,j,N,k,v;
scanf("%d",&N);
for(i=0;i<N;i++){
scanf("%d",&A[i]);
}
for(i=0;i<N;i++){
v = A[i];
j = i - 1;
while(j>=0&&A[j]>v){
A[j+1]=A[j];
j--;
A[j+1]=v;
}
for (k = 0; k < N-1k ++) {
printf("%d ",A[k]... | main.c: In function 'main':
main.c:20:23: error: fixed-point types not supported for this target
20 | for (k = 0; k < N-1k ++) {
| ^~
main.c:20:31: error: expected ';' before ')' token
20 | for (k = 0; k < N-1k ++) {
| ^
| ... |
s987139990 | p02255 | C | #include<stdio.h>
int main(){
int A[1000];
int N = 0;
int i,j,v,length;
scanf("%d",&N);
for(i = 0; i < N; i++){
scanf("%d",&A[i]);
}
for (i =0; i < N; i++){
v = A[i];
j = i - 1;
while(j >= 0 && A[j] > v){
A[j + 1] = A[j];
j = j - 1;
}
A[j + 1] = key;
... | main.c: In function 'main':
main.c:31:16: error: 'key' undeclared (first use in this function)
31 | A[j + 1] = key;
| ^~~
main.c:31:16: note: each undeclared identifier is reported only once for each function it appears in
|
s873726128 | p02255 | C | #include<stdo.h>
int main(void){
int i, N, V, j, k;
int In[100];
scanf("%d", &N);
for(i=0 ; i<N ; i++){
V=In[i];
j=i=1;
while(j>=0 && In[j)>V){
In[j+1] = In[j];
j--;
In[j+1]=V;
}
for(k=0 ; k<N ; k++){
printf("%... | main.c:1:9: fatal error: stdo.h: No such file or directory
1 | #include<stdo.h>
| ^~~~~~~~
compilation terminated.
|
s795421266 | p02255 | C | #include<stdio.h>
int main(void){
int i, N, V, j, k;
int In[100];
scanf("%d", &N);
for(i=0 ; i<N ; i++){
V=In[i];
j=i=1;
while(j>=0 && In[j)>V){
In[j+1] = In[j];
j--;
In[j+1]=V;
}
for(k=0 ; k<N ; k++){
printf("... | main.c: In function 'main':
main.c:11:27: error: expected ']' before ')' token
11 | while(j>=0 && In[j)>V){
| ^
| ]
main.c:11:28: error: expected expression before '>' token
11 | while(j>=0 && In[j)>V){
| ... |
s004142308 | p02255 | C | #include<stdio.h>
int InsertionSort(int,int)
int main(){
int A[1000];
int N = 0;
int i,j,v,length;
scanf("%d",&N);
for(i = 0; i < N; i++){
scanf("%d",&A[i]);
}
for(length = 0; length < N-1; length++){
printf("%d ",A[length]);
}
printf("%d\n",A[N-1]);
}
printf("%d\n",A[100])... | main.c: In function 'InsertionSort':
main.c:3:11: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
3 | int main(){
| ^
main.c:23:3: error: expected declaration specifiers before 'printf'
23 | printf("%d\n",A[100]);
| ^~~~~~
main.c:24:3: error: expected declaratio... |
s495064303 | p02255 | C | #include<stdio.h>
int main(void){
int i, N, V, j, k;
int In[100];
scanf("%d",&N);
for(i=0 ; i<N ; i++){
scanf("%d", &In[i]);
}
for(i=1 ; i<N ; i++){
V=In[i];
j=i=1;
while(j>=0 && In[j)>V){
In[j+1] = In[j];
j--;
In[j+1]=V;
... | main.c: In function 'main':
main.c:14:27: error: expected ']' before ')' token
14 | while(j>=0 && In[j)>V){
| ^
| ]
main.c:14:28: error: expected expression before '>' token
14 | while(j>=0 && In[j)>V){
| ... |
s833743151 | p02255 | C | #include <stdio.h>
int main(){
int N ,v,i,j;
int A[1000];
scanf("%d",&N);
for(i=0;i<N;i++){
scanf("%d",&A[i]);
}
for(j=0;j<N;j++){
printf("%d ",A[j]);
}
printf("\n");
for(i = 1;i<N;i++){
v = A[i];
j = i - 1;
while( j >=0 && A[j] > v){
A[j+1] = A[j];
j--;
}
... | main.c:37:9: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
37 | std3dc29:~ s1250105[82]$ cat test.c
| ^
|
s118431273 | p02255 | C | #include<stdio.h>
int main(void){
int i, N, V, j, k;
int In[100];
scanf("%d",&N);
for(i=0 ; i<N ; i++){
scanf("%d", &In[i]);
}
for(i=1 ; i<N ; i++){
V=In[i];
j=i=1;
while(j>=0 && In[j)>V){
In[j+1] = In[j];
j--;
In[j+1]=V;
... | main.c: In function 'main':
main.c:14:27: error: expected ']' before ')' token
14 | while(j>=0 && In[j)>V){
| ^
| ]
main.c:14:28: error: expected expression before '>' token
14 | while(j>=0 && In[j)>V){
| ... |
s723541037 | p02255 | C | #include"stdio.h"
int main()
{
int num;
int A[1000];
int i,j,k;
int v;
scanf("%d",&num);
if(num<0&&1000<num)continue;
for(k=0;k<num;k++)
{
scanf("%d",&A[k]);
}
for(k=0;k<num;k++)
{
printf("%d ",A[k]);
}
printf("\n");
for(i=1;i<num;i++)
{
if(A[i-1]>A[i])
{
v=... | main.c: In function 'main':
main.c:9:22: error: continue statement not within a loop
9 | if(num<0&&1000<num)continue;
| ^~~~~~~~
|
s678162959 | p02255 | C | #include<stdio.h>
int main(){
int i = 0;
int j = 0;
int k = 0;
int N;
scanf("%d",&N);
int A[1000],v;
for(i=0;i<N;i++){
scanf("%d",&A[i]);
}
// N個の要素を含む0-オリジンの配列
for (i = 1; i < N;i++){
v = A[i];
j = i - 1;
while (j >= 0 && A[j] > v){
A[j+1] = A[j];
j--;
A[j+1] = v;
}
for(k= 0;k<N;k++... | main.c: In function 'main':
main.c:30:13: error: expected ';' before '}' token
30 | printf("\n")
| ^
| ;
31 | }
| ~
|
s494539835 | p02255 | C | #include <stdio.h>
int main(void)
{
int i, j, v;
int A[100];
int total;
scanf("%d", &total);
for (i=0; i<total; ++i)
scanf("%d", &A[i]);
for (i=0; i<total; ++i) {
for (j=i+1; j<total; ++j) {
if (A[i] > A[j]) {
v = A[i];
A[i] = A[j];
A[j] = v;
... | main.c: In function 'main':
main.c:33:20: error: 'number' undeclared (first use in this function)
33 | printf("%d\n", number[i]);
| ^~~~~~
main.c:33:20: note: each undeclared identifier is reported only once for each function it appears in
|
s531509451 | p02255 | C | /home/student/s1250137/Algo/Ex01/ex1_A.c
| main.c:1:1: error: expected identifier or '(' before '/' token
1 | /home/student/s1250137/Algo/Ex01/ex1_A.c
| ^
|
s769054853 | p02255 | C | #include<stdio.h>
int main(){
int i = 0;
int j = 0;
int k = 0;
int N;
scanf("%d",&N);
int A[1000],v;
heap = (int *)malloc(sizeof(int) * N);
for(i=0;i<N;i++){
scanf("%d",&A[i]);
}
// N個の要素を含む0-オリジンの配列
for (i = 1; i < N;i++){
v = A[i];
j = i - 1;
while (j >= 0 && A[j] > v){
A[j+1] = A[j];
j... | main.c: In function 'main':
main.c:11:1: error: 'heap' undeclared (first use in this function)
11 | heap = (int *)malloc(sizeof(int) * N);
| ^~~~
main.c:11:1: note: each undeclared identifier is reported only once for each function it appears in
main.c:11:15: error: implicit declaration of function 'malloc' [-... |
s641868965 | p02255 | C | #include<stdio.h>
int main(){
int i = 0;
int j = 0;
int k = 0;
int N;
scanf("%d",&N);
int A[1000],v;
A = (int *)malloc(sizeof(int) * N);
for(i=0;i<N;i++){
scanf("%d",&A[i]);
}
// N個の要素を含む0-オリジンの配列
for (i = 1; i < N;i++){
v = A[i];
j = i - 1;
while (j >= 0 && A[j] > v){
A[j+1] = A[j];
j--;... | main.c: In function 'main':
main.c:11:12: error: implicit declaration of function 'malloc' [-Wimplicit-function-declaration]
11 | A = (int *)malloc(sizeof(int) * N);
| ^~~~~~
main.c:2:1: note: include '<stdlib.h>' or provide a declaration of 'malloc'
1 | #include<stdio.h>
+++ |+#include <stdli... |
s384249446 | p02255 | C | #include<stdio.h>
int main(void){
int i, N, V, j, k;
int In[100];
scanf("%d",&N);
for(i=0 ; i<N ; i++){
scanf("%d", &In[i]);
}
for(i=1 ; i<N ; i++){
V=In[i];
j=i=1;
while(j>=0 && In[j)>V){
In[j+1] = In[j];
j--;
In[j+1]=V;
... | main.c: In function 'main':
main.c:14:27: error: expected ']' before ')' token
14 | while(j>=0 && In[j)>V){
| ^
| ]
main.c:14:28: error: expected expression before '>' token
14 | while(j>=0 && In[j)>V){
| ... |
s050153660 | p02255 | C | #include<stdio.h>
int main(){
int i = 0;
int j = 0;
int k = 0;
int N;
scanf("%d",&N);
int A[1000],v;
A = (int *)malloc(sizeof(int) * N);
for(i=0;i<N;i++){
scanf("%d",&A[i]);
}
// N個の要素を含む0-オリジンの配列
for (i = 1; i < N;i++){
v = A[i];
j = i - 1;
while (j >= 0 && A[j] > v){
A[j+1] = A[j];
j--;... | main.c: In function 'main':
main.c:11:12: error: implicit declaration of function 'malloc' [-Wimplicit-function-declaration]
11 | A = (int *)malloc(sizeof(int) * N);
| ^~~~~~
main.c:2:1: note: include '<stdlib.h>' or provide a declaration of 'malloc'
1 | #include<stdio.h>
+++ |+#include <stdli... |
s617018177 | p02255 | C | /home/student/s1250137/Algo/Ex01/ex1_A.c
| main.c:1:1: error: expected identifier or '(' before '/' token
1 | /home/student/s1250137/Algo/Ex01/ex1_A.c
| ^
|
s654866748 | p02255 | C | #include<stdio.h>
int main(void){
int i, N, V, j, k;
int In[100];
scanf("%d",&N);
for(i=0 ; i<N ; i++){
scanf("%d", &In[i]);
}
for(i=1 ; i<N ; i++){
V=In[i];
j=i=1;
while(j>=0 && In[j)>V){
In[j+1] = In[j];
j--;
In[j+1]=V;
... | main.c: In function 'main':
main.c:14:27: error: expected ']' before ')' token
14 | while(j>=0 && In[j)>V){
| ^
| ]
main.c:14:28: error: expected expression before '>' token
14 | while(j>=0 && In[j)>V){
| ... |
s106484962 | p02255 | C | #include<stdio.h>
int main(){
int a,b;
int i=0,j,k;
int s[100];
scanf("%d",&a);
s = (int *)malloc(a * sizeof(int));
while(i<a){
scanf("%d",&s[i]);
i++;
}
for(i=1;i<a;i++){
b=s[i];
j=i-1;
while(j>= 0||s[j] > b){
s[j+1]=s[j];
j--;
s[j+1]... | main.c: In function 'main':
main.c:8:16: error: implicit declaration of function 'malloc' [-Wimplicit-function-declaration]
8 | s = (int *)malloc(a * sizeof(int));
| ^~~~~~
main.c:2:1: note: include '<stdlib.h>' or provide a declaration of 'malloc'
1 | #include<stdio.h>
+++ |+#include... |
s169743840 | p02255 | C | #include"stdio.h"
int main()
{
int num;
int A[1000];
int i,j,k;
int v;
scanf("%d",&num);
if(num<0&&1000<num)continue;
for(k=0;k<num;k++)
{
scanf("%d",&A[k]);
if(A[k]<0&&100<A[k])k--;
}
for(k=0;k<num;k++)
{
printf("%d ",A[k]);
}
printf("\n");
for(i=1;i<num;i++)
{... | main.c: In function 'main':
main.c:9:22: error: continue statement not within a loop
9 | if(num<0&&1000<num)continue;
| ^~~~~~~~
|
s787754758 | p02255 | C | /home/student/s1250137/Algo/Ex01/ex1_A.c
| main.c:1:1: error: expected identifier or '(' before '/' token
1 | /home/student/s1250137/Algo/Ex01/ex1_A.c
| ^
|
s045538929 | p02255 | C | #include <stdio.h>
#include <stdlib.h>
int main(){
int elementNumber, *numberArray;
// read input
scanf("%d\n",&elementNumber);
numberArray = ( int* )malloc( elementNumber*sizeof( int ));
for ( int ixArray = 0 ; ixArray < elementNumber ; ixArray++ ){
scanf("%d",&numberArray[ixArray]);
... | main.c: In function 'main':
main.c:25:37: error: 'kxArray' undeclared (first use in this function); did you mean 'ixArray'?
25 | printf("%d",numberArray[kxArray]);
| ^~~~~~~
| ixArray
main.c:25:37: note: each undeclared i... |
s564865458 | p02255 | C | #include<stdio.h>
int main(){
int a,b;
int i=0,j,k;
int s*;
scanf("%d",&a);
s = (int *)malloc(a * sizeof(int));
while(i<a){
scanf("%d",&s[i]);
i++;
}
for(i=1;i<a;i++){
b=s[i];
j=i-1;
while(j>= 0||s[j] > b){
s[j+1]=s[j];
j--;
s[j+1]=b;
... | main.c: In function 'main':
main.c:6:10: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
6 | int s*;
| ^
main.c:6:11: error: expected expression before ';' token
6 | int s*;
| ^
main.c:8:5: error: 's' undeclared (first use in this function)
8 |... |
s536464138 | p02255 | C | #include<stdio.h>
#include<stdlib.h>
int main(){
int i,j,k,key,hzi;
int *hai;
scanf("%d",&i);
hai=(int *)malloc(sizeof(int));
for(j=0;j<i;j++){
scanf("%ld",&hai[j]);
}
for(j=1;j<i;j++){
key=hai[j];
hzi=j-1;
while(hzi>=0 && hai[hzi]>key){
hai[hzi+1]=hai[hzi];
hzi--;
}
ha... | main.c:30:9: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
30 | std3dc12:algorithms s1250102[105]$ gcc pr1-1.c
| ^
main.c:30:44: error: invalid suffix "c" on floating constant
30 | std3dc12:algorithms s1250102[105]$ gcc pr1-1.c
| ... |
s785710942 | p02255 | C | #include<stdio.h>
int main(void){
int i,j,s;
int Sort[100];
int number;
scanf("%d",&number);
for(i=0,i<number;i++)
scanf("%d",&Sort[i]);
for(i=0;i<number;i++){
for(j=0;j<number;j++){
while(i >= 0 && j >= 0)
if(Sort[i] > Sort[j]){
s = Sort[i];
Sort[i] = Sort[j];
Sort[j] = s;
for(s=0;... | main.c: In function 'main':
main.c:8:23: error: expected ';' before ')' token
8 | for(i=0,i<number;i++)
| ^
| ;
|
s143143229 | p02255 | C | int i,j,v,N,n;
int A[1000];
scanf("%d",&N);
for(i=0;i<N;i++){
scanf("%d",&A[i]);
}
for(i=1;i<=N-1;i++){
v=A[i];
j=i-1;
while(j>=0 && A[j]>v){
A[j+1]=A[j];
j--;
A[j+1]=v;
}
for(n=0;n<N;n++){
printf("%d ",A... | main.c:4:11: error: expected declaration specifiers or '...' before string constant
4 | scanf("%d",&N);
| ^~~~
main.c:4:16: error: expected declaration specifiers or '...' before '&' token
4 | scanf("%d",&N);
| ^
main.c:6:5: error: expected identifier or '(' before '... |
s888728606 | p02255 | C | int i,j,v,N,n;
int A[1000];
scanf("%d",&N);
for(i=0;i<N;i++){
scanf("%d",&A[i]);
}
for(i=1;i<=N-1;i++){
v=A[i];
j=i-1;
while(j>=0 && A[j]>v){
A[j+1]=A[j];
j--;
A[j+1]=v;
}
for(n=0;n<N;n++){
printf("%d ",A... | main.c:4:11: error: expected declaration specifiers or '...' before string constant
4 | scanf("%d",&N);
| ^~~~
main.c:4:16: error: expected declaration specifiers or '...' before '&' token
4 | scanf("%d",&N);
| ^
main.c:6:5: error: expected identifier or '(' before '... |
s925670143 | p02255 | C | #include<stdio.h>
int main(){
int i,j,k,n,v;
scanf("%d",&n);
int A[n];
for(i=0;i<n;i++){
scanf("%d",&A[i]);
}
for(i=1;i<n;i++){
for(k=0;k<n;k++){
printf("%d",A[k]);
}
v=A[i];
for(j=i-1;j>=0&&A[j]>v;j--){
A[j+1]=A[j];
}
A[j+1]=v;
printf("\n");
}
for(k... | main.c: In function 'main':
main.c:25:17: error: expected ';' before 'return'
25 | printf("\n")
| ^
| ;
26 | return 0;
| ~~~~~~
|
s201353727 | p02255 | C | #include<stdio.h>
int main(){
int i,j,k,n,v;
scanf("%d",&n);
int A[n];
for(i=0;i<n;i++){
scanf("%d",&A[i]);
}
for(i=1;i<n;i++){
for(k=0;k<n;k++){
printf("%d ",A[k]);
}
v=A[i];
for(j=i-1;j>=0&&A[j]>v;j--){
A[j+1]=A[j];
}
A[j+1]=v;
printf("\n");
}
for(... | main.c: In function 'main':
main.c:25:17: error: expected ';' before 'return'
25 | printf("\n")
| ^
| ;
26 | return 0;
| ~~~~~~
|
s795292217 | p02255 | C | /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
| |
s486033241 | p02255 | C | #include<stdio.h>
int main() {
int i,j,v,m,a,N,p;
int A[1000];
scanf("%d",&N);
for(i=0;i<N;i++) {
scanf("%d",&A[i]);
}
for(i=1;i<=N-1;i++) {
v = A[i];
j=i-1;
while(j>=0 && A[j]>v) {
A[j+1] = A[j];
j--;
}
A[j+1]=v;
for(p=0;p<N;p++) {
prin... | main.c: In function 'main':
main.c:33:1: error: expected declaration or statement at end of input
33 | }
| ^
|
s971545264 | p02255 | C | #include<stdio.h>
int main(){
int i = 0;
int data = 0;
int V = 0;
int j = 0;
int insert[data];
scanf("%d",&data);
for(i = 0 ; i++ ; i < data){
scanf("%d",&insert[i]);
}
for(i = 0 ; i++ ; i < data){
V = insert[i];
j = i - 1;
while(j >= 0 && i... | main.c: In function 'main':
main.c:28:20: error: implicit declaration of function 'malloc' [-Wimplicit-function-declaration]
28 | insert = (int*)malloc(sizeof(insert[]));
| ^~~~~~
main.c:2:1: note: include '<stdlib.h>' or provide a declaration of 'malloc'
1 | #include<stdio.h>
+++ ... |
s089524082 | p02255 | C | #include<stdio.h>
void trace(int A[],int N);
void insertsort(int A[],int N);
int main(void){
int N,i,j;
scanf("%d",&N);
int A[N];
for(i=0;i<N;i++){scanf("%d",&A[i]);}
trace(A,N);
insertsort(A,N);
return 0;
}
void trace(int A[],int N){
int i;
for(i=0;i<N;i++){
if(i>0)pr... | main.c: In function 'trace':
main.c:36:19: warning: missing terminating " character
36 | if(i>0)printf(" );
| ^
main.c:36:19: error: missing terminating " character
36 | if(i>0)printf(" );
| ^~~~~
main.c:37:22: error: expected ')' before ';' token
37 | ... |
s446671386 | p02255 | C | /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
| |
s613609834 | p02255 | C | /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
| |
s452358152 | p02255 | C | #include<stdio.h>
int main(){
int i = 0;
int data = 0;
int V = 0;
int j = 0;
int insert[data];
scanf("%d",&data);
insert = (int*)malloc(sizeof(int));
for(i = 0 ; i++ ; i < data){
scanf("%d",&insert[i]);
}
for(i = 0 ; i++ ; i < data){
V = insert[i];
j = i... | main.c: In function 'main':
main.c:11:20: error: implicit declaration of function 'malloc' [-Wimplicit-function-declaration]
11 | insert = (int*)malloc(sizeof(int));
| ^~~~~~
main.c:2:1: note: include '<stdlib.h>' or provide a declaration of 'malloc'
1 | #include<stdio.h>
+++ |+#in... |
s326709280 | p02255 | C | #include <stdio.h>
#include <stdlib.h>
#define N 100
#define A 1000
int main(){
int i,j,k,number;
int *a;
int key;
scanf("%d",&number);
a = (int *)malloc((sizeof(int)*n);
for(i=0;i<number;i++){
scanf("%d",a[i]);
}
for(j=1;j<=number-1;j++){
key = a[j];
i = j-1;
... | main.c: In function 'main':
main.c:10:36: error: 'n' undeclared (first use in this function)
10 | a = (int *)malloc((sizeof(int)*n);
| ^
main.c:10:36: note: each undeclared identifier is reported only once for each function it appears in
main.c:10:38: error: expected ')' ... |
s731404980 | p02255 | C | #include <stdio.h>
#include <stdlib.h>
#define N 100
#define A 1000
int main(){
int i,j,k,number;
int *a;
int key;
scanf("%d",&number);
a = (int *)malloc(sizeof(int)*n);
for(i=0;i<number;i++){
scanf("%d",a[i]);
}
for(j=1;j<=number-1;j++){
key = a[j];
i = j-1;
... | main.c: In function 'main':
main.c:10:35: error: 'n' undeclared (first use in this function)
10 | a = (int *)malloc(sizeof(int)*n);
| ^
main.c:10:35: note: each undeclared identifier is reported only once for each function it appears in
|
s152106268 | p02255 | C | /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
| |
s480748747 | p02255 | C | #include <stdio.h>
#include <stdlib.h>
#define N 100
#define A 1000
int main(){
int i,j,k,number;
int *a;
int key;
scanf("%d",&number);
a = (int *)malloc(sizeof(int)*n);
for(i=0;i<number;i++){
scanf("%d",a[i]);
}
for(j=1;j<=number-1;j++){
key = a[j];
i = j-1;
... | main.c: In function 'main':
main.c:10:35: error: 'n' undeclared (first use in this function)
10 | a = (int *)malloc(sizeof(int)*n);
| ^
main.c:10:35: note: each undeclared identifier is reported only once for each function it appears in
|
s485823486 | p02255 | C | #include<stdio.h>
#include<stdlib.h>
int main(){
int i = 0;
int data = 0;
int V = 0;
int j = 0;
int *insert;
scanf("%d",&data);
insert = (int*)malloc(sizeof(int));
for(i = 0 ; i++ ; i < data){
scanf("%d",&insert[i]);
}
printf("%d",insert[0]);
for(i = 0 ; k < data ; ... | main.c: In function 'main':
main.c:17:17: error: 'k' undeclared (first use in this function)
17 | for(i = 0 ; k < data ; i++){
| ^
main.c:17:17: note: each undeclared identifier is reported only once for each function it appears in
|
s426934980 | p02255 | C | #include<stdio.h>
#include<stdlib.h>
int main(){
int i = 0;
int data = 0;
int V = 0;
int j = 0;
int *insert;
scanf("%d",&data);
insert = (int*)malloc(sizeof(int));
for(i = 0 ; i++ ; i < data){
scanf("%d",&insert[i]);
}
printf("%d",insert[0]);
for(i = 0 ; k < data ; ... | main.c: In function 'main':
main.c:17:17: error: 'k' undeclared (first use in this function)
17 | for(i = 0 ; k < data ; i++){
| ^
main.c:17:17: note: each undeclared identifier is reported only once for each function it appears in
|
s638252696 | p02255 | C | #include<stdio.h>
#include<stdlib.h>
int main(){
int i = 0;
int data = 0;
int V = 0;
int j = 0;
int *insert;
scanf("%d",&data);
insert = (int*)malloc(sizeof(int));
for(i = 0 ; i++ ; i < data){
scanf("%d",&insert[i]);
}
printf("%d",insert[0]);
for(i = 0 ; k < data ; ... | main.c: In function 'main':
main.c:17:17: error: 'k' undeclared (first use in this function)
17 | for(i = 0 ; k < data ; i++){
| ^
main.c:17:17: note: each undeclared identifier is reported only once for each function it appears in
|
s339637306 | p02255 | C | /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
| |
s648541921 | p02255 | C | /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
| |
s494720050 | p02255 | C | /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
| |
s340504159 | p02255 | C | #include<stdio.h>
int main(){
int n;
scanf("%d",&n);
int A[n],v;
int i,j;
for(i=0;i<x;i++){
scanf("%d",&A[i]);
}
for(i=1;i<x;i++){
v = A[i];
j = i-1;
while(j>=0 && A[j]>v){
A[j+1] = A[j];
j--;
}
A[j+1] = v;
for(j=0;j<x;j++){
printf("%d",A[j]);
if(j<x... | main.c: In function 'main':
main.c:10:13: error: 'x' undeclared (first use in this function)
10 | for(i=0;i<x;i++){
| ^
main.c:10:13: note: each undeclared identifier is reported only once for each function it appears in
|
s450465477 | p02255 | C | #include<stdio.h>
int main(){
int n;
scanf("%d",&n);
int A[n],v;
int i,j;
for(i=0;i<x;i++){
scanf("%d",&A[i]);
}
for(i=1;i<x;i++){
v = A[i];
j = i-1;
while(j>=0 && A[j]>v){
A[j+1] = A[j];
j--;
}
A[j+1] = v;
for(j=0;j<x;j++){
printf("%d",A[j]);
if(j<x... | main.c: In function 'main':
main.c:10:13: error: 'x' undeclared (first use in this function)
10 | for(i=0;i<x;i++){
| ^
main.c:10:13: note: each undeclared identifier is reported only once for each function it appears in
|
s193775439 | p02255 | C | /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
| |
s806105875 | p02255 | C | /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
| |
s788271776 | p02255 | C | /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
| |
s722182070 | p02255 | C | /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
| |
s294430690 | p02255 | C | /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
| |
s261652780 | p02255 | C | /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
| |
s952835064 | p02255 | C | /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
| |
s297357989 | p02255 | C | /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
| |
s358226084 | p02255 | C | /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
| |
s153221890 | p02255 | C | /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
| |
s966688346 | p02255 | C | #include<stdio.h>
int main(int argc, char* argv[]){
int count;
int A[];
int N = argc - 1;
for(count = 0 ; count < argc ; count++){
A[count] = (int)argv[count + 1];
}
insertionSort(A, N);
}
void insertionSort(int A, int N){
for(i = 1 ; i <= N - 1 ; i++){
v = A[i];
j = i - 1;
while(j ... | main.c: In function 'main':
main.c:4:13: error: array size missing in 'A'
4 | int A[];
| ^
main.c:7:28: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
7 | A[count] = (int)argv[count + 1];
| ^
main.c:9:9: ... |
s361222968 | p02255 | C | #include<stdio.h>
int main(int argc, char* argv[]){
int count;
int A[];
int N = argc - 1;
for(count = 0 ; count < argc ; count++){
A[count] = (int)argv[count + 1];
}
insertionSort(A, N);
}
void insertionSort(int A, int N){
for(i = 1 ; i <= N - 1 ; i++){
v = A[i];
j = i - 1;
while(j ... | main.c: In function 'main':
main.c:4:13: error: array size missing in 'A'
4 | int A[];
| ^
main.c:7:28: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
7 | A[count] = (int)argv[count + 1];
| ^
main.c:9:9: ... |
s734208649 | p02255 | C | #include<stdio.h>
int main(int argc, char* argv[]){
int count;
int A[];
int N = argc - 1;
for(count = 0 ; count < argc ; count++){
A[count] = (int)argv[count + 1];
}
insertionSort(A, N);
}
void insertionSort(int A, int N){
for(i = 1 ; i <= N - 1 ; i++){
v = A[i];
j = i - 1;
while(j ... | main.c: In function 'main':
main.c:4:13: error: array size missing in 'A'
4 | int A[];
| ^
main.c:7:28: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
7 | A[count] = (int)argv[count + 1];
| ^
main.c:9:9: ... |
s839674426 | p02255 | C | #include<stdio.h>
int main(int argc, char* argv[]){
int count;
int A[];
int N = argc - 1;
for(count = 0 ; count < argc ; count++){
A[count] = (int)argv[count + 1];
}
insertionSort(A, N);
}
void insertionSort(int A, int N){
int i, j, k, v;
for(i = 1 ; i <= N - 1 ; i++){
v = A[i];
j = i -... | main.c: In function 'main':
main.c:4:13: error: array size missing in 'A'
4 | int A[];
| ^
main.c:7:28: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
7 | A[count] = (int)argv[count + 1];
| ^
main.c:9:9: ... |
s359293998 | p02255 | C | /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
| |
s627464369 | p02255 | C | /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
| |
s960755728 | p02255 | C | /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
| |
s583654324 | p02255 | C | /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
| |
s140749591 | p02255 | C | #include<stdio.h>
int main(int argc, char* argv[]){
int count;
int A[argc];
int N = argc - 1;
for(count = 0 ; count < argc ; count++){
A[count] = (int)argv[count + 1];
}
insertionSort(A, N);
}
void insertionSort(int A[], int N){
int i, j, k, v;
for(i = 1 ; i <= N - 1 ; i++){
v = A[i];
j... | main.c: In function 'main':
main.c:7:28: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
7 | A[count] = (int)argv[count + 1];
| ^
main.c:9:9: error: implicit declaration of function 'insertionSort' [-Wimplicit-function-declaration]
... |
s393612242 | p02255 | C | #include<stdio.h>
int main(int argc, char* argv[]){
int count;
int A[argc];
int N = argc - 1;
for(count = 0 ; count < argc ; count++){
A[count] = (int)argv[count + 1];
}
insertionSort(A, N);
}
void insertionSort(int A[], int N){
int i, j, k, v;
for(i = 1 ; i <= N - 1 ; i++){
v = A[i];
j... | main.c: In function 'main':
main.c:7:28: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
7 | A[count] = (int)argv[count + 1];
| ^
main.c:9:9: error: implicit declaration of function 'insertionSort' [-Wimplicit-function-declaration]
... |
s897640290 | p02255 | C | /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
| |
s786958453 | p02255 | C | /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
| |
s190196868 | p02255 | C | #include<stdio.h>
void trace(int A[],int N){
int i;
for( i = 0 ; i < N; i++){
if(i>0)print("");
printf("%d",A[i]);
}
printf("\n");
}
void insertionSort(int A[], int N)
{
int i,j,v;
for (i=1; i < N; i++) {
v = A[i];
j = i - 1;
while (j >= 0 && A[j] > v) {
A[j+1] = A[j];
... | main.c: In function 'trace':
main.c:6:12: error: implicit declaration of function 'print'; did you mean 'printf'? [-Wimplicit-function-declaration]
6 | if(i>0)print("");
| ^~~~~
| printf
|
s298396198 | p02255 | C | /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
| |
s038850863 | p02255 | C | /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
| |
s346488718 | p02255 | C | /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
| |
s153923021 | p02255 | C | #include<stdio.h>
void trace(int A[],int N){
int i;
for( i = 0 ; i < N; i++){
if(i>0)print(" ");
printf("%d",A[i]);
}
printf("\n");
}
void insertionSort(int A[], int N){
int i,j,v;
for (i=1; i < N; i++) {
v = A[i];
j = i - 1;
while (j >= 0 && A[j] > v) {
A[j+1] = A[j];
... | main.c: In function 'trace':
main.c:6:12: error: implicit declaration of function 'print'; did you mean 'printf'? [-Wimplicit-function-declaration]
6 | if(i>0)print(" ");
| ^~~~~
| printf
|
s126063310 | p02255 | C | #include<stdio.h>
void trace(int A[],int N){
int i;
for( i = 0 ; i < N; i++){
if(i>0)print(" ");
printf("%d",A[i]);
}
printf("\n");
}
void insertionSort(int A[], int N){
int i,j,v;
for (i=1; i < N; i++) {
v = A[i];
j = i - 1;
while (j >= 0 && A[j] > v) {
A[j+1] = A[j];
... | main.c: In function 'trace':
main.c:6:12: error: implicit declaration of function 'print'; did you mean 'printf'? [-Wimplicit-function-declaration]
6 | if(i>0)print(" ");
| ^~~~~
| printf
|
s212853073 | p02255 | C | /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
| |
s942121750 | p02255 | C | #include<stdio.h>
void trace(int A[],int N){
int i;
for( i = 0 ; i < N; i++){
if(i>0)print(" ");
printf("%d",A[i]);
}
printf("\n");
}
void insertionSort(int A[], int N){
int i,j,v;
for (i=1; i < N; i++) {
v = A[i];
j = i - 1;
while (j >= 0 && A[j] > v) {
A[j+1] = A[j];
... | main.c: In function 'trace':
main.c:6:12: error: implicit declaration of function 'print'; did you mean 'printf'? [-Wimplicit-function-declaration]
6 | if(i>0)print(" ");
| ^~~~~
| printf
|
s510867012 | p02255 | C | /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
| |
s505410903 | p02255 | C | /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
| |
s772981575 | p02255 | C | #include<stdio.h>
void trace(int A[],int N){
int i;
for( i = 0 ; i < N; i++){
if(i>0)print(" ");
printf("%d",A[i]);
}
printf("\n");
}
void insertionSort(int A[], int N){
int i,j,v;
for (i=1; i < N; i++) {
v = A[i];
j = i - 1;
while (j >= 0 && A[j] > v) {
A[j+1] = A[j];
... | main.c: In function 'trace':
main.c:6:12: error: implicit declaration of function 'print'; did you mean 'printf'? [-Wimplicit-function-declaration]
6 | if(i>0)print(" ");
| ^~~~~
| printf
|
s738146484 | p02255 | C | /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
| |
s625728455 | p02255 | C | /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
| |
s649630754 | p02255 | C | /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
| |
s693834480 | p02255 | C | /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
| |
s165110455 | p02255 | C | /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
| |
s856471693 | p02255 | C | /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
| |
s852819922 | p02255 | C | #include <stdio.h>
#include <string.h>
#define N 5
void insertionSort(int *,int);
int main (){
scanf("",&b);
insertionSort(,N);
return 0;
}
void insertionSort(int *a,int b){
int i,j,v,;
for(i=0;i<b-1;i++){
v = A[i];
j=-1;
while(j>=0 && A[j]>v){
A[j+1] = A[j];
j--;
A[j+1] = v;
... | main.c: In function 'main':
main.c:6:13: error: 'b' undeclared (first use in this function)
6 | scanf("",&b);
| ^
main.c:6:13: note: each undeclared identifier is reported only once for each function it appears in
main.c:7:17: error: expected expression before ',' token
7 | insertionSort(,... |
s968730705 | p02255 | C | /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
| |
s965044955 | p02255 | C | /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
| |
s142976773 | p02255 | C | /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
| |
s786852736 | p02255 | C | /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
| |
s327455704 | p02255 | C | #include <stdio.h>
int main(void)
{
int i, j, tmp, tate, N;
/* 数値を格納する配列 */
int number[100];
/* 数値の総数を入力 */
int total;
scanf("%d", &N);
scanf("%d",&su);
/* 配列に格納する数値を入力 */
printf("%d個の数値を入力 \n", total);
for (i=0; i<total; ++i)
scanf("%d", &number[i]);
/* 数値を昇順にソート */
for (i=0; i<t... | main.c: In function 'main':
main.c:14:15: error: 'su' undeclared (first use in this function)
14 | scanf("%d",&su);
| ^~
main.c:14:15: note: each undeclared identifier is reported only once for each function it appears in
|
s186319225 | p02255 | C | #include <stdio.h>
int main(void)
{
int i, j, tmp, tate, N;
/* 数値を格納する配列 */
int number[100];
/* 数値の総数を入力 */
int total;
scanf("%d", &N);
scanf("%d",&su);
/* 配列に格納する数値を入力 */
printf("%d個の数値を入力 \n", total);
for (i=0; i<total; ++i)
scanf("%d", &number[i]);
/* 数値を昇順にソート */
for (i=0; i<t... | main.c: In function 'main':
main.c:14:15: error: 'su' undeclared (first use in this function)
14 | scanf("%d",&su);
| ^~
main.c:14:15: note: each undeclared identifier is reported only once for each function it appears in
|
s894456874 | p02255 | C | #include <stdio.h>
int main(void)
{
int i, j, tmp, tate, N;
/* 数値を格納する配列 */
int number[100];
/* 数値の総数を入力 */
int total;
scanf("%d", &N);
scanf("%d",&su);
/* 配列に格納する数値を入力 */
printf("%d個の数値を入力 \n", total);
for (i=0; i<total; ++i)
scanf("%d", &number[i]);
/* 数値を昇順にソート */
for (i=0; i<t... | main.c: In function 'main':
main.c:14:15: error: 'su' undeclared (first use in this function)
14 | scanf("%d",&su);
| ^~
main.c:14:15: note: each undeclared identifier is reported only once for each function it appears in
|
s075799610 | p02255 | C | #include <stdio.h>
int main(void)
{
int i, j, tmp, tate, N;
/* 数値を格納する配列 */
int number[100];
/* 数値の総数を入力 */
int total;
scanf("%d", &N);
scanf("%d",&su);
/* 配列に格納する数値を入力 */
printf("%d個の数値を入力 \n", total);
for (i=0; i<total; ++i)
scanf("%d", &number[i]);
/* 数値を昇順にソート */
for (i=0; i<t... | main.c: In function 'main':
main.c:14:15: error: 'su' undeclared (first use in this function)
14 | scanf("%d",&su);
| ^~
main.c:14:15: note: each undeclared identifier is reported only once for each function it appears in
|
s250732565 | p02255 | C | #include <stdio.h>
int main(void)
{
int i, j, tmp, tate, N;
/* 数値を格納する配列 */
int number[100];
/* 数値の総数を入力 */
int total;
scanf("%d", &N);
scanf("%d",&su);
/* 配列に格納する数値を入力 */
printf("%d個の数値を入力 \n", total);
for (i=0; i<total; ++i)
scanf("%d", &number[i]);
/* 数値を昇順にソート */
for (i=0; i<t... | main.c: In function 'main':
main.c:14:15: error: 'su' undeclared (first use in this function)
14 | scanf("%d",&su);
| ^~
main.c:14:15: note: each undeclared identifier is reported only once for each function it appears in
|
s403203159 | p02255 | C | #include <stdio.h>
int main(void)
{
int i, j, tmp, tate, N;
/* 数値を格納する配列 */
int number[100];
/* 数値の総数を入力 */
int total;
scanf("%d", &N);
scanf("%d",&su);
/* 配列に格納する数値を入力 */
printf("%d個の数値を入力 \n", total);
for (i=0; i<total; ++i)
scanf("%d", &number[i]);
/* 数値を昇順にソート */
for (i=0; i<t... | main.c: In function 'main':
main.c:14:15: error: 'su' undeclared (first use in this function)
14 | scanf("%d",&su);
| ^~
main.c:14:15: note: each undeclared identifier is reported only once for each function it appears in
|
s657253408 | p02255 | C | #include <stdio.h>
int main(void)
{
int i, j, tmp, tate, N;
/* 数値を格納する配列 */
int number[100];
/* 数値の総数を入力 */
int total;
scanf("%d", &N);
scanf("%d",&su);
/* 配列に格納する数値を入力 */
printf("%d個の数値を入力 \n", total);
for (i=0; i<total; ++i)
scanf("%d", &number[i]);
/* 数値を昇順にソート */
for (i=0; i<t... | main.c: In function 'main':
main.c:14:15: error: 'su' undeclared (first use in this function)
14 | scanf("%d",&su);
| ^~
main.c:14:15: note: each undeclared identifier is reported only once for each function it appears in
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.