Submission details
Task:Backpacking
Sender:aalto26am_027
Submission time:2026-08-31 16:46:04 +0300
Language:C
Status:COMPILE ERROR

Compiler report

input/code.c: In function 'main':
input/code.c:17:5: error: 'res' undeclared (first use in this function)
   17 |     res = a+b;
      |     ^~~
input/code.c:17:5: note: each undeclared identifier is reported only once for each function it appears in
input/code.c:15:5: warning: ignoring return value of 'scanf' declared with attribute 'warn_unused_result' [-Wunused-result]
   15 |     scanf("%d %d", &a, &b);
      |     ^~~~~~~~~~~~~~~~~~~~~~

Code

/******************************************************************************

                            Online C Compiler.
                Code, Compile, Run and Debug C program online.
Write your code in this editor and press "Run" button to compile and execute it.

*******************************************************************************/

#include <stdio.h>

int main()
{
    
    int a, b;
    scanf("%d %d", &a, &b);
    
    res = a+b;
    
    return a+b;
}