Close ×

My Accounts

You´ not logged in.

About

P1000 A+B Problem

Overview

Judge Result Compile Error
Problem P1000 A+B Problem
Submit Time December 25, 2019, 9:40:09 PM
Language C++
Judger Default Judger
Used Time 0 ms
Used Memory 0 K
Execute Time December 25, 2019, 9:39:41 PM

Judge Result

Compile Error. /tmp/voj-1440/RXhpsPZcQrma.cpp:1:6: warning: ISO C++ forbids declaration of ‘main’ with no type [-Wreturn-type] 1 | main() {int a, b;scanf("%d %d", &a, &b);printf("%d", a+b);} | ^ /tmp/voj-1440/RXhpsPZcQrma.cpp: In function ‘int main()’: /tmp/voj-1440/RXhpsPZcQrma.cpp:1:18: error: ‘scanf’ was not declared in this scope 1 | main() {int a, b;scanf("%d %d", &a, &b);printf("%d", a+b);} | ^~~~~ /tmp/voj-1440/RXhpsPZcQrma.cpp:1:41: error: ‘printf’ was not declared in this scope 1 | main() {int a, b;scanf("%d %d", &a, &b);printf("%d", a+b);} | ^~~~~~ /tmp/voj-1440/RXhpsPZcQrma.cpp:1:1: note: ‘printf’ is defined in header ‘’; did you forget to ‘#include ’? +++ |+#include 1 | main() {int a, b;scanf("%d %d", &a, &b);printf("%d", a+b);} Compile Error, Time = 0 ms, Memory = 0 KB, Score = 0.