Submission #2558858


Source Code Expand

#include<iostream>
using namespace std;
 int main{
 	int a,b,c,d;
   cin >>a >> b >>c;
   int d = a*100+b*10+c;
   
   if ( c % 4 ) cout << "YES" <<endl;
   else cout << "NO" << endl;
 
 
 
 }

Submission Info

Submission Time
Task A - RGB Cards
User Sophie1234
Language C++14 (GCC 5.4.1)
Score 0
Code Size 204 Byte
Status CE

Compile Error

./Main.cpp:4:3: error: expected primary-expression before ‘int’
   int a,b,c,d;
   ^
./Main.cpp:4:3: error: expected ‘}’ before ‘int’
./Main.cpp:4:3: error: expected ‘,’ or ‘;’ before ‘int’
./Main.cpp:5:4: error: ‘cin’ does not name a type
    cin >>a >> b >>c;
    ^
./Main.cpp:6:12: error: ‘a’ was not declared in this scope
    int d = a*100+b*10+c;
            ^
./Main.cpp:6:18: error: ‘b’ was not declared in this scope
    int d = a*100+b*10+c;
                  ^
./Main.cpp:6:23: error: ‘c’ was not declared in this scope
    int d = a*100+b*10+c;
                       ^
./Main.cpp:8:4: error: expected unqualified-id before ‘if’
    if ( c % 4 ) cout << "YES" <<endl;
    ^
./Main.cpp:9:4: error: expected unqualified-id before ‘else’
    else cout << "NO" << endl;
    ^
./Main.cpp:13:2: error: expected declaration before ‘}’ token
  }
  ^