Language: C++


Problem
Status
Contest
User
Group
Forum
Article
Logout
riyad_045
Begin: 2018-07-02 10:00 BST
 Long Contest One: 02 July 2018
End: 2018-07-08 09:00 BST
143:00:00
Ended
Overview
Problem
Status
Rank (143:00:00)
0 Comments
Previous12345…Next
Username

Prob
	Result 
	Time
(ms)	Mem
(MB)	Lang 
	Submit Time
riyad_045
I
Runtime Error
Bash (GNU bash v4.3.11)
1 days ago
           
All Copyright Reserved ©2018 Xu Han
Server Time: 2018-09-01 21:20:20 BST

#15764756 | riyad_045's solution for [AtCoder-2036] [Problem I]
Status
Runtime Error
Length
707
Lang
Bash (GNU bash v4.3.11)
Submitted
2018-08-31 10:41:26
Shared

RemoteRunId
3106158
0.0 / 12.0
Select Code
#include<stdio.h>

int main()
{
    char a[1000],temp;
    int i,j,flag=0,c=0;
    scanf("%s",a);
    for(i=0;a[i]!='\0';i++)
    {
        if(a[i]>='a' && a[i]<='z')
        {
            c++;
            temp=a[i];
            a[i]='0';
            for(j=0;a[j]!='\0';j++)
            {
                if(a[j]==temp)
                {
                    a[j]=0;
                    c++;
                }
            }
            if(c%2==0)
            {
                flag=1;
            }
            else
            {
                break;
            }
        }
    }
    if(flag==1)
    {
        printf("Yes\n");
    }
    else if(flag==0)
    {
        printf("No\n");
    }
    return 0;
}

Compiler output:
a.cc:13:14: error: invalid digit "8" in octal constant
   13 | End: 2018-07-08 09:00 BST
      |              ^~
a.cc:13:17: error: invalid digit "9" in octal constant
   13 | End: 2018-07-08 09:00 BST
      |                 ^~
a.cc:21:1: error: extended character … is not valid in an identifier
   21 | Previous12345…Next
      | ^
a.cc:33:18: error: too many decimal points in number
   33 | Bash (GNU bash v4.3.11)
      |                  ^~~~~
a.cc:36:24: error: extended character © is not valid in an identifier
   36 | All Copyright Reserved ©2018 Xu Han
      |                        ^
a.cc:37:19: error: invalid digit "9" in octal constant
   37 | Server Time: 2018-09-01 21:20:20 BST
      |                   ^~
a.cc:39:11: error: "|" is not a valid filename
   39 | #15764756 | riyad_045's solution for [AtCoder-2036] [Problem I]
      |           ^
a.cc:39:22: warning: missing terminating ' character
   39 | #15764756 | riyad_045's solution for [AtCoder-2036] [Problem I]
      |                      ^
a.cc:45:18: error: too many decimal points in number
   45 | Bash (GNU bash v4.3.11)
      |                  ^~~~~
a.cc:47:6: error: invalid digit "8" in octal constant
   47 | 2018-08-31 10:41:26
      |      ^~
a.cc:2:1: error: 'Problem' does not name a type
    2 | Problem
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:60:5: error: 'scanf' was not declared in this scope
   60 |     scanf("%s",a);
      |     ^~~~~
a.cc:88:9: error: 'printf' was not declared in this scope
   88 |         printf("Yes\n");
      |         ^~~~~~
a.cc:55:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
   54 | #include<stdio.h>
  +++ |+#include <cstdio>
   55 | 
a.cc:92:9: error: 'printf' was not declared in this scope
   92 |         printf("No\n");
      |         ^~~~~~
a.cc:92:9: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'