View Code of Problem 1

# include<stdio.h>
int a,b;
scanf("%d %d",&a,&b);
printf("%d",a+b);

/*
Main.c:4:6: error: stray '\357' in program
 scanf("%d %d",&a,&b);
      ^
Main.c:4:7: error: stray '\274' in program
 scanf("%d %d",&a,&b);
       ^
Main.c:4:8: error: stray '\210' in program
 scanf("%d %d",&a,&b);
        ^
Main.c:4:9: error: expected '=', ',', ';', 'asm' or '__attribute__' before string constant
 scanf("%d %d",&a,&b);
         ^~~~~~~
Main.c:4:22: error: stray '\357' in program
 scanf("%d %d",&a,&b);
                      ^
Main.c:4:23: error: stray '\274' in program
 scanf("%d %d",&a,&b);
                       ^
Main.c:4:24: error: stray '\211' in program
 scanf("%d %d",&a,&b);
                        ^
Main.c:5:8: error: expected declaration specifiers or '...' before string constant
 printf("%d",a+b);
        ^~~~
Main.c:5:13: error: expected declaration specifiers or '...' before 'a'
 printf("%d",a+b);
             ^
*/

Double click to view unformatted code.


Back to problem 1