Compile Error
foo.cc: In function 'int main()': foo.cc:20:11: error: expected primary-expression before '<<' token 20 | cout<<<<endl; | ^~
Code
#include<bits/stdc++.h>
using namespace std;
int main ()
{
int a,b,c;
cin>>a>>b>>c;
if(a%2!=0 && b%2!=0)
{
cout<<c<<endl;
}
else if(a%2!=0 && c%2!=0)
{
cout<<b<<endl;
}
else if(b%2!=0 && c%2!=0)
{
cout<<a<<endl;
}
else{
cout<<<<endl;
}
}
Information
- Submit By
- Type
- Submission
- Problem
- P1232 Parity
- Contest
- LUCC Presents Kick & Code Intra LU Programming Contest
- Language
- C++17 (G++ 13.2.0)
- Submit At
- 2025-09-01 06:44:35
- Judged At
- 2025-09-01 06:44:35
- Judged By
- Score
- 0
- Total Time
- 0ms
- Peak Memory
- 0 Bytes