Compile Error
foo.cc: In function 'int main()': foo.cc:6:14: error: 'n' was not declared in this scope 6 | cin>>n; | ^
Code
#include <iostream>
using namespace std;
int main(){
int N,a,b,sum;
cin>>n;
a=N/2;
b=a/2;
sum = N+a+b;
cout<<sum<<endl;
return 0;
}
Information
- Submit By
- Type
- Submission
- Problem
- P1176 Free chocolate
- Contest
- Intra LU IEEE Beginner Programming Contest
- Language
- C++17 (G++ 13.2.0)
- Submit At
- 2025-02-26 07:23:14
- Judged At
- 2025-02-26 07:23:14
- Judged By
- Score
- 0
- Total Time
- 0ms
- Peak Memory
- 0 Bytes