ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Discussion of Problem 1000. A+B Problem

please help me to find out error!
Posted by alcidewww 18 Oct 2016 21:33
#include <stdio.h>
int main(){
    int a, b,c;
    scanf_s("%d",&a);
    scanf_s("%d",&b);
    c = a + b;
    return 0;
}

//the result is wrong answer,I want to ask why?Can you help me fix it?
Re: please help me to find out error!
Posted by xujinxue 21 Oct 2016 11:14
You don't have a sense of output statement.

#include <stdio.h>
int main ()
{
    int a, b, c;
    scanf("%d", &a);
    scanf("%d", &b);
    c = a + b;
    printf("%d", c);
    return 0;
}