Submission #4682933


Source Code Expand

#include<stdio.h>

int main(void){
 int a;
  int b;
  int ans;
  scanf("%d",&a);
 scanf("%d",&b);
 int countr;
  int countb;
  while(a!=b){
   if(a==10){
     a=0;
   }
    a++;
    countr++;
  }
  whiel(a!=b){
    
   if(a==0){
     a=10;
   }
    a--;
    countb++;
  }
  if(a>b){
    ans=b;
  }else{
    ans=a;
  }
  printf("%d/n",ans);
}

Submission Info

Submission Time
Task B - 錠
User masibw
Language C++14 (GCC 5.4.1)
Score 0
Code Size 372 Byte
Status CE

Compile Error

./Main.cpp: In function ‘int main()’:
./Main.cpp:18:13: error: ‘whiel’ was not declared in this scope
   whiel(a!=b){
             ^
./Main.cpp:7:17: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
   scanf("%d",&a);
                 ^
./Main.cpp:8:16: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
  scanf("%d",&b);
                ^