Compile Error
foo.cc: In function 'int main()': foo.cc:8:1: error: return-statement with no value, in function returning 'int' [-fpermissive] 8 | return | ^~~~~~
Code
#include <bits/stdc++.h>
using namespace std;
int main()
{
int a,b;
cin>>a>>b;
cout<<a+b;
return
;
}
Information
- Submit By
- Type
- Submission
- Problem
- P1000 A + B
- Language
- C++17 (G++ 13.2.0)
- Submit At
- 2025-07-17 20:58:38
- Judged At
- 2025-07-17 20:58:39
- Judged By
- Score
- 0
- Total Time
- 0ms
- Peak Memory
- 0 Bytes