submission_id stringlengths 10 10 | problem_id stringlengths 6 6 | language stringclasses 3
values | code stringlengths 1 522k | compiler_output stringlengths 43 10.2k |
|---|---|---|---|---|
s142401272 | p03698 | C++ | #include <iostream>
#include <fstream>
#include <string>
#include <cmath>
#include <cstdlib>
#include <ctime>
#include <vector>
#include <algorithm>
#include <numeric>
#include <functional>
using namespace std;
int main() {
string S;
cin >> S;
int i;
int c[26] = {};
for (i = 0; i < S.size(); i++) {
c[S[i] - 'a']++
}
for (i = 0; i < 26; i++) {
if (c[i] > 1){
cout << "no" << endl;
return 0;
}
}
cout << "YES" << endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:19:32: error: expected ';' before '}' token
19 | c[S[i] - 'a']++
| ^
| ;
20 | }
| ~
|
s740797723 | p03698 | C++ | #include<stdio.h>
#include<string.h>
int main()
{
char st[30];
int i,raf=0,j;
gets(st);
for(i=0; i<strlen(st)-1; i++)
{
for(j=i+1; j<strlen(st); j++)
{
if(st[j]==st[i])
{
raf=1;
break;
}
}
if(raf==1)
break;
}
if(raf==0)
printf("yes\n");
else
printf("no\n");
}
| a.cc: In function 'int main()':
a.cc:7:5: error: 'gets' was not declared in this scope; did you mean 'getw'?
7 | gets(st);
| ^~~~
| getw
|
s482407963 | p03698 | C++ | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
import sys
import re
import math
import collections
import itertools
import functools
DEBUG = True
DEBUG = False
def dbg(*args):
if DEBUG:
print("DBG: ", file=sys.stderr, end="")
print(*args, file=sys.stderr)
def main():
s = input();
yes = len(set(s)) == len(s)
print("yes" if yes else "no")
if __name__ == "__main__": main()
| a.cc:1:2: error: invalid preprocessing directive #!
1 | #!/usr/bin/env python3
| ^
a.cc:2:3: error: invalid preprocessing directive #-
2 | # -*- coding: utf-8 -*-
| ^
a.cc:4:1: error: 'import' does not name a type
4 | import sys
| ^~~~~~
a.cc:4:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:23:5: error: 'yes' does not name a type
23 | yes = len(set(s)) == len(s)
| ^~~
|
s693901469 | p03698 | C | #include <stdio.h>
#include <string.h>
int main() {
int i, j;
int tmp =0;
char str[26];
scanf("%s", str);
for(i = 0; i < strlen(str); i++) {
for(j = i + 1; j < strlen(str); j++) {
if(str[i] == str[j]) {
tmp = 1;
}
}
}
if (tmp == 1) {
printf("no\n");
} else {
printf("yes\n");
} | main.c: In function 'main':
main.c:32:3: error: expected declaration or statement at end of input
32 | }
| ^
|
s629356790 | p03698 | C | #include <stdio.h>
#include <string.h>
int main(void) {
int i, j;
int tmp =0;
char str[26];
scanf("%s", str);
for(i = 0; < strlen(str); i++) {
for(j = i + 1; j < strlen(str); j++) {
if(str[i] == str[j]) {
tmp = 1;
}
}
}
if (tmp == 1) {
printf("no\n");
} else {
printf("yes\n");
}
return 0;
}
| main.c: In function 'main':
main.c:14:14: error: expected expression before '<' token
14 | for(i = 0; < strlen(str); i++) {
| ^
|
s315251411 | p03698 | C | #include <stdio.h>
int main(void) {
int i, j;
int tmp =0;
char str[26];
scanf("%s", str);
for(i = 0; < strlen(str); i++) {
for(j = i + 1; j < strlen(str); j++) {
if(str[i] == str[j]) {
tmp = 1;
}
}
}
if (tmp == 1) {
printf("no\n");
} else {
printf("yes\n");
}
return 0;
}
| main.c: In function 'main':
main.c:12:14: error: expected expression before '<' token
12 | for(i = 0; < strlen(str); i++) {
| ^
main.c:13:25: error: implicit declaration of function 'strlen' [-Wimplicit-function-declaration]
13 | for(j = i + 1; j < strlen(str); j++) {
| ^~~~~~
main.c:2:1: note: include '<string.h>' or provide a declaration of 'strlen'
1 | #include <stdio.h>
+++ |+#include <string.h>
2 |
main.c:13:25: warning: incompatible implicit declaration of built-in function 'strlen' [-Wbuiltin-declaration-mismatch]
13 | for(j = i + 1; j < strlen(str); j++) {
| ^~~~~~
main.c:13:25: note: include '<string.h>' or provide a declaration of 'strlen'
|
s819022700 | p03698 | C | #include <stdio.h>
int main() {
int i, j;
int tmp =0;
char str[26];
scanf("%s", str);
for(i = 0; < strlen(str); i++) {
for(j = i + 1; j < strlen(str); j++) {
if(str[i] == str[j]) {
tmp = 1;
}
}
}
if (tmp == 1) {
printf("no\n");
} else {
printf("yes\n");
}
return 0;
}
| main.c: In function 'main':
main.c:12:14: error: expected expression before '<' token
12 | for(i = 0; < strlen(str); i++) {
| ^
main.c:13:25: error: implicit declaration of function 'strlen' [-Wimplicit-function-declaration]
13 | for(j = i + 1; j < strlen(str); j++) {
| ^~~~~~
main.c:2:1: note: include '<string.h>' or provide a declaration of 'strlen'
1 | #include <stdio.h>
+++ |+#include <string.h>
2 |
main.c:13:25: warning: incompatible implicit declaration of built-in function 'strlen' [-Wbuiltin-declaration-mismatch]
13 | for(j = i + 1; j < strlen(str); j++) {
| ^~~~~~
main.c:13:25: note: include '<string.h>' or provide a declaration of 'strlen'
|
s485274053 | p03698 | C++ | #include <iostream>
#include <algorithm>
#include <string>
using namespace std;
int main()
{
char s[26];
cin >> s;
int n = strlen(s);
string ans = "yes";
for (int i = 0; i < n; i++) {
for (int j = i + 1; j < n; j++) {
if (s[i] == s[j]) {
ans = "no";
}
}
}
cout << ans << endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:11:13: error: 'strlen' was not declared in this scope
11 | int n = strlen(s);
| ^~~~~~
a.cc:3:1: note: 'strlen' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
2 | #include <algorithm>
+++ |+#include <cstring>
3 | #include <string>
|
s163327466 | p03698 | C++ | #include <iostream>
using namespace std;
int main()
{
char s[26];
cin >> s;
int n = strlen(s);
string ans = "yes";
for (int i = 0; i < n; i++) {
for (int j = i + 1; j < n; j++) {
if (s[i] == s[j]) {
ans = "no";
}
}
}
cout << ans << endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:9:13: error: 'strlen' was not declared in this scope
9 | int n = strlen(s);
| ^~~~~~
a.cc:2:1: note: 'strlen' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
1 | #include <iostream>
+++ |+#include <cstring>
2 | using namespace std;
|
s528033887 | p03698 | C++ | #include <iostream>
#include <algorithm>
using namespace std;
int main()
{
char s[26];
cin >> s;
int n = strlen(s);
string ans = "yes";
for (int i = 0; i < n; i++) {
for (int j = i + 1; j < n; j++) {
if (s[i] == s[j]) {
ans = "no";
}
}
}
cout << ans << endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:10:13: error: 'strlen' was not declared in this scope
10 | int n = strlen(s);
| ^~~~~~
a.cc:3:1: note: 'strlen' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
2 | #include <algorithm>
+++ |+#include <cstring>
3 | using namespace std;
|
s305657605 | p03698 | C++ | #include <iostream>
#include <algorithm>
#include <string>
using namespace std;
int main()
{
char s[26];
cin >> s;
int n = strlen(s);
string ans = "yes";
for (int i = 0; i < n; i++) {
for (int j = i + 1; j < n; j++) {
if (s[i] == s[j]) {
ans = "no";
}
}
}
cout << ans << endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:11:13: error: 'strlen' was not declared in this scope
11 | int n = strlen(s);
| ^~~~~~
a.cc:3:1: note: 'strlen' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
2 | #include <algorithm>
+++ |+#include <cstring>
3 | #include <string>
|
s026329810 | p03698 | C | #include<stdio.h>
int main()
{
char str[];
int length;
char str[] judge="no";
scanf("%d",str);
length = strlen(str);
for(int i=0;i<length;i++){
for(int j=i++;j<length;j++){
if(str[i]==str[j])judge="yes";
}
}
printf("%d",judge);
return 0;
}
| main.c: In function 'main':
main.c:5:10: error: array size missing in 'str'
5 | char str[];
| ^~~
main.c:7:16: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'judge'
7 | char str[] judge="no";
| ^~~~~
main.c:7:16: error: 'judge' undeclared (first use in this function)
main.c:7:16: note: each undeclared identifier is reported only once for each function it appears in
main.c:10:14: error: implicit declaration of function 'strlen' [-Wimplicit-function-declaration]
10 | length = strlen(str);
| ^~~~~~
main.c:2:1: note: include '<string.h>' or provide a declaration of 'strlen'
1 | #include<stdio.h>
+++ |+#include <string.h>
2 |
main.c:10:14: warning: incompatible implicit declaration of built-in function 'strlen' [-Wbuiltin-declaration-mismatch]
10 | length = strlen(str);
| ^~~~~~
main.c:10:14: note: include '<string.h>' or provide a declaration of 'strlen'
|
s168987338 | p03698 | C++ | #include<iostream>
#include<string>
using namespace std;
int main(){
string S;
cin>>S;
for (int i=0;i<S.length();i++;){
for (int k=0;k<i;k++;){
if (S[i]==S[k]){}
else{
cout<<"no"<<endl;
return 0;
}
}
}
cout<<"yes"<<endl;
return 0;
}
| a.cc: In function 'int main()':
a.cc:7:30: error: expected ')' before ';' token
7 | for (int i=0;i<S.length();i++;){
| ~ ^
| )
a.cc:7:31: error: expected primary-expression before ')' token
7 | for (int i=0;i<S.length();i++;){
| ^
|
s414591667 | p03698 | C++ | package main
import (
"bufio"
"fmt"
"os"
"strconv"
)
func main() {
fsc := NewFastScanner()
S := fsc.Next()
check := map[rune]int{}
for _, c := range S {
check[c]++
}
ok := true
for _, v := range S {
if v > 1 {
ok = false
}
}
if ok {
fmt.Println("yes")
} else {
fmt.Println("no")
}
}
//template
type FastScanner struct {
r *bufio.Reader
buf []byte
p int
}
func NewFastScanner() *FastScanner {
rdr := bufio.NewReaderSize(os.Stdin, 1024)
return &FastScanner{r: rdr}
}
func (s *FastScanner) Next() string {
s.pre()
start := s.p
for ; s.p < len(s.buf); s.p++ {
if s.buf[s.p] == ' ' {
break
}
}
result := string(s.buf[start:s.p])
s.p++
return result
}
func (s *FastScanner) NextLine() string {
s.pre()
start := s.p
s.p = len(s.buf)
return string(s.buf[start:])
}
func (s *FastScanner) NextInt() int {
v, _ := strconv.Atoi(s.Next())
return v
}
func (s *FastScanner) NextInt64() int64 {
v, _ := strconv.ParseInt(s.Next(), 10, 64)
return v
}
func (s *FastScanner) pre() {
if s.p >= len(s.buf) {
s.readLine()
s.p = 0
}
}
func (s *FastScanner) readLine() {
s.buf = make([]byte, 0)
for {
l, p, e := s.r.ReadLine()
if e != nil {
panic(e)
}
s.buf = append(s.buf, l...)
if !p {
break
}
}
}
func IntMax(a, b int) int {
if a < b {
return b
}
return a
}
func Int64Max(a, b int64) int64 {
if a < b {
return b
}
return a
}
func Float64Max(a, b float64) float64 {
if a < b {
return b
}
return a
}
func IntMin(a, b int) int {
if a > b {
return b
}
return a
}
func Int64Min(a, b int64) int64 {
if a > b {
return b
}
return a
}
func Float64Min(a, b float64) float64 {
if a > b {
return b
}
return a
}
| a.cc:1:1: error: 'package' does not name a type
1 | package main
| ^~~~~~~
a.cc:31:1: error: 'type' does not name a type; did you mean 'typeof'?
31 | type FastScanner struct {
| ^~~~
| typeof
a.cc:37:1: error: 'func' does not name a type
37 | func NewFastScanner() *FastScanner {
| ^~~~
a.cc:41:6: error: expected constructor, destructor, or type conversion before '(' token
41 | func (s *FastScanner) Next() string {
| ^
a.cc:53:6: error: expected constructor, destructor, or type conversion before '(' token
53 | func (s *FastScanner) NextLine() string {
| ^
a.cc:59:6: error: expected constructor, destructor, or type conversion before '(' token
59 | func (s *FastScanner) NextInt() int {
| ^
a.cc:63:6: error: expected constructor, destructor, or type conversion before '(' token
63 | func (s *FastScanner) NextInt64() int64 {
| ^
a.cc:68:6: error: expected constructor, destructor, or type conversion before '(' token
68 | func (s *FastScanner) pre() {
| ^
a.cc:74:6: error: expected constructor, destructor, or type conversion before '(' token
74 | func (s *FastScanner) readLine() {
| ^
a.cc:88:1: error: 'func' does not name a type
88 | func IntMax(a, b int) int {
| ^~~~
a.cc:95:1: error: 'func' does not name a type
95 | func Int64Max(a, b int64) int64 {
| ^~~~
a.cc:101:1: error: 'func' does not name a type
101 | func Float64Max(a, b float64) float64 {
| ^~~~
a.cc:108:1: error: 'func' does not name a type
108 | func IntMin(a, b int) int {
| ^~~~
a.cc:115:1: error: 'func' does not name a type
115 | func Int64Min(a, b int64) int64 {
| ^~~~
a.cc:121:1: error: 'func' does not name a type
121 | func Float64Min(a, b float64) float64 {
| ^~~~
|
s366624388 | p03698 | C++ | package main
import (
"bufio"
"fmt"
"os"
"strconv"
)
func main() {
fsc := NewFastScanner()
S := fsc.Next()
check := map[rune]int{}
for _, c := range S {
check[c]++
}
ok := true
for _, v := range S {
if v > 1 {
ok = false
}
}
if ok {
fmt.Println("yes")
} else {
fmt.Println("no")
}
}
//template
type FastScanner struct {
r *bufio.Reader
buf []byte
p int
}
func NewFastScanner() *FastScanner {
rdr := bufio.NewReaderSize(os.Stdin, 1024)
return &FastScanner{r: rdr}
}
func (s *FastScanner) Next() string {
s.pre()
start := s.p
for ; s.p < len(s.buf); s.p++ {
if s.buf[s.p] == ' ' {
break
}
}
result := string(s.buf[start:s.p])
s.p++
return result
}
func (s *FastScanner) NextLine() string {
s.pre()
start := s.p
s.p = len(s.buf)
return string(s.buf[start:])
}
func (s *FastScanner) NextInt() int {
v, _ := strconv.Atoi(s.Next())
return v
}
func (s *FastScanner) NextInt64() int64 {
v, _ := strconv.ParseInt(s.Next(), 10, 64)
return v
}
func (s *FastScanner) pre() {
if s.p >= len(s.buf) {
s.readLine()
s.p = 0
}
}
func (s *FastScanner) readLine() {
s.buf = make([]byte, 0)
for {
l, p, e := s.r.ReadLine()
if e != nil {
panic(e)
}
s.buf = append(s.buf, l...)
if !p {
break
}
}
}
func IntMax(a, b int) int {
if a < b {
return b
}
return a
}
func Int64Max(a, b int64) int64 {
if a < b {
return b
}
return a
}
func Float64Max(a, b float64) float64 {
if a < b {
return b
}
return a
}
func IntMin(a, b int) int {
if a > b {
return b
}
return a
}
func Int64Min(a, b int64) int64 {
if a > b {
return b
}
return a
}
func Float64Min(a, b float64) float64 {
if a > b {
return b
}
return a
}
| a.cc:1:1: error: 'package' does not name a type
1 | package main
| ^~~~~~~
a.cc:31:1: error: 'type' does not name a type; did you mean 'typeof'?
31 | type FastScanner struct {
| ^~~~
| typeof
a.cc:37:1: error: 'func' does not name a type
37 | func NewFastScanner() *FastScanner {
| ^~~~
a.cc:41:6: error: expected constructor, destructor, or type conversion before '(' token
41 | func (s *FastScanner) Next() string {
| ^
a.cc:53:6: error: expected constructor, destructor, or type conversion before '(' token
53 | func (s *FastScanner) NextLine() string {
| ^
a.cc:59:6: error: expected constructor, destructor, or type conversion before '(' token
59 | func (s *FastScanner) NextInt() int {
| ^
a.cc:63:6: error: expected constructor, destructor, or type conversion before '(' token
63 | func (s *FastScanner) NextInt64() int64 {
| ^
a.cc:68:6: error: expected constructor, destructor, or type conversion before '(' token
68 | func (s *FastScanner) pre() {
| ^
a.cc:74:6: error: expected constructor, destructor, or type conversion before '(' token
74 | func (s *FastScanner) readLine() {
| ^
a.cc:88:1: error: 'func' does not name a type
88 | func IntMax(a, b int) int {
| ^~~~
a.cc:95:1: error: 'func' does not name a type
95 | func Int64Max(a, b int64) int64 {
| ^~~~
a.cc:101:1: error: 'func' does not name a type
101 | func Float64Max(a, b float64) float64 {
| ^~~~
a.cc:108:1: error: 'func' does not name a type
108 | func IntMin(a, b int) int {
| ^~~~
a.cc:115:1: error: 'func' does not name a type
115 | func Int64Min(a, b int64) int64 {
| ^~~~
a.cc:121:1: error: 'func' does not name a type
121 | func Float64Min(a, b float64) float64 {
| ^~~~
|
s655838311 | p03698 | C++ | #include <iostream>
#include <string>
using namespace std;
int main()
{
string a,number;
int i=0,k=0;
cin >> a;
while (a[i] = !'\0')
{
number[i] = a[i];
for (int j = 0;j < i;j++)
{
if (a[j] == number[j])
{
cout << "no" << endl;
++k;
break;
}
}
if (k = !0)break;
}
if (k = !0)cout << "yes" << endl;
| a.cc: In function 'int main()':
a.cc:26:42: error: expected '}' at end of input
26 | if (k = !0)cout << "yes" << endl;
| ^
a.cc:7:1: note: to match this '{'
7 | {
| ^
|
s837362215 | p03698 | C++ | #include<iostream> // 入出力
#include<math.h> // 数学の関数
#include<vector> // 配列
#include<string> // 文字列
#include<map> // 連想配列
#include<stack> // スタック
#include<queue> // キュー
using namespace std;
int main()
{
string str;
map<char, bool> check;
cin >> str;
for (int i = 0; i < str.length(); ++i)
{
auto itr = check.find(str.at(i)); // "xyz" が設定されているか?
if (itr != check.end()) {
cout << "no" << endl;
return 0;
}
else {
check[str.at(i)] == true;
}
}
cout << "yes" << endl;
return 0;
| a.cc: In function 'int main()':
a.cc:34:18: error: expected '}' at end of input
34 | return 0;
| ^
a.cc:13:1: note: to match this '{'
13 | {
| ^
|
s883766921 | p03698 | C | #include <stdio.h>
#include <string.h>
int main(){
char S[26],i,j,len,ct;
scanf("%s",S);
len=strlen(S);
for(i=0;i<len-1;i++){
for(j=i+1;j<len){
if(S[i]==S[j])ct++;
}
}
if(ct==0)printf("yes\n");
else printf("no\n");
return 0;
} | main.c: In function 'main':
main.c:12:24: error: expected ';' before ')' token
12 | for(j=i+1;j<len){
| ^
| ;
|
s370367716 | p03698 | C | #include <stdio.h>
int main(){
char S[30];
gets(S);
int len=strlen(S);
for(int i=0;i<len;i++){
for(int j=i+1;j<len;j++)
if(S[i]==S[j]) {a++;break;}
if(a==1) break;
}
if(a==0) printf("yes");
else printf("no");
return 0;
} | main.c: In function 'main':
main.c:4:5: error: implicit declaration of function 'gets'; did you mean 'fgets'? [-Wimplicit-function-declaration]
4 | gets(S);
| ^~~~
| fgets
main.c:5:13: error: implicit declaration of function 'strlen' [-Wimplicit-function-declaration]
5 | int len=strlen(S);
| ^~~~~~
main.c:2:1: note: include '<string.h>' or provide a declaration of 'strlen'
1 | #include <stdio.h>
+++ |+#include <string.h>
2 | int main(){
main.c:5:13: warning: incompatible implicit declaration of built-in function 'strlen' [-Wbuiltin-declaration-mismatch]
5 | int len=strlen(S);
| ^~~~~~
main.c:5:13: note: include '<string.h>' or provide a declaration of 'strlen'
main.c:8:30: error: 'a' undeclared (first use in this function)
8 | if(S[i]==S[j]) {a++;break;}
| ^
main.c:8:30: note: each undeclared identifier is reported only once for each function it appears in
|
s423613066 | p03698 | Java | import java.util.Scanner;
class Main {
public static void main(String[] args) {
Scanner stdIn = new Scanner(System.in);
String s = stdIn.next();
char[] charArray = s.toCharArray();
for (int i = 0; i < charArray.length; i++) {
for (int j = charArray.length-1; i < j; j--) {
if (charArray[i] == charArray[j]) {
no();
}
}
}
yes();
}
static void yes() {
System.out.println("yes");
}
static void no() {
System.out.println("no");
} | Main.java:27: error: reached end of file while parsing
}
^
1 error
|
s886254405 | p03698 | C++ | #include <iostream>
#include <cstring>
using namespace std;
int main(){
int s[100], sum;
cin>>s;
for(int i=1;i<strlen(s);i++){
if(s[0]!=s[i])sum++;
}
if(strlen(s)-1==sum)cout<<yes;
else cout<<no;
return 0;
} | a.cc: In function 'int main()':
a.cc:6:4: error: no match for 'operator>>' (operand types are 'std::istream' {aka 'std::basic_istream<char>'} and 'int [100]')
6 | cin>>s;
| ~~~^~~
| | |
| | int [100]
| std::istream {aka std::basic_istream<char>}
In file included from /usr/include/c++/14/iostream:42,
from a.cc:1:
/usr/include/c++/14/istream:170:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(bool&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]' (near match)
170 | operator>>(bool& __n)
| ^~~~~~~~
/usr/include/c++/14/istream:170:7: note: conversion of argument 1 would be ill-formed:
a.cc:6:6: error: cannot bind non-const lvalue reference of type 'bool&' to a value of type 'int*'
6 | cin>>s;
| ^
/usr/include/c++/14/istream:174:7: note: candidate: 'std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT, _Traits>::operator>>(short int&) [with _CharT = char; _Traits = std::char_traits<char>]' (near match)
174 | operator>>(short& __n);
| ^~~~~~~~
/usr/include/c++/14/istream:174:7: note: conversion of argument 1 would be ill-formed:
a.cc:6:6: error: invalid conversion from 'int*' to 'short int' [-fpermissive]
6 | cin>>s;
| ^
| |
| int*
a.cc:6:6: error: cannot bind rvalue '(short int)((int*)(& s))' to 'short int&'
/usr/include/c++/14/istream:177:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(short unsigned int&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]' (near match)
177 | operator>>(unsigned short& __n)
| ^~~~~~~~
/usr/include/c++/14/istream:177:7: note: conversion of argument 1 would be ill-formed:
a.cc:6:6: error: invalid conversion from 'int*' to 'short unsigned int' [-fpermissive]
6 | cin>>s;
| ^
| |
| int*
a.cc:6:6: error: cannot bind rvalue '(short unsigned int)((int*)(& s))' to 'short unsigned int&'
/usr/include/c++/14/istream:181:7: note: candidate: 'std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT, _Traits>::operator>>(int&) [with _CharT = char; _Traits = std::char_traits<char>]' (near match)
181 | operator>>(int& __n);
| ^~~~~~~~
/usr/include/c++/14/istream:181:7: note: conversion of argument 1 would be ill-formed:
a.cc:6:6: error: invalid conversion from 'int*' to 'int' [-fpermissive]
6 | cin>>s;
| ^
| |
| int*
a.cc:6:6: error: cannot bind rvalue '(int)((int*)(& s))' to 'int&'
/usr/include/c++/14/istream:184:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(unsigned int&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]' (near match)
184 | operator>>(unsigned int& __n)
| ^~~~~~~~
/usr/include/c++/14/istream:184:7: note: conversion of argument 1 would be ill-formed:
a.cc:6:6: error: invalid conversion from 'int*' to 'unsigned int' [-fpermissive]
6 | cin>>s;
| ^
| |
| int*
a.cc:6:6: error: cannot bind rvalue '(unsigned int)((int*)(& s))' to 'unsigned int&'
/usr/include/c++/14/istream:188:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(long int&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]' (near match)
188 | operator>>(long& __n)
| ^~~~~~~~
/usr/include/c++/14/istream:188:7: note: conversion of argument 1 would be ill-formed:
a.cc:6:6: error: invalid conversion from 'int*' to 'long int' [-fpermissive]
6 | cin>>s;
| ^
| |
| int*
a.cc:6:6: error: cannot bind rvalue '(long int)((int*)(& s))' to 'long int&'
/usr/include/c++/14/istream:192:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(long unsigned int&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]' (near match)
192 | operator>>(unsigned long& __n)
| ^~~~~~~~
/usr/include/c++/14/istream:192:7: note: conversion of argument 1 would be ill-formed:
a.cc:6:6: error: invalid conversion from 'int*' to 'long unsigned int' [-fpermissive]
6 | cin>>s;
| ^
| |
| int*
a.cc:6:6: error: cannot bind rvalue '(long unsigned int)((int*)(& s))' to 'long unsigned int&'
/usr/include/c++/14/istream:199:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(long long int&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]' (near match)
199 | operator>>(long long& __n)
| ^~~~~~~~
/usr/include/c++/14/istream:199:7: note: conversion of argument 1 would be ill-formed:
a.cc:6:6: error: invalid conversion from 'int*' to 'long long int' [-fpermissive]
6 | cin>>s;
| ^
| |
| int*
a.cc:6:6: error: cannot bind rvalue '(long long int)((int*)(& s))' to 'long long int&'
/usr/include/c++/14/istream:203:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(long long unsigned int&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]' (near match)
203 | operator>>(unsigned long long& __n)
| ^~~~~~~~
/usr/include/c++/14/istream:203:7: note: conversion of argument 1 would be ill-formed:
a.cc:6:6: error: invalid conversion from 'int*' to 'long long unsigned int' [-fpermissive]
6 | cin>>s;
| ^
| |
| int*
a.cc:6:6: error: cannot bind rvalue '(long long unsigned int)((int*)(& s))' to 'long long unsigned int&'
/usr/include/c++/14/istream:328:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(void*&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]' (near match)
328 | operator>>(void*& __p)
| ^~~~~~~~
/usr/include/c++/14/istream:328:7: note: conversion of argument 1 would be ill-formed:
a.cc:6:6: error: cannot bind non-const lvalue reference of type 'void*&' to an rvalue of type 'void*'
6 | cin>>s;
| ^
/usr/include/c++/14/istream:219:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(float&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]'
219 | operator>>(float& __f)
| ^~~~~~~~
/usr/include/c++/14/istream:219:25: note: no known conversion for argument 1 from 'int [100]' to 'float&'
219 | operator>>(float& __f)
| ~~~~~~~^~~
/usr/include/c++/14/istream:223:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(double&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]'
223 | operator>>(double& __f)
| ^~~~~~~~
/usr/include/c++/14/istream:223:26: note: no known conversion for argument 1 from 'int [100]' to 'double&'
223 | operator>>(double& __f)
| ~~~~~~~~^~~
/usr/include/c++/14/istream:227:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(long double&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]'
227 | operator>>(long double& __f)
| ^~~~~~~~
/usr/include/c++/14/istream:227:31: note: no known conversion for argument 1 from 'int [100]' to 'long double&'
227 | operator>>(long double& __f)
| ~~~~~~~~~~~~~^~~
/usr/include/c++/14/istream:122:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(__istream_type& (*)(__istream_type&)) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]'
122 | operator>>(__istream_type& (*__pf)(__istream_type&))
| ^~~~~~~~
/usr/include/c++/14/istream:122:36: note: no known conversion for argument 1 from 'int [100]' to 'std::basic_istream<char>::__istream_type& (*)(std::basic_istream<char>::__istream_type&)' {aka 'std::basic_istream<char>& (*)(std::basic_istream<char>&)'}
122 | operator>>(__istream_type& (*__pf)(__istream_type&))
| ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/istream:126:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(__ios_type& (*)(__ios_type&)) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>; __ios_type = std::basic_ios<char>]'
126 | operator>>(__ios_type& (*__pf)(__ios_type&))
| ^~~~~~~~
/usr/include/c++/14/istream:126:32: note: no known conversion for argument 1 from 'int [100]' to 'std::basic_istream<char>::__ios_type& (*)(std::basic_istream<char>::__ios_type&)' {aka 'std::basic_ios<char>& (*)(std::basic_ios<char>&)'}
126 | operator>>(__ios_type& (*__pf)(__ios_type&))
| ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~
/usr/include/c++/14/istream:133:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(std::ios_base& (*)(std::ios_base&)) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]'
133 | operator>>(ios_base& (*__pf)(ios_base&))
| ^~~~~~~~
/usr/include/c++/14/istream:133:30: note: no known conversion for argument 1 from 'int [100]' to 'std::ios_ba |
s083171389 | p03698 | C++ | #include <bits/stdc++.h>
using namespace std;
#define fs first
#define se second
#define all(v) v.begin(), v.end()
#define rep(i, n) for (int i = 0; i < n; ++i)
#define pb emplace_back
using pii = pair<int, int>;
using vi = vector<int>;
using lint = long long;
const int inf = 1001001001;
const lint linf = 1001001001001001001ll;
const int mod = 1e9 + 7;
const int dx[]{0, 1, 0, -1, -1, -1, 1, 1}, dy[]{1, 0, -1, 0, -1, 1, -1, 1};
template<typename T> inline bool chmin(T &a, T b) { if (a > b) { a = b; } return a > b; }
template<typename T> inline bool chmax(T &a, T b) { if (a < b) { a = b; } return a < b; }
template<typename T> inline void print(const T &x, string s = "\n") { cout << x << s; }
template<typename T> inline void print(const vector<T> &v, string s = " ")
{ rep(i, v.size()) cout << v[i] << (i + 1 == v.size() ? "\n" : s); }
inline bool inside(int y, int x, int H, int W) { return 0 <= y && y < H && 0 <= x && x < W; }
inline lint in() { lint x; std::cin>>x; return x; }
int main() {
string s;
cin >> s;
int n = s.size();
sort(all(s));
s.erase(uniquer(all(a)), s.end());
cout << (n == s.size() ? "yes" : "no") << endl;
}
| a.cc: In function 'int main()':
a.cc:33:29: error: 'a' was not declared in this scope
33 | s.erase(uniquer(all(a)), s.end());
| ^
a.cc:6:16: note: in definition of macro 'all'
6 | #define all(v) v.begin(), v.end()
| ^
a.cc:33:17: error: 'uniquer' was not declared in this scope
33 | s.erase(uniquer(all(a)), s.end());
| ^~~~~~~
|
s536852053 | p03698 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(void){
bool ch[30],flag=true;
int i;
string str;
char c;
cin >> str;
fill(ch,ch+30,false);
for(i=str.size()-1; i>=0; i--){
c = str[i]-'a';
if(ch[c]){
flag=false;
break;
}else{
ch[c]=true;
}
}
cout << ((flag)?"yes":"no") << endl;
return | a.cc: In function 'int main()':
a.cc:21:15: error: expected primary-expression at end of input
21 | return
| ^
a.cc:21:15: error: expected ';' at end of input
21 | return
| ^
| ;
a.cc:21:15: error: expected '}' at end of input
a.cc:4:15: note: to match this '{'
4 | int main(void){
| ^
|
s224087440 | p03698 | C | #include<stdio.h>
int main(){
char s[26];
int i,j,k;
k=0;
scanf("%s",&s[26]);
for(i=0;i<l+1;i++){
for(j=1;j<l+1;j=i+1){
if(s[i]=='s[j]'){
printf("no\n");
k++;
break;
}
}
}
if(k==0){
printf("yes\n");
}
return 0;
} | main.c: In function 'main':
main.c:7:11: error: 'l' undeclared (first use in this function)
7 | for(i=0;i<l+1;i++){
| ^
main.c:7:11: note: each undeclared identifier is reported only once for each function it appears in
main.c:9:10: warning: multi-character character constant [-Wmultichar]
9 | if(s[i]=='s[j]'){
| ^~~~~~
|
s520643235 | p03698 | C | #include<stdio.h>
int main(){
char s[26];
int i,j,k,l;
k=0;
scanf("%s",&s[26]);
for(l=0;l<26;l++){
if('s[l]'=='')break;
}
for(i=0;i<l+1;i++){
for(j=1;j<l+1;j=i+1){
if('s[i]'=='s[j]'){
printf("no\n");
k++;
break;
}
}
}
if(k==0){
printf("yes\n");
}
return 0;
} | main.c: In function 'main':
main.c:8:4: warning: multi-character character constant [-Wmultichar]
8 | if('s[l]'=='')break;
| ^~~~~~
main.c:8:12: error: empty character constant
8 | if('s[l]'=='')break;
| ^~
main.c:12:4: warning: multi-character character constant [-Wmultichar]
12 | if('s[i]'=='s[j]'){
| ^~~~~~
main.c:12:12: warning: multi-character character constant [-Wmultichar]
12 | if('s[i]'=='s[j]'){
| ^~~~~~
|
s693839396 | p03698 | C | #include<stdio.h>
#include<string.h>
int main()
{
char S[26];
scanf("%s", S);
for(i=0; S[i] != '\0'; i++)
{
for(j=i+1; S[j] != '\0'; j++)
{
if(S[i] == S[j])
{
printf("no\n");
break;
}
}
printf("yes\n");
}
return 0;
} | main.c: In function 'main':
main.c:10:7: error: 'i' undeclared (first use in this function)
10 | for(i=0; S[i] != '\0'; i++)
| ^
main.c:10:7: note: each undeclared identifier is reported only once for each function it appears in
main.c:12:9: error: 'j' undeclared (first use in this function)
12 | for(j=i+1; S[j] != '\0'; j++)
| ^
|
s153215956 | p03698 | C | #include<stdio.h>
#include<string.h>
int main()
{
char S[26];
scanf("%s", &S);
for(i=0; S[i] != '\0'; i++)
{
for(j=i+1; S[j] != '\0'; j++)
{
if(S[i] == S[j])
{
printf("no\n");
break;
}
}
printf("yes\n");
}
return 0;
} | main.c: In function 'main':
main.c:10:7: error: 'i' undeclared (first use in this function)
10 | for(i=0; S[i] != '\0'; i++)
| ^
main.c:10:7: note: each undeclared identifier is reported only once for each function it appears in
main.c:12:9: error: 'j' undeclared (first use in this function)
12 | for(j=i+1; S[j] != '\0'; j++)
| ^
|
s104227013 | p03698 | C | #include<stdio.h>
#include<string.h>
int main()
{
char S[26];
scanf("%s", &S);
for(i=0; i != '\0'; i++)
{
for(j=i+1; j != '\0'; j++)
{
if(S[i] == S[j])
{
printf("no\n");
break;
}
}
printf("yes\n");
}
return 0;
} | main.c: In function 'main':
main.c:10:7: error: 'i' undeclared (first use in this function)
10 | for(i=0; i != '\0'; i++)
| ^
main.c:10:7: note: each undeclared identifier is reported only once for each function it appears in
main.c:12:9: error: 'j' undeclared (first use in this function)
12 | for(j=i+1; j != '\0'; j++)
| ^
|
s303707013 | p03698 | C++ | #include <iostream>
#include <string>
int main() {
auto s = bool['z' - 'a' + 1];
std::string str;
std::cin >> str;
for (auto c: str) {
int i = c - 'a';
if (s[i]) {
std::cout << "no" << std::endl;
return 0;
}
s[i] = true;
}
std::cout << "yes" << std::endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:5:14: error: expected primary-expression before 'bool'
5 | auto s = bool['z' - 'a' + 1];
| ^~~~
|
s482683537 | p03698 | C++ |
#include<iostream>
#include<string>
using namespace std;
int main(){
int a[26];
string t;
cin >> t;
int count= 0;
for (int i=0;i<t.size()<i++){
a[t[i]]=1;
}
for (int i=0;i<t.size()<i++){
if(a[i]==0) count++;
}
if(count==t.size()){cout << "yes" <<endl;}
else{cout << "yes" <<endl;}
return 0;
} | a.cc: In function 'int main()':
a.cc:15:28: error: expected ';' before ')' token
15 | for (int i=0;i<t.size()<i++){
| ^
| ;
a.cc:18:28: error: expected ';' before ')' token
18 | for (int i=0;i<t.size()<i++){
| ^
| ;
|
s618044566 | p03698 | C++ |
#include<iostream>
#include<string>
using namespace std;
int main(){
int a[26];
string t;
cin >> t;
int count= 0;
for (int i=0;i<t.size()<i++){
a[t[i]]=1;
}
for (int i=0;i<t.size()<i++){
if(a[i]==0) count++
}
if(count==t.size()){cout << "yes" <<endl;}
else{cout << "yes" <<endl;}
return 0;
} | a.cc: In function 'int main()':
a.cc:12:28: error: expected ';' before ')' token
12 | for (int i=0;i<t.size()<i++){
| ^
| ;
a.cc:15:28: error: expected ';' before ')' token
15 | for (int i=0;i<t.size()<i++){
| ^
| ;
a.cc:16:20: error: expected ';' before '}' token
16 | if(a[i]==0) count++
| ^
| ;
17 | }
| ~
|
s729398658 | p03698 | C++ | #include<iostream>
#include<string>
using namespace std;
int main(){
int a[26];
string t;
cin >> t;
count= 0;
for (int i=0;i<t.size()<i++){
a[t[i]]=1;
}
for (int i=0;i<t.size()<i++){
if(a[i]==0) count++;
}
if(count==t.size()){cout << "yes" <<endl;}
else{cout << "yes" <<endl;}
return 0;
} | a.cc: In function 'int main()':
a.cc:10:9: error: 'count' was not declared in this scope
10 | count= 0;
| ^~~~~
a.cc:11:28: error: expected ';' before ')' token
11 | for (int i=0;i<t.size()<i++){
| ^
| ;
a.cc:14:28: error: expected ';' before ')' token
14 | for (int i=0;i<t.size()<i++){
| ^
| ;
|
s154769559 | p03698 | C++ | #include <iostream>
using namespace std;
int main() {
string input;
int flag = 1;
cin >> input;
for(int i=0; i < input.size() - 1; i++){
for(int j = i + 1; j < input.size(); j++){
if(input[i] == input[j]){
flag = 0;
}
}
}
if(flag){
cout << "yes" << endl;
}
else{
cout << "no" << endl:
}
return 0;
} | a.cc: In function 'int main()':
a.cc:22:29: error: expected ';' before ':' token
22 | cout << "no" << endl:
| ^
| ;
|
s959107847 | p03698 | C++ | #include <bits/stdc++.h>$
2 using namespace std;$
3 $
4 string s;$
5 $
6 int main(){$
7 cin>>s;$
8 set<char> ss;$
9 for(int i=0;i<s.length();i++){$
10 ss.insert(s[i]);$
11 }$
12 if(s.length()==ss.size())cout<<"yes"<<endl;$
13 else cout<<"no"<<endl;$
14 return 0;$
15 }$
| a.cc:1:11: fatal error: bits/stdc++.h>: No such file or directory
1 | #include <bits/stdc++.h>$
| ^~~~~~~~~~~~~~~~
compilation terminated.
|
s374374830 | p03698 | C++ | #include <iostream>
#include <string>
using namespace std;
int main(void){
string s;
cin >> s;
bool arr['z'-'a'+1] = {};
for(int i = 0; i < s; i++){
if(!arr[s[i]-'a']) arr[s[i]-'a'] = true;
else{
cout << "no" << endl;
return 0;
}
}
cout << "yes" << endl;
}
| a.cc: In function 'int main()':
a.cc:8:22: error: no match for 'operator<' (operand types are 'int' and 'std::string' {aka 'std::__cxx11::basic_string<char>'})
8 | for(int i = 0; i < s; i++){
| ~ ^ ~
| | |
| int std::string {aka std::__cxx11::basic_string<char>}
In file included from /usr/include/c++/14/string:48,
from /usr/include/c++/14/bits/locale_classes.h:40,
from /usr/include/c++/14/bits/ios_base.h:41,
from /usr/include/c++/14/ios:44,
from /usr/include/c++/14/ostream:40,
from /usr/include/c++/14/iostream:41,
from a.cc:1:
/usr/include/c++/14/bits/stl_iterator.h:448:5: note: candidate: 'template<class _Iterator> constexpr bool std::operator<(const reverse_iterator<_Iterator>&, const reverse_iterator<_Iterator>&)'
448 | operator<(const reverse_iterator<_Iterator>& __x,
| ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:448:5: note: template argument deduction/substitution failed:
a.cc:8:24: note: mismatched types 'const std::reverse_iterator<_Iterator>' and 'int'
8 | for(int i = 0; i < s; i++){
| ^
/usr/include/c++/14/bits/stl_iterator.h:493:5: note: candidate: 'template<class _IteratorL, class _IteratorR> constexpr bool std::operator<(const reverse_iterator<_Iterator>&, const reverse_iterator<_IteratorR>&)'
493 | operator<(const reverse_iterator<_IteratorL>& __x,
| ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:493:5: note: template argument deduction/substitution failed:
a.cc:8:24: note: mismatched types 'const std::reverse_iterator<_Iterator>' and 'int'
8 | for(int i = 0; i < s; i++){
| ^
/usr/include/c++/14/bits/stl_iterator.h:1694:5: note: candidate: 'template<class _IteratorL, class _IteratorR> constexpr bool std::operator<(const move_iterator<_IteratorL>&, const move_iterator<_IteratorR>&)'
1694 | operator<(const move_iterator<_IteratorL>& __x,
| ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:1694:5: note: template argument deduction/substitution failed:
a.cc:8:24: note: mismatched types 'const std::move_iterator<_IteratorL>' and 'int'
8 | for(int i = 0; i < s; i++){
| ^
/usr/include/c++/14/bits/stl_iterator.h:1760:5: note: candidate: 'template<class _Iterator> constexpr bool std::operator<(const move_iterator<_IteratorL>&, const move_iterator<_IteratorL>&)'
1760 | operator<(const move_iterator<_Iterator>& __x,
| ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:1760:5: note: template argument deduction/substitution failed:
a.cc:8:24: note: mismatched types 'const std::move_iterator<_IteratorL>' and 'int'
8 | for(int i = 0; i < s; i++){
| ^
In file included from /usr/include/c++/14/bits/stl_algobase.h:64,
from /usr/include/c++/14/string:51:
/usr/include/c++/14/bits/stl_pair.h:1045:5: note: candidate: 'template<class _T1, class _T2> constexpr bool std::operator<(const pair<_T1, _T2>&, const pair<_T1, _T2>&)'
1045 | operator<(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y)
| ^~~~~~~~
/usr/include/c++/14/bits/stl_pair.h:1045:5: note: template argument deduction/substitution failed:
a.cc:8:24: note: mismatched types 'const std::pair<_T1, _T2>' and 'int'
8 | for(int i = 0; i < s; i++){
| ^
In file included from /usr/include/c++/14/bits/basic_string.h:47,
from /usr/include/c++/14/string:54:
/usr/include/c++/14/string_view:673:5: note: candidate: 'template<class _CharT, class _Traits> constexpr bool std::operator<(basic_string_view<_CharT, _Traits>, basic_string_view<_CharT, _Traits>)'
673 | operator< (basic_string_view<_CharT, _Traits> __x,
| ^~~~~~~~
/usr/include/c++/14/string_view:673:5: note: template argument deduction/substitution failed:
a.cc:8:24: note: mismatched types 'std::basic_string_view<_CharT, _Traits>' and 'int'
8 | for(int i = 0; i < s; i++){
| ^
/usr/include/c++/14/string_view:680:5: note: candidate: 'template<class _CharT, class _Traits> constexpr bool std::operator<(basic_string_view<_CharT, _Traits>, __type_identity_t<basic_string_view<_CharT, _Traits> >)'
680 | operator< (basic_string_view<_CharT, _Traits> __x,
| ^~~~~~~~
/usr/include/c++/14/string_view:680:5: note: template argument deduction/substitution failed:
a.cc:8:24: note: mismatched types 'std::basic_string_view<_CharT, _Traits>' and 'int'
8 | for(int i = 0; i < s; i++){
| ^
/usr/include/c++/14/string_view:688:5: note: candidate: 'template<class _CharT, class _Traits> constexpr bool std::operator<(__type_identity_t<basic_string_view<_CharT, _Traits> >, basic_string_view<_CharT, _Traits>)'
688 | operator< (__type_identity_t<basic_string_view<_CharT, _Traits>> __x,
| ^~~~~~~~
/usr/include/c++/14/string_view:688:5: note: template argument deduction/substitution failed:
a.cc:8:24: note: 'std::__cxx11::basic_string<char>' is not derived from 'std::basic_string_view<_CharT, _Traits>'
8 | for(int i = 0; i < s; i++){
| ^
/usr/include/c++/14/bits/basic_string.h:3874:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> bool std::operator<(const __cxx11::basic_string<_CharT, _Traits, _Allocator>&, const __cxx11::basic_string<_CharT, _Traits, _Allocator>&)'
3874 | operator<(const basic_string<_CharT, _Traits, _Alloc>& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/basic_string.h:3874:5: note: template argument deduction/substitution failed:
a.cc:8:24: note: mismatched types 'const std::__cxx11::basic_string<_CharT, _Traits, _Allocator>' and 'int'
8 | for(int i = 0; i < s; i++){
| ^
/usr/include/c++/14/bits/basic_string.h:3888:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> bool std::operator<(const __cxx11::basic_string<_CharT, _Traits, _Allocator>&, const _CharT*)'
3888 | operator<(const basic_string<_CharT, _Traits, _Alloc>& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/basic_string.h:3888:5: note: template argument deduction/substitution failed:
a.cc:8:24: note: mismatched types 'const std::__cxx11::basic_string<_CharT, _Traits, _Allocator>' and 'int'
8 | for(int i = 0; i < s; i++){
| ^
/usr/include/c++/14/bits/basic_string.h:3901:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> bool std::operator<(const _CharT*, const __cxx11::basic_string<_CharT, _Traits, _Allocator>&)'
3901 | operator<(const _CharT* __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/basic_string.h:3901:5: note: template argument deduction/substitution failed:
a.cc:8:24: note: mismatched types 'const _CharT*' and 'int'
8 | for(int i = 0; i < s; i++){
| ^
In file included from /usr/include/c++/14/bits/memory_resource.h:47,
from /usr/include/c++/14/string:68:
/usr/include/c++/14/tuple:2600:5: note: candidate: 'template<class ... _TElements, class ... _UElements> constexpr bool std::operator<(const tuple<_UTypes ...>&, const tuple<_Elements ...>&)'
2600 | operator<(const tuple<_TElements...>& __t,
| ^~~~~~~~
/usr/include/c++/14/tuple:2600:5: note: template argument deduction/substitution failed:
a.cc:8:24: note: mismatched types 'const std::tuple<_UTypes ...>' and 'int'
8 | for(int i = 0; i < s; i++){
| ^
In file included from /usr/include/c++/14/bits/ios_base.h:46:
/usr/include/c++/14/system_error:324:3: note: candidate: 'bool std::operator<(const error_code&, const error_code&)'
324 | operator<(const error_code& __lhs, const error_code& __rhs) noexcept
| ^~~~~~~~
/usr/include/c++/14/system_error:324:31: note: no known conversion for argument 1 from 'int' to 'const std::error_code&'
324 | operator<(const error_code& __lhs, const error_code& __rhs) noexcept
| ~~~~~~~~~~~~~~~~~~^~~~~
/usr/include/c++/14/system_error:507:3: note: candidate: 'bool std::operator<(const error_condition&, const error_condition&)'
507 | operator<(const error_condition& __lhs,
| ^~~~~~~~
/usr/include/c++/14/system_error:507:36: note: no known conversion for argument 1 from 'int' to 'const std::error_condition&'
507 | operator<(const error_condition& __lhs,
| ~~~~~~~~~~~~~~~~~~~~~~~^~~~~
|
s804078344 | p03698 | C++ | #include<stdio.h>
#include <string.h>
int main(){
char S[26];
scanf("%s",S);
len=strlen(S);
int i,j;
for(i=0;i<len;i++){
for(j=i+1;j<len;j++){
if(S[i]==S[j]){
printf("no");
j=len+1;i=len+1;
}
}
}
if(i==len){
printf("yes");
}
return 0;
} | a.cc: In function 'int main()':
a.cc:6:3: error: 'len' was not declared in this scope
6 | len=strlen(S);
| ^~~
|
s335680573 | p03698 | C++ | #include<stdio.h>
#include <string.h>
int main(){
char S[26];
scanf("%s",S);
len=strlen(S);
for(int i=0;i<len;i++){
for(int j=i+1;j<len;j++){
if(S[i]==S[j]){
printf("no");
j=len+1;i=len+1;
}
}
}
if(i==len){
printf("yes");
}
return 0;
}
| a.cc: In function 'int main()':
a.cc:6:3: error: 'len' was not declared in this scope
6 | len=strlen(S);
| ^~~
a.cc:15:6: error: 'i' was not declared in this scope
15 | if(i==len){
| ^
|
s333928689 | p03698 | C++ | #include<stdio.h>
#include <string.h>
int main(){
char S[26];
scanf("%s",S);
len=strlen(S);
for(int i=0;i<len;j++){
for(int j=i+1;j<len;j++){
if(S[i]==s[j]){
printf("no");
j=len+1;i=len+1;
}
}
}
if(i==len){
printf("yes");
}
return 0;
}
| a.cc: In function 'int main()':
a.cc:6:3: error: 'len' was not declared in this scope
6 | len=strlen(S);
| ^~~
a.cc:7:21: error: 'j' was not declared in this scope
7 | for(int i=0;i<len;j++){
| ^
a.cc:9:16: error: 's' was not declared in this scope
9 | if(S[i]==s[j]){
| ^
a.cc:15:6: error: 'i' was not declared in this scope
15 | if(i==len){
| ^
|
s006271672 | p03698 | C++ | #include <iostream>
#include <string>
#include <algorithm>
#include <vector>
int main(){
int i;
string s;
cin >> s;
sort(s.begin(),s.end());
for(i = 1;i < s.size();i++){
if(s[i] == s[i-1]){
cout << "no" << endl;
return 0;
}
}
cout << "yes" << endl;
return 0;
}
| a.cc: In function 'int main()':
a.cc:7:9: error: 'string' was not declared in this scope
7 | string s;
| ^~~~~~
a.cc:7:9: note: suggested alternatives:
In file included from /usr/include/c++/14/iosfwd:41,
from /usr/include/c++/14/ios:40,
from /usr/include/c++/14/ostream:40,
from /usr/include/c++/14/iostream:41,
from a.cc:1:
/usr/include/c++/14/bits/stringfwd.h:77:33: note: 'std::string'
77 | typedef basic_string<char> string;
| ^~~~~~
In file included from /usr/include/c++/14/bits/locale_classes.h:40,
from /usr/include/c++/14/bits/ios_base.h:41,
from /usr/include/c++/14/ios:44:
/usr/include/c++/14/string:76:11: note: 'std::pmr::string'
76 | using string = basic_string<char>;
| ^~~~~~
a.cc:8:9: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
8 | cin >> s;
| ^~~
| std::cin
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
62 | extern istream cin; ///< Linked to standard input
| ^~~
a.cc:8:16: error: 's' was not declared in this scope
8 | cin >> s;
| ^
a.cc:9:9: error: 'sort' was not declared in this scope; did you mean 'std::sort'?
9 | sort(s.begin(),s.end());
| ^~~~
| std::sort
In file included from /usr/include/c++/14/algorithm:86,
from a.cc:3:
/usr/include/c++/14/pstl/glue_algorithm_defs.h:296:1: note: 'std::sort' declared here
296 | sort(_ExecutionPolicy&& __exec, _RandomAccessIterator __first, _RandomAccessIterator __last);
| ^~~~
a.cc:12:25: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
12 | cout << "no" << endl;
| ^~~~
| std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
63 | extern ostream cout; ///< Linked to standard output
| ^~~~
a.cc:12:41: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
12 | cout << "no" << endl;
| ^~~~
| std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
744 | endl(basic_ostream<_CharT, _Traits>& __os)
| ^~~~
a.cc:16:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
16 | cout << "yes" << endl;
| ^~~~
| std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
63 | extern ostream cout; ///< Linked to standard output
| ^~~~
a.cc:16:26: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
16 | cout << "yes" << endl;
| ^~~~
| std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
744 | endl(basic_ostream<_CharT, _Traits>& __os)
| ^~~~
|
s348112339 | p03698 | C++ | #include<iostream>
#include<string>
using namespace std;
int main() {
char input_str[];
cin >> input_str;
for(int i = 0 ; i < input_str.length() ; i++) {
for(int j = 1 ; j < input_str.length() ; j++ ) {
if (input_str[i] === input_str[j]) {
cout << "yes" << endl;
return 0;
}
}
}
cout << "no" << endl;
return 0;
}
| a.cc: In function 'int main()':
a.cc:6:8: error: storage size of 'input_str' isn't known
6 | char input_str[];
| ^~~~~~~~~
a.cc:11:26: error: expected primary-expression before '=' token
11 | if (input_str[i] === input_str[j]) {
| ^
|
s299435348 | p03698 | C++ | #include<iostream>
#include<string>
using namespace std;
int main() {
char input_str[26];
cin >> input_str;
for(int i = 0 ; i < input_str.length() ; i++) {
for(int j = 1 ; j < input_str.length() ; j++ ) {
if (input_str[i] === input_str[j]) {
cout << "yes" << endl;
return 0;
}
}
}
cout << "no" << endl;
return 0;
}
| a.cc: In function 'int main()':
a.cc:9:33: error: request for member 'length' in 'input_str', which is of non-class type 'char [26]'
9 | for(int i = 0 ; i < input_str.length() ; i++) {
| ^~~~~~
a.cc:10:35: error: request for member 'length' in 'input_str', which is of non-class type 'char [26]'
10 | for(int j = 1 ; j < input_str.length() ; j++ ) {
| ^~~~~~
a.cc:11:26: error: expected primary-expression before '=' token
11 | if (input_str[i] === input_str[j]) {
| ^
|
s099525063 | p03698 | C++ | #include<iostream>
#include<string>
using namespace std;
int main() {
cin >> input_str[];
for(int i = 0 ; i < input_str.length() ; i++) {
for(int j = 1 ; j < input_str.length() ; j++ ) {
if (input_str[i] === input_str[j]) {
cout << "yes" << endl;
return 0;
}
}
}
cout << "no" << endl;
return 0;
}
| a.cc: In function 'int main()':
a.cc:6:10: error: 'input_str' was not declared in this scope
6 | cin >> input_str[];
| ^~~~~~~~~
a.cc:6:20: error: expected primary-expression before ']' token
6 | cin >> input_str[];
| ^
a.cc:10:26: error: expected primary-expression before '=' token
10 | if (input_str[i] === input_str[j]) {
| ^
|
s570647017 | p03698 | C++ | #include<iostream>
#include<string>
using namespace std;
int main() {
cin >> input_str;
for(int i = 0 ; i < input_str.length() ; i++) {
for(int j = 1 ; j < input_str.length() ; j++ ) {
if (input_str[i] === input_str[j]) {
cout << "yes" << endl;
return 0;
}
}
}
cout << "no" << endl;
return 0;
}
| a.cc: In function 'int main()':
a.cc:6:10: error: 'input_str' was not declared in this scope
6 | cin >> input_str;
| ^~~~~~~~~
a.cc:10:26: error: expected primary-expression before '=' token
10 | if (input_str[i] === input_str[j]) {
| ^
|
s112530153 | p03698 | C++ | #include<iostream>
#include<string>
int main() {
cin >> input_str;
for(int i = 0 : i < input_str.length() : i++) {
for(int j = 1 : j < input_str.length() : j++ ) {
if (input_str[i] === input_str[j]) {
std::cout << "yes" << endl;
return 0;
}
}
}
std::cout << "no" << endl;
return 0;
}
| a.cc: In function 'int main()':
a.cc:5:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
5 | cin >> input_str;
| ^~~
| std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
62 | extern istream cin; ///< Linked to standard input
| ^~~
a.cc:5:10: error: 'input_str' was not declared in this scope
5 | cin >> input_str;
| ^~~~~~~~~
a.cc:7:13: error: initializer in range-based 'for' loop
7 | for(int i = 0 : i < input_str.length() : i++) {
| ^
a.cc:7:41: error: expected ')' before ':' token
7 | for(int i = 0 : i < input_str.length() : i++) {
| ~ ^~
| )
a.cc:7:42: error: expected primary-expression before ':' token
7 | for(int i = 0 : i < input_str.length() : i++) {
| ^
a.cc:16:24: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
16 | std::cout << "no" << endl;
| ^~~~
| std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
744 | endl(basic_ostream<_CharT, _Traits>& __os)
| ^~~~
|
s231993931 | p03698 | C++ | #include<iostream>
#include<string>
int main() {
cin >> input_str[];
for(int i = 0 : i < input_str.length() : i++) {
for(int j = 1 : j < input_str.length() : j++ ) {
if (input_str[i] === input_str[j]) {
std::cout << "yes" << endl;
return 0;
}
}
}
std::cout << "no" << endl;
return 0;
}
| a.cc: In function 'int main()':
a.cc:5:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
5 | cin >> input_str[];
| ^~~
| std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
62 | extern istream cin; ///< Linked to standard input
| ^~~
a.cc:5:10: error: 'input_str' was not declared in this scope
5 | cin >> input_str[];
| ^~~~~~~~~
a.cc:5:20: error: expected primary-expression before ']' token
5 | cin >> input_str[];
| ^
a.cc:7:13: error: initializer in range-based 'for' loop
7 | for(int i = 0 : i < input_str.length() : i++) {
| ^
a.cc:7:41: error: expected ')' before ':' token
7 | for(int i = 0 : i < input_str.length() : i++) {
| ~ ^~
| )
a.cc:7:42: error: expected primary-expression before ':' token
7 | for(int i = 0 : i < input_str.length() : i++) {
| ^
a.cc:16:24: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
16 | std::cout << "no" << endl;
| ^~~~
| std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
744 | endl(basic_ostream<_CharT, _Traits>& __os)
| ^~~~
|
s153258631 | p03698 | C++ | #include<iostream>
#include<string>
using namespace std;
int main(){
string s;
cin >> s;
int a[1000];
for(int i=0; i< 1000; ++i){
a[i] = -1;
}
bool check = true;
for(int i=0;i <s.size(); ++i){
if(a[s[i]] > 0){
cout << "no" << endl;
check = false;
break;
}
a[s[i]] = 1;
}
if(check){åç
cout << "yes" << endl;
}
return 0;
}
| a.cc: In function 'int main()':
a.cc:26:13: error: '\U000000e5\U000000e7' was not declared in this scope
26 | if(check){åç
| ^~
|
s959672970 | p03698 | C++ | #include<iostream>
#include<string>
using namespace std;
int main(){
string s;
cin >> s >>endl;
int a[1000];
for(int i=0; i< 1000; ++i){
a[i] = -1;
}
bool check = true;
for(int i=0;i <s.size(); ++i){
if(a[s[i]] > 0){
cout << "no" << endl;
check = false;
break;
}
a[s[i]] = 1;
}
if(check){åç
cout << "yes" << endl;
}
return 0;
}
| a.cc: In function 'int main()':
a.cc:8:12: error: no match for 'operator>>' (operand types are 'std::basic_istream<char>' and '<unresolved overloaded function type>')
8 | cin >> s >>endl;
| ~~~~~~~~~^~~~~~
In file included from /usr/include/c++/14/iostream:42,
from a.cc:1:
/usr/include/c++/14/istream:170:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(bool&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]'
170 | operator>>(bool& __n)
| ^~~~~~~~
/usr/include/c++/14/istream:170:24: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'bool&'
170 | operator>>(bool& __n)
| ~~~~~~^~~
/usr/include/c++/14/istream:174:7: note: candidate: 'std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT, _Traits>::operator>>(short int&) [with _CharT = char; _Traits = std::char_traits<char>]'
174 | operator>>(short& __n);
| ^~~~~~~~
/usr/include/c++/14/istream:174:25: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'short int&'
174 | operator>>(short& __n);
| ~~~~~~~^~~
/usr/include/c++/14/istream:177:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(short unsigned int&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]'
177 | operator>>(unsigned short& __n)
| ^~~~~~~~
/usr/include/c++/14/istream:177:34: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'short unsigned int&'
177 | operator>>(unsigned short& __n)
| ~~~~~~~~~~~~~~~~^~~
/usr/include/c++/14/istream:181:7: note: candidate: 'std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT, _Traits>::operator>>(int&) [with _CharT = char; _Traits = std::char_traits<char>]'
181 | operator>>(int& __n);
| ^~~~~~~~
/usr/include/c++/14/istream:181:23: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'int&'
181 | operator>>(int& __n);
| ~~~~~^~~
/usr/include/c++/14/istream:184:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(unsigned int&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]'
184 | operator>>(unsigned int& __n)
| ^~~~~~~~
/usr/include/c++/14/istream:184:32: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'unsigned int&'
184 | operator>>(unsigned int& __n)
| ~~~~~~~~~~~~~~^~~
/usr/include/c++/14/istream:188:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(long int&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]'
188 | operator>>(long& __n)
| ^~~~~~~~
/usr/include/c++/14/istream:188:24: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'long int&'
188 | operator>>(long& __n)
| ~~~~~~^~~
/usr/include/c++/14/istream:192:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(long unsigned int&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]'
192 | operator>>(unsigned long& __n)
| ^~~~~~~~
/usr/include/c++/14/istream:192:33: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'long unsigned int&'
192 | operator>>(unsigned long& __n)
| ~~~~~~~~~~~~~~~^~~
/usr/include/c++/14/istream:199:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(long long int&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]'
199 | operator>>(long long& __n)
| ^~~~~~~~
/usr/include/c++/14/istream:199:29: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'long long int&'
199 | operator>>(long long& __n)
| ~~~~~~~~~~~^~~
/usr/include/c++/14/istream:203:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(long long unsigned int&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]'
203 | operator>>(unsigned long long& __n)
| ^~~~~~~~
/usr/include/c++/14/istream:203:38: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'long long unsigned int&'
203 | operator>>(unsigned long long& __n)
| ~~~~~~~~~~~~~~~~~~~~^~~
/usr/include/c++/14/istream:219:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(float&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]'
219 | operator>>(float& __f)
| ^~~~~~~~
/usr/include/c++/14/istream:219:25: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'float&'
219 | operator>>(float& __f)
| ~~~~~~~^~~
/usr/include/c++/14/istream:223:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(double&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]'
223 | operator>>(double& __f)
| ^~~~~~~~
/usr/include/c++/14/istream:223:26: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'double&'
223 | operator>>(double& __f)
| ~~~~~~~~^~~
/usr/include/c++/14/istream:227:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(long double&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]'
227 | operator>>(long double& __f)
| ^~~~~~~~
/usr/include/c++/14/istream:227:31: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'long double&'
227 | operator>>(long double& __f)
| ~~~~~~~~~~~~~^~~
/usr/include/c++/14/istream:328:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(void*&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]'
328 | operator>>(void*& __p)
| ^~~~~~~~
/usr/include/c++/14/istream:328:25: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'void*&'
328 | operator>>(void*& __p)
| ~~~~~~~^~~
/usr/include/c++/14/istream:122:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(__istream_type& (*)(__istream_type&)) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]'
122 | operator>>(__istream_type& (*__pf)(__istream_type&))
| ^~~~~~~~
/usr/include/c++/14/istream:122:36: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'std::basic_istream<char>::__istream_type& (*)(std::basic_istream<char>::__istream_type&)' {aka 'std::basic_istream<char>& (*)(std::basic_istream<char>&)'}
122 | operator>>(__istream_type& (*__pf)(__istream_type&))
| ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/istream:126:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(__ios_type& (*)(__ios_type&)) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>; __ios_type = std::basic_ios<char>]'
126 | operator>>(__ios_type& (*__pf)(__ios_type&))
| ^~~~~~~~
/usr/include/c++/14/istream:126:32: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'std::basic_istream<char>::__ios_type& (*)(std::basic_istream<char>::__ios_type&)' {aka 'std::basic_ios<char>& (*)(std::basic_ios<char>&)'}
126 | operator>>(__ios_type& (*__pf)(__ios_type&))
| ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~
/usr/include/c++/14/istream:133:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(std::ios_base& (*)(std::ios_base&)) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]'
133 | operator>>(ios_base& (*__pf)(ios_base&))
| ^~~~~~~~
/usr/include/c++/14/istream:133:30: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'std::ios_base& (*)(std::ios_base&)'
133 | operator>>(ios_base& (*__pf)(ios_base&))
| ~~~~~~~~~~~~^~~~~~~~~~~~~~~~
/usr/include/c++/14/istream:352:7: note: candidate: 'std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT, _Traits>::operator>>(__streambuf_type*) [with _CharT = char; _Traits = std::char_traits<char>; __streambuf_type = std::basic_streambuf<char>]'
352 | operator>>(__streambuf_type* __sb);
| ^~~~~~~~
/usr/include/c++/14/istream:352:36: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'std::basic_istream<char>::__streambuf_type*' {aka 'std::basic_streambuf<char>*'}
352 | operator>>(__streambuf_type* __sb);
| ~~~~~~~~~~~~~~~~~~^~~~
In file included from /usr/incl |
s784632859 | p03698 | C++ | #include<iostream>
#include<string>
using namespace std;
int main(){
string s;
cin >> s >>endl;
int a[1000];
for(int i=0; i< 1000; ++i){
a[i] = -1;
}
bool check = true;
for(int i=0;i <s.size(); ++i){
if(a[s[i]] > 0){
cout << "no" << endl;
check = false;
break;
}
a[s[i]] = 1;
}
if(check){
cout << "yes" << endl;
}
return 0;
}
| a.cc: In function 'int main()':
a.cc:8:12: error: no match for 'operator>>' (operand types are 'std::basic_istream<char>' and '<unresolved overloaded function type>')
8 | cin >> s >>endl;
| ~~~~~~~~~^~~~~~
In file included from /usr/include/c++/14/iostream:42,
from a.cc:1:
/usr/include/c++/14/istream:170:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(bool&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]'
170 | operator>>(bool& __n)
| ^~~~~~~~
/usr/include/c++/14/istream:170:24: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'bool&'
170 | operator>>(bool& __n)
| ~~~~~~^~~
/usr/include/c++/14/istream:174:7: note: candidate: 'std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT, _Traits>::operator>>(short int&) [with _CharT = char; _Traits = std::char_traits<char>]'
174 | operator>>(short& __n);
| ^~~~~~~~
/usr/include/c++/14/istream:174:25: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'short int&'
174 | operator>>(short& __n);
| ~~~~~~~^~~
/usr/include/c++/14/istream:177:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(short unsigned int&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]'
177 | operator>>(unsigned short& __n)
| ^~~~~~~~
/usr/include/c++/14/istream:177:34: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'short unsigned int&'
177 | operator>>(unsigned short& __n)
| ~~~~~~~~~~~~~~~~^~~
/usr/include/c++/14/istream:181:7: note: candidate: 'std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT, _Traits>::operator>>(int&) [with _CharT = char; _Traits = std::char_traits<char>]'
181 | operator>>(int& __n);
| ^~~~~~~~
/usr/include/c++/14/istream:181:23: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'int&'
181 | operator>>(int& __n);
| ~~~~~^~~
/usr/include/c++/14/istream:184:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(unsigned int&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]'
184 | operator>>(unsigned int& __n)
| ^~~~~~~~
/usr/include/c++/14/istream:184:32: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'unsigned int&'
184 | operator>>(unsigned int& __n)
| ~~~~~~~~~~~~~~^~~
/usr/include/c++/14/istream:188:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(long int&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]'
188 | operator>>(long& __n)
| ^~~~~~~~
/usr/include/c++/14/istream:188:24: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'long int&'
188 | operator>>(long& __n)
| ~~~~~~^~~
/usr/include/c++/14/istream:192:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(long unsigned int&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]'
192 | operator>>(unsigned long& __n)
| ^~~~~~~~
/usr/include/c++/14/istream:192:33: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'long unsigned int&'
192 | operator>>(unsigned long& __n)
| ~~~~~~~~~~~~~~~^~~
/usr/include/c++/14/istream:199:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(long long int&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]'
199 | operator>>(long long& __n)
| ^~~~~~~~
/usr/include/c++/14/istream:199:29: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'long long int&'
199 | operator>>(long long& __n)
| ~~~~~~~~~~~^~~
/usr/include/c++/14/istream:203:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(long long unsigned int&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]'
203 | operator>>(unsigned long long& __n)
| ^~~~~~~~
/usr/include/c++/14/istream:203:38: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'long long unsigned int&'
203 | operator>>(unsigned long long& __n)
| ~~~~~~~~~~~~~~~~~~~~^~~
/usr/include/c++/14/istream:219:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(float&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]'
219 | operator>>(float& __f)
| ^~~~~~~~
/usr/include/c++/14/istream:219:25: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'float&'
219 | operator>>(float& __f)
| ~~~~~~~^~~
/usr/include/c++/14/istream:223:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(double&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]'
223 | operator>>(double& __f)
| ^~~~~~~~
/usr/include/c++/14/istream:223:26: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'double&'
223 | operator>>(double& __f)
| ~~~~~~~~^~~
/usr/include/c++/14/istream:227:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(long double&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]'
227 | operator>>(long double& __f)
| ^~~~~~~~
/usr/include/c++/14/istream:227:31: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'long double&'
227 | operator>>(long double& __f)
| ~~~~~~~~~~~~~^~~
/usr/include/c++/14/istream:328:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(void*&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]'
328 | operator>>(void*& __p)
| ^~~~~~~~
/usr/include/c++/14/istream:328:25: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'void*&'
328 | operator>>(void*& __p)
| ~~~~~~~^~~
/usr/include/c++/14/istream:122:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(__istream_type& (*)(__istream_type&)) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]'
122 | operator>>(__istream_type& (*__pf)(__istream_type&))
| ^~~~~~~~
/usr/include/c++/14/istream:122:36: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'std::basic_istream<char>::__istream_type& (*)(std::basic_istream<char>::__istream_type&)' {aka 'std::basic_istream<char>& (*)(std::basic_istream<char>&)'}
122 | operator>>(__istream_type& (*__pf)(__istream_type&))
| ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/istream:126:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(__ios_type& (*)(__ios_type&)) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>; __ios_type = std::basic_ios<char>]'
126 | operator>>(__ios_type& (*__pf)(__ios_type&))
| ^~~~~~~~
/usr/include/c++/14/istream:126:32: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'std::basic_istream<char>::__ios_type& (*)(std::basic_istream<char>::__ios_type&)' {aka 'std::basic_ios<char>& (*)(std::basic_ios<char>&)'}
126 | operator>>(__ios_type& (*__pf)(__ios_type&))
| ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~
/usr/include/c++/14/istream:133:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(std::ios_base& (*)(std::ios_base&)) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]'
133 | operator>>(ios_base& (*__pf)(ios_base&))
| ^~~~~~~~
/usr/include/c++/14/istream:133:30: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'std::ios_base& (*)(std::ios_base&)'
133 | operator>>(ios_base& (*__pf)(ios_base&))
| ~~~~~~~~~~~~^~~~~~~~~~~~~~~~
/usr/include/c++/14/istream:352:7: note: candidate: 'std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT, _Traits>::operator>>(__streambuf_type*) [with _CharT = char; _Traits = std::char_traits<char>; __streambuf_type = std::basic_streambuf<char>]'
352 | operator>>(__streambuf_type* __sb);
| ^~~~~~~~
/usr/include/c++/14/istream:352:36: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'std::basic_istream<char>::__streambuf_type*' {aka 'std::basic_streambuf<char>*'}
352 | operator>>(__streambuf_type* __sb);
| ~~~~~~~~~~~~~~~~~~^~~~
In file included from /usr/incl |
s698424217 | p03698 | C++ | #include<bits/stdc++.h>
using namespace std;
typedef long long ll;
#define loop(i,a,b) for(i=a;i<b;i++)
#define rloop(i,a,b) for(i=a;i>=b;i--)
#define vi vector<int>
#define vl vector<ll>
#define vii vector< vector<int> >
#define vll vector< vector<ll> >
#define vs vector<string>
#define pii pair<int,int>
#define pis pair<int,string>
#define psi pair<string,int>
const int inf=1000000001;
const ll INF=1e16;
#define MOD 1000000007
#define mod 1000000009
#define pi 3.14159265358979323846
#define Sp(p) cout<<setprecision(15)<<fixed<<p<<endl;
int dx[4]={1,0,-1,0}, dy[4]={0,1,0,-1};
#define T tuple<int,int,int>
int main(){
string s;
cin>>s
int i,j;
loop(i,0,s.size()){
loop(j,i+1,s.size()){
if(s[i]==s[j]){
cout<<"no"<<endl;
return 0;
}
}
}
cout<<"yes"<<endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:25:15: error: expected ';' before 'int'
25 | cin>>s
| ^
| ;
26 | int i,j;
| ~~~
a.cc:27:14: error: 'i' was not declared in this scope
27 | loop(i,0,s.size()){
| ^
a.cc:4:25: note: in definition of macro 'loop'
4 | #define loop(i,a,b) for(i=a;i<b;i++)
| ^
a.cc:28:22: error: 'j' was not declared in this scope
28 | loop(j,i+1,s.size()){
| ^
a.cc:4:25: note: in definition of macro 'loop'
4 | #define loop(i,a,b) for(i=a;i<b;i++)
| ^
|
s063721443 | p03698 | C | #include<stdio.h>
#include<string.h>
int main(void)
{
int C = 0;
int i,j,p;
char S[26];
scanf("%26s",S);
p = strlen(S);
for( i = 0; i < p; i++){
for( j = 0; j < p; j++){
if( S[i] == S[j] ) C++ ;
}
}
if( C == p) ) printf("yes");
else printf("no");
return 0;
} | main.c: In function 'main':
main.c:16:21: error: expected statement before ')' token
16 | if( C == p) ) printf("yes");
| ^
main.c:17:9: error: 'else' without a previous 'if'
17 | else printf("no");
| ^~~~
|
s842616895 | p03698 | C | #include<stdio.h>
int main(){
char S[26];
int n=0;
scanf("%c",&S);
for(int i=1;i<26;i++){
if(S[0]=='S[i]'){
printf("no\n");
n=n++;
break;
}
if(S[i]=='')break;
}
if(n==0){
printf("yes\n");
}
return 0;
} | main.c: In function 'main':
main.c:7:10: warning: multi-character character constant [-Wmultichar]
7 | if(S[0]=='S[i]'){
| ^~~~~~
main.c:12:10: error: empty character constant
12 | if(S[i]=='')break;
| ^~
|
s343940563 | p03698 | C | #include<stdio.h>
int main(void)
{
int C = 0;
char S[26];
scanf("%26s",S);
for( i = 0; i < sizeof(S) / sizeof(S[0]); i++){
for( j = 0; j < sizeof(S) / sizeof(S[0]); j++){
if( S[i] == S[j] ) C++ ;
}
}
if( C == sizeof(S) / sizeof(S[0]) ) printf("yes");
else printf("no");
return 0;
} | main.c: In function 'main':
main.c:8:14: error: 'i' undeclared (first use in this function)
8 | for( i = 0; i < sizeof(S) / sizeof(S[0]); i++){
| ^
main.c:8:14: note: each undeclared identifier is reported only once for each function it appears in
main.c:9:14: error: 'j' undeclared (first use in this function)
9 | for( j = 0; j < sizeof(S) / sizeof(S[0]); j++){
| ^
|
s164416994 | p03698 | C++ | #include<iostream>
using namespace std;
int main(){
string S;
cin >> S;
int a[26];
for(int i = 0 ; i < S.size() ; i++ )
a[i] = 0;
for(int i = 0 ; i < S.size() ; i++ ){
a[int(S[i]) - 'a' ]++;
}
for(int i = 0 ; i < S.size() ; i++){
if(a[i] > ){
cout << "no" << endl;
return 0;
}
}
cout << "yes" << endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:20:16: error: expected primary-expression before ')' token
20 | if(a[i] > ){
| ^
|
s888705282 | p03698 | C++ | #include<bits/stdc++.h>
using namespace std;
int num[10000];
char a[100000];
int main(){
memset(a,0,sizeof(a));
gets(a);
int len = strlen(a);
for(int i = 0; i < len; i++)
num[a[i]]++;
int flag = 1;
for(int i = 0; i < 10000 ; i++)
if(num[i]>=2){
flag = 0;
break;
}
printf("%s\n",flag?"yes":"no");
return 0;
}
| a.cc: In function 'int main()':
a.cc:7:5: error: 'gets' was not declared in this scope; did you mean 'getw'?
7 | gets(a);
| ^~~~
| getw
|
s358486841 | p03698 | C++ | #include <iostream>
using namespace std;
int main(){
int code[256]={0};
char st[30];
bool diff=true;
cin >> st;
for(int i=0;i<30;i++){
if(st[i]==0)break;
code[st[i]]++;
if (code[st[i]]>1)diff=false;
}
cout<<diff?"yes":"no"<<endl;
return 0;} | a.cc: In function 'int main()':
a.cc:13:22: error: invalid operands of types 'const char [3]' and '<unresolved overloaded function type>' to binary 'operator<<'
13 | cout<<diff?"yes":"no"<<endl;
| ~~~~^~~~~~
|
s795866487 | p03698 | C++ | #include "bits/stdc++.h"
#define REP(i,n) for(ll i=0;i<n;++i)
#define RREP(i,n) for(ll i=n-1;i>=0;--i)
#define FOR(i,m,n) for(ll i=m;i<n;++i)
#define RFOR(i,m,n) for(ll i=n-1;i>=m;--i)
#define ALL(v) (v).begin(),(v).end()
#define PB(a) push_back(a)
#define UNIQUE(v) v.erase(unique(ALL(v)),v.end());
#define DUMP(v) REP(aa, (v).size()) { cout << v[a]; if (a != v.size() - 1)cout << " "; else cout << endl; }
#define INF 1000000001ll
#define MOD 1000000007ll
#define EPS 1e-9
const int dx[8] = { 1,1,0,-1,-1,-1,0,1 };
const int dy[8] = { 0,1,1,1,0,-1,-1,-1 };
using namespace std;
typedef long long ll;
typedef vector<int> vi;
typedef vector<ll> vl;
typedef vector<vi> vvi;
typedef vector<vl> vvl;
typedef pair<int, int> pii;
typedef pair<ll, ll> pll;
ll max(ll a, int b) { return max(a, ll(b)); }
ll max(int a, ll b) { return max(ll(a), b); }
ll min(ll a, int b) { return min(a, ll(b)); }
ll min(int a, ll b) { return min(ll(a), b); }
///(´・ω・`)(´・ω・`)(´・ω・`)(´・ω・`)(´・ω・`)(´・ω・`)///
int main() {
cin.tie(0);
ios::sync_with_stdio(false);
string s;
cin >> s;
set<char> st;
REP(i, s.size()) {
st.insert(s[i]);
}
if (st.size()) == s.size())cout << "yes" << endl;
else cout << "no" << endl;
return 0;
}
| a.cc: In function 'int main()':
a.cc:41:24: error: expected primary-expression before '==' token
41 | if (st.size()) == s.size())cout << "yes" << endl;
| ^~
|
s970092267 | p03698 | C++ | #include <iostreaam>
#include <string>
using namespace std;
int main(){
string in;
int a[300] = {};
cin >> in;
for(int i = 0;i<in.size();i++){
a[in[i]]++;
if(a[in[i]] > 1){
cout << "no" << endl;
return 0;
}
}
cout << "yes" << endl;
return 0;
} | a.cc:1:10: fatal error: iostreaam: No such file or directory
1 | #include <iostreaam>
| ^~~~~~~~~~~
compilation terminated.
|
s929886364 | p03698 | C++ | #include <stdio.h>
#include <string.h>
int main()
{
char s[30];
int a[26]={0};
// scanf("%s",s);
gets(s);
int n=strlen(s);
for(int i=0;i<n;i++)
a[s[i]-'a']++;
int dif=0;
for(int i=0;i<26;i++)
if(a[i]>1){
dif=1; break;
}
if(dif==0)
printf("yes");
else
printf("no");
return 0;
} | a.cc: In function 'int main()':
a.cc:9:9: error: 'gets' was not declared in this scope; did you mean 'getw'?
9 | gets(s);
| ^~~~
| getw
|
s301023604 | p03698 | C++ | #include <stdio.h>
#include <string.h>)
int main()
{
int i,n,j,k=0;
char a[100];
gets(a);
n=strlen(a);
for(i=0;i<n;i++)
{
for(j=i+1;j<n;j++)
if(a[i]==a[j]) k=1;
}
if(k==1)
printf("no");
else printf("yes");
return 0;
} | a.cc:2:20: warning: extra tokens at end of #include directive
2 | #include <string.h>)
| ^
a.cc: In function 'int main()':
a.cc:7:5: error: 'gets' was not declared in this scope; did you mean 'getw'?
7 | gets(a);
| ^~~~
| getw
|
s557931155 | p03698 | C++ | #include<stdio.h>
#include<string.h>
int main()
{
int n,j,k,i,l=0;
char s[100];
gets(s);
n=strlen(s);
for(i=0;i<n;i++)
for(j=i+1;j<n;j++)
{
if(s[i]==s[j]) l=1;
}
if(l==0)printf("yes\n");
else printf("no");
} | a.cc: In function 'int main()':
a.cc:7:9: error: 'gets' was not declared in this scope; did you mean 'getw'?
7 | gets(s);
| ^~~~
| getw
|
s580075300 | p03698 | C++ | #include <string.h>)
int main(int argc, char *argv[])
{
int i,n,j,k=0;
char a[100];
scanf("%s",a);
n=strlen(a);
for(i=0;i<n;i++)
{
for(j=i+1;j<n;j++)
if(a[i]==a[j]) k=1;
}
if(k==1)
printf("no");
else printf("yes");
return 0;
} | a.cc:1:20: warning: extra tokens at end of #include directive
1 | #include <string.h>)
| ^
a.cc: In function 'int main(int, char**)':
a.cc:6:9: error: 'scanf' was not declared in this scope
6 | scanf("%s",a);
| ^~~~~
a.cc:15:5: error: 'printf' was not declared in this scope
15 | printf("no");
| ^~~~~~
a.cc:2:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
1 | #include <string.h>)
+++ |+#include <cstdio>
2 | int main(int argc, char *argv[])
a.cc:16:10: error: 'printf' was not declared in this scope
16 | else printf("yes");
| ^~~~~~
a.cc:16:10: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
|
s174607346 | p03698 | C++ | #include <string.h>)
int main(int argc, char *argv[])
{
int i,n,j,k=0;
char a[26];
scanf("%s",a);
n=strlen(a);
for(i=0;i<n;i++)
{
for(j=i+1;j<n;j++)
if(a[i]==a[j]) k=1;
}
if(k==1)
printf("no");
else printf("yes");
return 0;
} | a.cc:1:20: warning: extra tokens at end of #include directive
1 | #include <string.h>)
| ^
a.cc: In function 'int main(int, char**)':
a.cc:6:9: error: 'scanf' was not declared in this scope
6 | scanf("%s",a);
| ^~~~~
a.cc:15:5: error: 'printf' was not declared in this scope
15 | printf("no");
| ^~~~~~
a.cc:2:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
1 | #include <string.h>)
+++ |+#include <cstdio>
2 | int main(int argc, char *argv[])
a.cc:16:10: error: 'printf' was not declared in this scope
16 | else printf("yes");
| ^~~~~~
a.cc:16:10: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
|
s616879776 | p03698 | C++ | #include <bits/stdc++.h>
using namespace std ;
int temp[105] ;
int main()
{
string str ;
cin >> str ;
int cnt = 0 ;
memset(temp,0,sizeof temp) ;
for(int i = 0 ; i < str.size() ; i++)
{
temp[str[i]]++ ;
if(temp[str[i]] == 1)
cnt++ ;
}
if(temp == str.size())
cout << "yes\n" ;
else cout << "no\n";
return 0 ;
} | a.cc: In function 'int main()':
a.cc:16:9: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
16 | if(temp == str.size())
| ~~~~~^~~~~~~~~~~~~
|
s320600809 | p03698 | C++ | #include<stdio.h>
#include<string.h>
int main()
{
char S[30];
int i,f=0;
gets(S);
for(i=0;i<strlen(S);i++){
if(i!=strlen(S)){
if(S[i]==S[i+1]){
f=1;
break;
}
}
}
if(f==1)
printf("no\n");
else
printf("yes\n");
return 0;
}
| a.cc: In function 'int main()':
a.cc:7:5: error: 'gets' was not declared in this scope; did you mean 'getw'?
7 | gets(S);
| ^~~~
| getw
|
s031064724 | p03698 | C++ | #include<bits/stdc++.h>
using namespace std;
int a[100];
int main()
{
string s;
cin>>s;
for(int i=0;i<s.size();i++)
{
a['s[i]' - 96] ++;
}
for(int i=0;i<s.size();i++)
{
if(a[i] >1)
{cout<<"no"<<endl;return 0;
}
cout<<"yes"<<endl;
return 0;
} | a.cc:10:18: warning: multi-character character constant [-Wmultichar]
10 | a['s[i]' - 96] ++;
| ^~~~~~
a.cc: In function 'int main()':
a.cc:21:6: error: expected '}' at end of input
21 | }
| ^
a.cc:5:5: note: to match this '{'
5 | {
| ^
|
s508388359 | p03698 | C++ | #include<bits/stdc++.h>
using namespace std;
int main()
{
string s;
cin>>s;
for(int i=0;i<s.size();i++)
{
a['s[i]' - 96] ++;
}
for(int i=0;i<s.size();i++)
{
if(a[i] >1)
{cout<<"no"<<endl;return 0;
}
cout<<"yes"<<endl;
return 0;
} | a.cc:10:14: warning: multi-character character constant [-Wmultichar]
10 | a['s[i]' - 96] ++;
| ^~~~~~
a.cc: In function 'int main()':
a.cc:10:12: error: 'a' was not declared in this scope
10 | a['s[i]' - 96] ++;
| ^
a.cc:15:15: error: 'a' was not declared in this scope
15 | if(a[i] >1)
| ^
a.cc:21:2: error: expected '}' at end of input
21 | }
| ^
a.cc:5:1: note: to match this '{'
5 | {
| ^
|
s109975064 | p03698 | C++ | #include<stdio.h>
#include<string.h>
int main()
{
char s[30];int i,l,j,k=1;
gets(s);
l=strlen(s);
for(i=0;i<l;i++)
{for(j=i+1;j<l;j++)
{
if(s[i]==s[j]){k=0;break;}
}
}
if(k==1)printf("yes\n");
else printf("no\n");
return 0;
} | a.cc: In function 'int main()':
a.cc:6:1: error: 'gets' was not declared in this scope; did you mean 'getw'?
6 | gets(s);
| ^~~~
| getw
|
s895978629 | p03698 | C++ | #include<stdio.h>
#include<string.h>
int main()
{
char s[30];int i,l,j,k=1;
gets(s);
l=strlen(s);
for(i=0;i<l;i++)
{for(j=i+1;j<l;j++)
{
if(s[i]==s[j])k=0;
}
}
if(k==1)printf("yes\n");
else printf("no\n");
} | a.cc: In function 'int main()':
a.cc:6:1: error: 'gets' was not declared in this scope; did you mean 'getw'?
6 | gets(s);
| ^~~~
| getw
|
s870863166 | p03698 | C++ | #include<stdio.h>
#include<string.h>
int main()
{
char s[30];int i,l,j,k=1;
gets(s);
l=strlen(s);
for(i=0;i<l;i++)
{for(j=i+1;j<l;j++)
{
if(s[i]==s[j])k=0;
}
}
if(k==1)printf("yes");
else printf("no");
} | a.cc: In function 'int main()':
a.cc:6:1: error: 'gets' was not declared in this scope; did you mean 'getw'?
6 | gets(s);
| ^~~~
| getw
|
s268354603 | p03698 | C | #include<stdio.h>
#include<string.h>
main()
{
char S[25];
int i,j,b=-1;
do
{
scanf("%s",&S);
}while(strlen(s)<2||strlen(s)>26);
for(i=0;i<=strlen(S);i++)
for(j=1;j<=strlen(S);j++)
{
if(s[i]==s[j])
b=b;
if(s[i]!=s[j])
b=-b;
}
if(b==1)
printf("no");
if(b==-1)
printf("yes");
} | main.c:3:1: error: return type defaults to 'int' [-Wimplicit-int]
3 | main()
| ^~~~
main.c: In function 'main':
main.c:10:23: error: 's' undeclared (first use in this function)
10 | }while(strlen(s)<2||strlen(s)>26);
| ^
main.c:10:23: note: each undeclared identifier is reported only once for each function it appears in
|
s962732411 | p03698 | Java | import java.util.Scanner;
public class abc63b {
static void sort(String[] a){
String x;
int cnt=0;
for(int i=a.length-1;i>0;--i){
for(int j=0;j<i;++j){
for(int k=0;k<(a[j].length()>a[j+1].length()?(a[j+1].length()-1):(a[j].length()-1));++k){
if(((a[j].charAt(k))<(a[j+1].charAt(k)))){
break;
}else if(((a[j].charAt(k))==(a[j+1].charAt(k)))){
boolean h=true;
for(int m=1;m<(a[j].length()>a[j+1].length()?(a[j+1].length()-1):(a[j].length()-1));++m){
if(((a[j].charAt(k+m))<(a[j+1].charAt(k+m)))){
h=false;
break;
}else if(h=true){
if(a[j].length()>a[j+1].length()){x=a[j];a[j]=a[j+1];a[j+1]=x;cnt++;break;}
else{break;}
}
}
}else{
x=a[j];a[j]=a[j+1];a[j+1]=x;
cnt++;
break;
}
}
}
if(cnt==0){break;}
cnt=0;
}
return;
}
public static void main(String[] args) {
// TODO 自動生成されたメソッド・スタブ
Scanner stdin = new Scanner(System.in);
String[] x=new String[27];
for(int i=0;i<x.length;++i){
x[i]=stdin.next();
}
sort(x);
boolean y=true;
for(int i=1;i<x.length;++i){
if(x[i].equals(x[i-1])){
System.out.println("no");
y=false;
break;
}
if(y==true)System.out.println("yes");
}
}
}
| Main.java:2: error: class abc63b is public, should be declared in a file named abc63b.java
public class abc63b {
^
1 error
|
s490033149 | p03698 | C++ | #include <stdio.h>
#include<string.h>
int main(int argc, char *argv[])
{
char a[100],b[100];
int i,j,k=0,n;
gets(a);
n=strlen(a);
for(i=0;i<=n;i++)
for(j=0;j<=n,j!=i;j++)
if(a[i]==a[j]) k=1;
if(k==1) printf("no\n");
else printf("yes\n");
return 0;
} | a.cc: In function 'int main(int, char**)':
a.cc:7:4: error: 'gets' was not declared in this scope; did you mean 'getw'?
7 | gets(a);
| ^~~~
| getw
|
s607961284 | p03698 | C++ | #include<iostream>
#include<string>
using namespace std;
int main()
{
char *S;
S = new char;
int len;
bool flag;
do {
cin >> S;
len = strlen(S);
} while (len < 2 || len > 26);
for (int i = 1; i < len; i++) {
for (int j = 0; j < len - i; j++) {
if (strcmp(S + i, S + j) == 0) {
flag = 0;
goto out;
}
}
}
out:if (flag==0) {
cout << "no";
}
else cout << "yes";
} | a.cc: In function 'int main()':
a.cc:12:23: error: 'strlen' was not declared in this scope
12 | len = strlen(S);
| ^~~~~~
a.cc:2:1: note: 'strlen' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
1 | #include<iostream>
+++ |+#include <cstring>
2 | #include<string>
a.cc:16:29: error: 'strcmp' was not declared in this scope
16 | if (strcmp(S + i, S + j) == 0) {
| ^~~~~~
a.cc:16:29: note: 'strcmp' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
|
s738591804 | p03698 | C++ | #include<stdio.h>
#include<string.h>
int main ()
{
char s[30];
while(gets(s))
{
int len ,i,t=0;
len =strlen(s);
for(i=0;i<len;i++)
{
for(int k=i+1;k<len;k++)
if(s[k]==s[i])
{
t=1;
break;
}
if(t==1)
break;
}
if(t==1)
printf("no\n");
else
printf("yes\n");
}
} | a.cc: In function 'int main()':
a.cc:6:15: error: 'gets' was not declared in this scope; did you mean 'getw'?
6 | while(gets(s))
| ^~~~
| getw
|
s991784104 | p03698 | C++ | #include<stdio.h>
#include<string.h>
int main()
{
char s[26];
int i,n,f=0;
gets(s);
n=strlen(s);
for(i=0;i<=n;i++)
{
if(s[i]==s[i+1]) f++;
}
if(f>=1) printf("no");
else printf("yes");
} | a.cc: In function 'int main()':
a.cc:7:9: error: 'gets' was not declared in this scope; did you mean 'getw'?
7 | gets(s);
| ^~~~
| getw
|
s762630976 | p03698 | C++ | #include <iostream>
#include <algorithm>
using namespace std;
char s[27];
int main(){
int flag = 0;
cin >> s;
for (int i =0;i<strlen(s);i++){
for(int j = i+1; j<strlen(s);j++){
if (s[i] == s[j]) flag = 1;
}
}
(flag==1)?(cout << "no" << endl):(cout <<"yes" << endl);
return 0;
}
| a.cc: In function 'int main()':
a.cc:9:19: error: 'strlen' was not declared in this scope
9 | for (int i =0;i<strlen(s);i++){
| ^~~~~~
a.cc:3:1: note: 'strlen' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
2 | #include <algorithm>
+++ |+#include <cstring>
3 | using namespace std;
|
s460326107 | p03698 | C++ | #include <stdio.h>
#include <string.h>
int main()
{
int i,j,k=0;
char str[26];
gets(str);
for (i = 0; i < strlen(str); i++)
{
for (j =i + 1; j < strlen(str);j++)
{
if (str[i] == str[j])
k=1;
}
}
if(k==1) printf("no");
else printf("yes");
}
| a.cc: In function 'int main()':
a.cc:7:6: error: 'gets' was not declared in this scope; did you mean 'getw'?
7 | gets(str);
| ^~~~
| getw
|
s141492426 | p03698 | C++ | #include <stdio.h>
#include <string.h>
int main()
{
int i,j,k=0;
char str[30];
gets(str);
for (i = 0; i < strlen(str); i++)
{
for (j =i + 1; j < strlen(str);j++)
{
if (str[i] == str[j])
k=1;
}
}
if(k==1) printf("no");
else printf("yes");
}
| a.cc: In function 'int main()':
a.cc:7:6: error: 'gets' was not declared in this scope; did you mean 'getw'?
7 | gets(str);
| ^~~~
| getw
|
s876815023 | p03698 | C++ | #include <stdio.h>
#include<string.h>
int main(int argc, char *argv[])
{
char a[100];
int i,j,k=0,n;
gets(a);
n=strlen(a);
for(i=0;i<n;i++)
{
for(j=0;j<n,j!=i;j++)
if(a[i]==a[j]) k=1;
}
if(k==1) printf("no\n");
else printf("yes\n");
return 0;
} | a.cc: In function 'int main(int, char**)':
a.cc:7:4: error: 'gets' was not declared in this scope; did you mean 'getw'?
7 | gets(a);
| ^~~~
| getw
|
s641336918 | p03698 | C++ | #include"stdio.h"
#include"string.h"
main(){
char S[26];
int i,j;
gets(S);
for(i=0;i<(strlen(S)-1);i++)
{for(j=i+1;j<strlen(S);j++)
{if(S[i]==S[j]) break;}
if(j!=strlen(S)) break;}
if(i==(strlen(S)-1)) printf("yes\n");
else printf("no\n");
}
| a.cc:3:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
3 | main(){
| ^~~~
a.cc: In function 'int main()':
a.cc:6:9: error: 'gets' was not declared in this scope; did you mean 'getw'?
6 | gets(S);
| ^~~~
| getw
|
s543504711 | p03698 | C++ | #include <stdio.h>
#include <string.h>
int main()
{
char str[30];
gets(str);
for (int i = 0; i < (int)strlen(str); i++){
for (int j = i + 1; j < (int)strlen(str); j ++) {
if (str[i] == str[j]) {
printf("no\n");
return 0;
}
}
}
printf("yes\n");
return 0;
}
| a.cc: In function 'int main()':
a.cc:6:6: error: 'gets' was not declared in this scope; did you mean 'getw'?
6 | gets(str);
| ^~~~
| getw
|
s748637844 | p03698 | C++ | #include <iostream>
using namespace std;
int main(){
char c[26];
int count[26] = {};
for (int i=0;i<26;i++){
c[i] = '\0';
}
cin >> c;
int l = strlen(c);
for (int i = 0;i < l;i++) {
if (count[(int)c[i]-97]++ > 0) {
cout << "no" << endl;
return(0);
}
}
cout << "yes" << endl;
}
| a.cc: In function 'int main()':
a.cc:12:11: error: 'strlen' was not declared in this scope
12 | int l = strlen(c);
| ^~~~~~
a.cc:2:1: note: 'strlen' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
1 | #include <iostream>
+++ |+#include <cstring>
2 |
|
s972155531 | p03698 | C++ | #include<stdio.h>
#include<string.h>
int main()
{
char s[26];
int i,n,f=0;
gets(s);
n=strlen(s);
for(i=0;i<=n-1;i++)
{
if(s[i]==s[i+1]) f++;
}
if(f>=1) printf("no");
else printf("yes");
} | a.cc: In function 'int main()':
a.cc:7:9: error: 'gets' was not declared in this scope; did you mean 'getw'?
7 | gets(s);
| ^~~~
| getw
|
s985432676 | p03698 | C++ | #include"stdio.h"
#include"string.h"
main(){
char S[26];
int i,j;
gets(S);
for(i=0;i<(strlen(S)-1);i++)
{for(j=i+1;j<strlen(S);j++)
{if(S[i]==S[j]) break;}
if(j!=strlen(S)) break;}
if(i==(strlen(S)-1)) printf("yes\n");
else printf("no\n");
} | a.cc:3:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
3 | main(){
| ^~~~
a.cc: In function 'int main()':
a.cc:6:9: error: 'gets' was not declared in this scope; did you mean 'getw'?
6 | gets(S);
| ^~~~
| getw
|
s124037303 | p03698 | C++ | #include<stdio.h>
#include<string.h>
int main()
{
char s[100];
int i,n,f=0;
gets(s);
n=strlen(s);
for(i=0;i<=n-1;i++)
{
if(s[i]==s[i+1]) f++;
}
if(f>=1) printf("no");
else printf("yes");
} | a.cc: In function 'int main()':
a.cc:7:9: error: 'gets' was not declared in this scope; did you mean 'getw'?
7 | gets(s);
| ^~~~
| getw
|
s246948509 | p03698 | C++ | #include"stdio.h"
#include"string.h"
main(){
char S[26];
int i,j;
gets(S);
for(i=0;i<(strlen(S)-1);i++)
{for(j=i+1;j<strlen(S);j++)
{if(S[i]==S[j]) break;}
if(j!=strlen(S)) break;}
if(i==(strlen(S)-1)) printf("yes\n");
else printf("no\n");
} | a.cc:3:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
3 | main(){
| ^~~~
a.cc: In function 'int main()':
a.cc:6:9: error: 'gets' was not declared in this scope; did you mean 'getw'?
6 | gets(S);
| ^~~~
| getw
|
s437842298 | p03698 | C++ | #include"stdio.h"
#include"string.h"
main(){
char S[26];
int i,j;
gets(S);
for(i=0;i<(strlen(S)-1);i++)
{for(j=i+1;j<strlen(S);j++)
{if(S[i]==S[j]) break;}
if(j!=strlen(S)) break;}
if(i==(strlen(S)-1)) printf("yes\n");
else printf("no\n");
} | a.cc:3:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
3 | main(){
| ^~~~
a.cc: In function 'int main()':
a.cc:6:9: error: 'gets' was not declared in this scope; did you mean 'getw'?
6 | gets(S);
| ^~~~
| getw
|
s507094793 | p03698 | C++ | #include<stdio.h>
#include<string.h>
int main()
{
int n,j,k=0,i,l;
char a[100];
gets(a);
n=strlen(a)-1;
for(i=0;i<n;i++)
for(j=i+1;j<=n;j++)
{
if(a[i]==a[j])l=1;
}
if(l==1)
printf("no");
else printf("yes");
} | a.cc: In function 'int main()':
a.cc:7:3: error: 'gets' was not declared in this scope; did you mean 'getw'?
7 | gets(a);
| ^~~~
| getw
|
s946175265 | p03698 | C++ | #include <stdio.h>
#include <string.h>)
int main(int argc, char *argv[])
{
int i,n,j,k=0;
char a[30],b[30];
gets(a);
strcpy(b,a);
n=strlen(a);
for(i=0;i<n;i++)
{
for(j=0;j<n,j!=i;j++)
if(a[i]==b[j]) k=1;
}
if(k==1)
printf("no");
else printf("yes");
} | a.cc:2:20: warning: extra tokens at end of #include directive
2 | #include <string.h>)
| ^
a.cc: In function 'int main(int, char**)':
a.cc:7:9: error: 'gets' was not declared in this scope; did you mean 'getw'?
7 | gets(a);
| ^~~~
| getw
|
s068752202 | p03698 | C | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
// TODO Auto-generated method stub
String a;
int flag=0;
Scanner in=new Scanner(System.in);
a=in.nextLine();
for(int i=0;i<a.length();i++)
{
for(int j=i+1;j<a.length();j++)
{
if(a.charAt(i)==a.charAt(j))
flag=1;
break;
}
}
if(flag==1)System.out.println("no");
else System.out.println("yes");
}
} | main.c:1:1: error: unknown type name 'import'
1 | import java.util.Scanner;
| ^~~~~~
main.c:1:12: error: expected '=', ',', ';', 'asm' or '__attribute__' before '.' token
1 | import java.util.Scanner;
| ^
main.c:3:1: error: unknown type name 'public'
3 | public class Main {
| ^~~~~~
main.c:3:14: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'Main'
3 | public class Main {
| ^~~~
|
s115149551 | p03698 | C++ | #include <stdio.h>
int main()
{
char a[26] = { 0 };
char str[30];
int k = 0;
gets(str);
for (int i = 0; i < (int)strlen(str); i++){
a[str[i]-'a']++;
}
for (int i = 0; i < 26; i++){
if (a[i] != 0 && a[i] != 1){
k = 1;
}
}
if (k == 1) {
printf("no\n");
}else{
printf("yes\n");
}
} | a.cc: In function 'int main()':
a.cc:7:6: error: 'gets' was not declared in this scope; did you mean 'getw'?
7 | gets(str);
| ^~~~
| getw
a.cc:8:31: error: 'strlen' was not declared in this scope
8 | for (int i = 0; i < (int)strlen(str); i++){
| ^~~~~~
a.cc:2:1: note: 'strlen' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
1 | #include <stdio.h>
+++ |+#include <cstring>
2 | int main()
|
s983393341 | p03698 | C++ | #include<stdio.h>
#include<string.h>
int main()
{
char s[24];
int i,n,f=0;
gets(s);
n=strlen(s);
for(i=0;i<=n;i++)
{
if(s[i]==s[i+1]) f++;
}
if(f>=1) printf("no");
else printf("yes");
} | a.cc: In function 'int main()':
a.cc:7:9: error: 'gets' was not declared in this scope; did you mean 'getw'?
7 | gets(s);
| ^~~~
| getw
|
s285217070 | p03698 | C++ | #include<stdio.h>
#include<string.h>
int main()
{
char s[24];
int i,n,f=0;
gets(s);
n=strlen(s);
for(i=0;i<n;i++)
{
if(s[i]==s[i+1]) f++;
}
if(f>=1) printf("no");
else printf("yes");
} | a.cc: In function 'int main()':
a.cc:7:9: error: 'gets' was not declared in this scope; did you mean 'getw'?
7 | gets(s);
| ^~~~
| getw
|
s183274746 | p03698 | C++ | #include<stdio.h>
#include<string.h>
int main()
{
int n,j,k=0,i,l;
char a[100];
gets(a);
n=strlen(a)-1;
for(i=0;i<n;i++)
for(j=i+1;j<=n+1;j++)
{
if(a[i]==a[j])l=1;
}
if(l==1)
printf("no");
else printf("yes");
} | a.cc: In function 'int main()':
a.cc:7:3: error: 'gets' was not declared in this scope; did you mean 'getw'?
7 | gets(a);
| ^~~~
| getw
|
s678224469 | p03698 | C++ | #include <stdio.h>
#include <string.h>
#include <stdlib.h>
char count[100];
char str[1024];
int main()
{
while(gets(str)){
memset(count,0,sizeof(count));
int len=(int)strlen(str);
for(int i=0;i<len;i++){
count[str[i]-'A']++;
}
for(int i=0;i<=57;i++)
if(count[i]){
if (count[i] != 1) {
printf("no\n");
return 0;
}
}
printf("yes"); break;
}
return 0;
} | a.cc: In function 'int main()':
a.cc:9:11: error: 'gets' was not declared in this scope; did you mean 'getw'?
9 | while(gets(str)){
| ^~~~
| getw
|
s480390580 | p03698 | C++ | #include <stdio.h>
#include <string.h>)
int main(int argc, char *argv[])
{
int i,n,j,k=0;
char a[26],b[20];
gets(a);
n=strlen(a);
for(i=0;i<n;i++)
{
for(j=i+1;j<n;j++)
if(a[i]==a[j]) k=1;
}
if(k==1)
printf("no");
else printf("yes");
return 0;
} | a.cc:2:20: warning: extra tokens at end of #include directive
2 | #include <string.h>)
| ^
a.cc: In function 'int main(int, char**)':
a.cc:7:9: error: 'gets' was not declared in this scope; did you mean 'getw'?
7 | gets(a);
| ^~~~
| getw
|
s647072056 | p03698 | C++ | #include <stdio.h>
#include <string.h>
int main()
{
char a[27];
int i, j, n;
gets(a);
n = strlen(a);
for (i = 0; i < n; i++) {
for (j = 0; j < n; j++) {
if (i == j && a[i] == a[j])
continue;
else
if (a[i] == a[j]) {
printf("no\n");
goto fun;
}
}
}
fun:;
if (i == n && j == n)
printf("yes\n");
return 0;
} | a.cc: In function 'int main()':
a.cc:7:9: error: 'gets' was not declared in this scope; did you mean 'getw'?
7 | gets(a);
| ^~~~
| getw
|
s305950343 | p03698 | C++ | #include<stdio.h>
#include<string.h>
int main()
{
char s[26];
int i,n,f=0;
gets(s);
n=strlen(s);
for(i=0;i<n-1;i++)
{
if(s[i]==s[i+1]) f++;
}
if(f>=1) printf("no");
else printf("yes");
} | a.cc: In function 'int main()':
a.cc:7:9: error: 'gets' was not declared in this scope; did you mean 'getw'?
7 | gets(s);
| ^~~~
| getw
|
s162040244 | p03698 | C++ | #include<stdio.h>
#include<string.h>
char s[100];
int S[55];
int main(){
gets(s);
int flag;
int t = strlen(s);
memset(S,0,sizeof(S));
for(int i = 0;i < t;i++){
if(s[i]=='a') S[0]++;
if(s[i]=='b') S[1]++;
if(s[i]=='c') S[2]++;
if(s[i]=='d') S[3]++;
if(s[i]=='e') S[4]++;
if(s[i]=='f') S[5]++;
if(s[i]=='g') S[6]++;
if(s[i]=='h') S[7]++;
if(s[i]=='i') S[8]++;
if(s[i]=='j') S[9]++;
if(s[i]=='k') S[10]++;
if(s[i]=='l') S[11]++;
if(s[i]=='m') S[12]++;
if(s[i]=='n') S[13]++;
if(s[i]=='o') S[14]++;
if(s[i]=='p') S[15]++;
if(s[i]=='q') S[16]++;
if(s[i]=='r') S[17]++;
if(s[i]=='s') S[18]++;
if(s[i]=='t') S[19]++;
if(s[i]=='u') S[20]++;
if(s[i]=='v') S[21]++;
if(s[i]=='w') S[22]++;
if(s[i]=='x') S[23]++;
if(s[i]=='y') S[24]++;
if(s[i]=='z') S[25]++;
}
for(int j = 0;j <= 25;j++){
if(S[j]>1){
flag = 1;
printf("no\n");
break;
}
else{
flag = 0;
}
}
if(flag == 0){
printf("yes\n");
}
} | a.cc: In function 'int main()':
a.cc:6:9: error: 'gets' was not declared in this scope; did you mean 'getw'?
6 | gets(s);
| ^~~~
| getw
|
s968875299 | p03698 | C++ | #include<stdio.h>
#include<string.h>
int main()
{
int n,j,k=0,i,l;
char a[100];
gets(a);
n=strlen(a)-1;
for(i=0;i<n;i++)
for(j=i+1;j<=n;j++)
{
if(a[i]==a[j])l=1;
}
if(l==1)
printf("no");
else printf("yes");
} | a.cc: In function 'int main()':
a.cc:7:3: error: 'gets' was not declared in this scope; did you mean 'getw'?
7 | gets(a);
| ^~~~
| getw
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.