/ SeriousOJ /

Record Detail

Compile Error

foo.cc: In function 'int main()':
foo.cc:5:21: error: expected primary-expression before ';' token
    5 |     cin >> x >> y >>;
      |                     ^
foo.cc:9:45: error: expected primary-expression before '%' token
    9 |     else if((x % 2 == 0 && z % 2 == 0) || ( % 2 != 0 && z % 2 != 0)){
      |                                             ^

Code

#include <bits/stdc++.h>
using namespace std;
int main(){
    long long x, y, z;
    cin >> x >> y >>;
    if((x % 2 == 0 && y % 2 == 0) || (x % 2 != 0 && y % 2 != 0)){
        cout << z << endl;
    }
    else if((x % 2 == 0 && z % 2 == 0) || ( % 2 != 0 && z % 2 != 0)){
        cout << y << endl;
    }
    else{
        cout << x << endl;
    }
    return 0;
}

Information

Submit By
Type
Submission
Problem
P1232 Parity
Contest
LUCC Presents Intra LU Junior Programming Contest - Replay
Language
C++11 (G++ 13.2.0)
Submit At
2025-09-02 15:52:30
Judged At
2025-09-02 15:52:30
Judged By
Score
0
Total Time
0ms
Peak Memory
0 Bytes