Submission #4047305


Source Code Expand

#include<iostream>
#include<algorithm>
#include<climits>
#include<cmath>
#include<cstdio>
#include<cstdlib>
#include<ctime>
#include<string>
#include<cstring>
#include<vector>
#include<stack>
#include<queue>
#include<set>
#include<bitset>
#define endl "\n"
using namespace std;

int main()
{

  char c;
  scanf("%s", &c);
  if (c == 97 || c == 105 || c == 117 || c == 101 || c == 111)
  {
    printf("%s\n", "vowel");
  }
  else
  {
    printf("%s\n", "consonant");
  }
  return 0;
}

Submission Info

Submission Time
Task A - UOIAUAI
User nisshimo
Language C++14 (GCC 5.4.1)
Score 100
Code Size 516 Byte
Status AC
Exec Time 1 ms
Memory 256 KB

Compile Error

./Main.cpp: In function ‘int main()’:
./Main.cpp:22:18: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
   scanf("%s", &c);
                  ^

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 100 / 100
Status
AC × 3
AC × 10
Set Name Test Cases
Sample subtask0_0.txt, subtask0_1.txt, subtask0_2.txt
All subtask0_0.txt, subtask0_1.txt, subtask0_2.txt, subtask1_0.txt, subtask1_1.txt, subtask1_2.txt, subtask1_3.txt, subtask1_4.txt, subtask1_5.txt, subtask1_6.txt
Case Name Status Exec Time Memory
subtask0_0.txt AC 1 ms 256 KB
subtask0_1.txt AC 1 ms 256 KB
subtask0_2.txt AC 1 ms 256 KB
subtask1_0.txt AC 1 ms 256 KB
subtask1_1.txt AC 1 ms 256 KB
subtask1_2.txt AC 1 ms 256 KB
subtask1_3.txt AC 1 ms 256 KB
subtask1_4.txt AC 1 ms 256 KB
subtask1_5.txt AC 1 ms 256 KB
subtask1_6.txt AC 1 ms 256 KB