CSES - Datatähti 2023 alku - Results
Submission details
Task:Kortit
Sender:Aino
Submission time:2022-10-31 12:02:49 +0200
Language:C++11
Status:COMPILE ERROR

Compiler report

input/code.cpp: In function 'int main()':
input/code.cpp:6:12: error: 'n' was not declared in this scope; did you mean 'yn'?
    6 |     cin >> n;
      |            ^
      |            yn
input/code.cpp:10:5: error: 'elif' was not declared in this scope
   10 |     elif (n<=26){
      |     ^~~~
input/code.cpp:13:5: error: 'else' without a previous 'if'
   13 |     else{
      |     ^~~~

Code

#include <bits/stdc++.h>

using namespace std;

int main(){
    cin >> n;
    if (n<=1){
        cout << "NO\n";
    }
    elif (n<=26){
        cout << "MAYBE\n";
    }
    else{
        cout << "YES\n";
    }
}