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.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)... | 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 =... | 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 wit... |
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"... | 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\... | 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 {
... | 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++) {
| ... |
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 {
p... | 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++) {
| ... |
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";
... | 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>
... |
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 <<... | 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>
... |
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";
}
}
... | 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>
... |
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";
... | 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>
... |
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 i... |
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")
}
}
//temp... | 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 {
| ^~~~... |
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")
}
}
//temp... | 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 {
| ^~~~... |
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... | 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 = ch... | 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=strl... |
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; ... | 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++/1... |
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 = 1001001001... | 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... |
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: ... |
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 | i... |
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 | ... |
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 | ... |
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 | ... |
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 | f... |
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 << "ye... | 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++){
| ^
... |
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: exp... |
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){
... | 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 ... | 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" <<... | 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::_... |
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[... |
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++/... |
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;
}
}... | 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;
}
... | 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-cla... |
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 << "n... | 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 b... |
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"... | 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;
... | 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; ///< Linke... |
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;... | 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; ///< Lin... |
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... | 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[... | 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+... |
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[... | 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+... |
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 p... | 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:... |
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... |
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;
re... | 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;
b... | 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... | 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 t... |
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 t... |
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... | 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)
... | 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;
... | 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... |
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)
... | 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 ... |
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;
... | 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;... | 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>
+++ |+#... |
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>
+++ |+#in... |
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;
}
}
... | 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))
... | 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 {
| ^~... |
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;
}
}
... | 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++){
| ... |
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++)
i... | 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)
... | 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]==... | 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.