Submission #7992871


Source Code Expand

#include<stdio.h>

int main()
{
  	int intd[3];
  	char chars[5];
	scanf("%d%d",intd,intd[1]);
  	scanf("%d",intd[2]);
  	scanf("%s",chars);
  
  	printf("%d %s",intd[0] + intd[1] + int[2],chars);	
	
	
	return 0;
}

Submission Info

Submission Time
Task PracticeA - Welcome to AtCoder
User pyonkiti
Language C (GCC 5.4.1)
Score 0
Code Size 232 Byte
Status CE

Compile Error

./Main.c: In function ‘main’:
./Main.c:8:8: warning: format ‘%d’ expects argument of type ‘int *’, but argument 3 has type ‘int’ [-Wformat=]
  scanf("%d%d",intd,intd[1]);
        ^
./Main.c:9:10: warning: format ‘%d’ expects argument of type ‘int *’, but argument 2 has type ‘int’ [-Wformat=]
    scanf("%d",intd[2]);
          ^
./Main.c:12:39: error: expected expression before ‘int’
    printf("%d %s",intd[0] + intd[1] + int[2],chars); 
                                       ^
./Main.c:8:2: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result]
  scanf("%d%d",intd,intd[1]);
  ^
./Main.c:9:4: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result]
    scanf("%d",intd[2]);
    ^
./Main.c:10:4: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result]
    scanf("%s",chars);
    ^