#include <stdio.h>
int main(){
char name[32];
float age;
int state;
}
printf("Enter state: Test\n"); printf("Enter name: Test1\n"); printf("Enter state: Test1\n"); printf("Enter name: Test2\n"); printf("Enter age: 252\n");
scanf("%f” age);
printf("Enter state: Test2\n"); return 0;
I2luY2x1ZGUgPHN0ZGlvLmg+CmludCBtYWluKCl7CiAgIGNoYXIgbmFtZVszMl07CiAgIGZsb2F0IGFnZTsKICAgaW50IHN0YXRlOwp9CiAgIHByaW50ZigiRW50ZXIgbmFtZTogVGVzdFxuIik7CiAgIHNjYW5mKCIlcyIgbmFtZSk7CiAgIHByaW50ZigiRW50ZXIgYWdlOiAyNVxuIik7CiAgIHNjYW5mKCIlZiIgYWdlKTsKCXByaW50ZigiRW50ZXIgc3RhdGU6IFRlc3RcbiIpOwogICBzY2FuZigiJXMiIHN0YXRlKTsKICAgcHJpbnRmKCJFbnRlciBuYW1lOiBUZXN0MVxuIik7CiAgIHNjYW5mKCIlcyIgbmFtZSk7CiAgIHByaW50ZigiRW50ZXIgYWdlOiAyNTFcbiIpOwogICBzY2FuZigiJWYiIGFnZSk7CglwcmludGYoIkVudGVyIHN0YXRlOiBUZXN0MVxuIik7CiAgIHNjYW5mKCIlcyIgc3RhdGUpOwogICAgICBwcmludGYoIkVudGVyIG5hbWU6IFRlc3QyXG4iKTsKICAgc2NhbmYoIiVz4oCdIG5hbWUpOwogICBwcmludGYoIkVudGVyIGFnZTogMjUyXG4iKTsKICAgc2NhbmYoIiVm4oCdIGFnZSk7CglwcmludGYoIkVudGVyIHN0YXRlOiBUZXN0MlxuIik7CiAgIHNjYW5mKCIlcyIgc3RhdGUpOwogICAgICAgICByZXR1cm4gMDsK
prog.c: In function ‘main’:
prog.c:5:8: warning: unused variable ‘state’ [-Wunused-variable]
int state;
^
prog.c:4:10: warning: unused variable ‘age’ [-Wunused-variable]
float age;
^
prog.c:3:9: warning: unused variable ‘name’ [-Wunused-variable]
char name[32];
^
prog.c: At top level:
prog.c:7:11: error: expected declaration specifiers or ‘...’ before string constant
printf("Enter name: Test\n");
^
prog.c:8:10: error: expected declaration specifiers or ‘...’ before string constant
scanf("%s" name);
^
prog.c:9:11: error: expected declaration specifiers or ‘...’ before string constant
printf("Enter age: 25\n");
^
prog.c:10:10: error: expected declaration specifiers or ‘...’ before string constant
scanf("%f" age);
^
prog.c:11:9: error: expected declaration specifiers or ‘...’ before string constant
printf("Enter state: Test\n");
^
prog.c:12:10: error: expected declaration specifiers or ‘...’ before string constant
scanf("%s" state);
^
prog.c:13:11: error: expected declaration specifiers or ‘...’ before string constant
printf("Enter name: Test1\n");
^
prog.c:14:10: error: expected declaration specifiers or ‘...’ before string constant
scanf("%s" name);
^
prog.c:15:11: error: expected declaration specifiers or ‘...’ before string constant
printf("Enter age: 251\n");
^
prog.c:16:10: error: expected declaration specifiers or ‘...’ before string constant
scanf("%f" age);
^
prog.c:17:9: error: expected declaration specifiers or ‘...’ before string constant
printf("Enter state: Test1\n");
^
prog.c:18:10: error: expected declaration specifiers or ‘...’ before string constant
scanf("%s" state);
^
prog.c:19:14: error: expected declaration specifiers or ‘...’ before string constant
printf("Enter name: Test2\n");
^
prog.c:20:10: warning: missing terminating " character [enabled by default]
scanf("%s” name);
^
prog.c:20:4: error: missing terminating " character
scanf("%s” name);
^
prog.c:21:4: error: expected declaration specifiers or ‘...’ before ‘printf’
printf("Enter age: 252\n");
^
prog.c:22:4: error: expected declaration specifiers or ‘...’ before ‘scanf’
scanf("%f” age);
^
prog.c:22:10: warning: missing terminating " character [enabled by default]
scanf("%f” age);
^
prog.c:22:4: error: missing terminating " character
scanf("%f” age);
^
prog.c: In function ‘main’:
prog.c:6:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^