/ SeriousOJ /

Record Detail

Compile Error

foo.c: In function 'main':
foo.c:19:5: error: expected declaration or statement at end of input
   19 |     return 0;
      |     ^~~~~~

Code


#include <stdio.h>

int main() {
    int t,i,j,n,xr=0;
    scanf("%d",&t);
    for (i=1;i<=t;i++){
        scanf("%d",&n);
        for(j=1;j<=n;j++){
            xr=xr^j;
        }
        
        printf("%d\n",xr);
        xr=0;
        
        
    }

    return 0;

Information

Submit By
Type
Submission
Problem
P1009 XOR Love
Language
C99 (GCC 13.2.0)
Submit At
2023-12-31 11:35:22
Judged At
2024-11-11 03:46:53
Judged By
Score
0
Total Time
0ms
Peak Memory
0 Bytes