Problem addition
User Sarah285
Submission Time 2024-06-24 14:23:46
Score 0
Max Time N/A
Max Memory N/A

Compile Error

addition.cpp: In function ‘int main()’:
addition.cpp:5:42: error: a function-definition is not allowed here before ‘{’ token
5 | long long gcd(long long a, long long b) {
| ^
addition.cpp:14:12: error: a function-definition is not allowed here before ‘{’ token
14 | int main() {
| ^
addition.cpp:25:1: error: expected ‘}’ at end of input
25 | }
| ^
addition.cpp:4:11: note: to match this ‘{’
4 | int main(){
| ^