CSES - Datatähti 2023 alku - Results
Submission details
Task:Kortit
Sender:MV
Submission time:2022-11-13 18:11:53 +0200
Language:C++ (C++11)
Status:COMPILE ERROR

Compiler report

input/code.cpp: In function 'int main()':
input/code.cpp:8:22: error: 'NO' was not declared in this scope
    8 |     if (n<2) cout << NO;
      |                      ^~
input/code.cpp:9:28: error: 'MAYBE' was not declared in this scope
    9 |     if (n>1&&n<27) cout << MAYBE;
      |                            ^~~~~
input/code.cpp:10:23: error: 'YES' was not declared in this scope
   10 |     if (n>26) cout << YES;
      |                       ^~~
input/code.cpp:11:13: error: 'x' was not declared in this scope
   11 |     cout << x << "\n";
      |             ^

Code

#include <iostream>
using namespace std;

int main() {
    int n;
    cin >> n;
    
    if (n<2) cout << NO;
    if (n>1&&n<27) cout << MAYBE;
    if (n>26) cout << YES;
    cout << x << "\n";
}