QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#744128 | #8986. Call for Problems | lwl2005 | Compile Error | / | / | C++98 | 292b | 2024-11-13 20:56:36 | 2024-11-13 20:56:36 |
Judging History
This is the latest submission verdict.
- [2024-11-13 20:56:36]
- Judged
- Verdict: Compile Error
- Time: 0ms
- Memory: 0kb
- [2024-11-13 20:56:36]
- Submitted
answer
#include<stdio.h>
#include<iostream>
using namespace std:
int main()
{
int n,x,num=0;
scanf("%d",&n);
for(int i=1;i<=n;i++)
{
scanf("%d",&x);
if(x%2==1)
num++;
}
printf("%d\n",num);
return 0;
}
Details
answer.code:3:20: error: expected ‘;’ before ‘:’ token 3 | using namespace std: | ^ | ; answer.code:3:20: error: expected unqualified-id before ‘:’ token