submission_id stringlengths 10 10 | problem_id stringlengths 6 6 | language stringclasses 3
values | code stringlengths 1 522k | compiler_output stringlengths 43 10.2k |
|---|---|---|---|---|
s884229699 | p03852 | C++ | c = raw_input()
if c in "aeiou":
print "vowel"
else:
print "consonant"
| a.cc:1:1: error: 'c' does not name a type
1 | c = raw_input()
| ^
|
s839142625 | p03852 | C++ | #include <cstdio>
int main()
{
char c;
scanf("%c", c);
std::string s("aeiou");
printf("%s\n", s.find(c) ? "vowel" : "consonant");
return 0;
}
| a.cc: In function 'int main()':
a.cc:7:8: error: 'string' is not a member of 'std'
7 | std::string s("aeiou");
| ^~~~~~
a.cc:2:1: note: 'std::string' is defined in header '<string>'; this is probably fixable by adding '#include <string>'
1 | #include <cstdio>
+++ |+#include <string>
2 |
a.... |
s985409389 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
#define rep(i,n) for(i=0; i<n; i++)
#define out(x) cout<<(x)<<"\n"
int main(){
char c;
cin>>c;
if(c=="a" || c=="i" || c=="e" || c=="o" || c=="u"){
out("vowel");
}
else{
out("consonant");
}
} | a.cc: In function 'int main()':
a.cc:9:7: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
9 | if(c=="a" || c=="i" || c=="e" || c=="o" || c=="u"){
| ~^~~~~
a.cc:9:17: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
9 | if(c=="a" || c=="i" |... |
s488655339 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
#define rep(i,n) for(i=0; i<n; i++)
#define out(x) cout<<(x)<<"\n"
int main(){
cin>>c;
if(c=="a" || c=="i" || c=="e" || c=="o" || c=="u"){
out("vowel");
}
else{
out("consonant");
}
} | a.cc: In function 'int main()':
a.cc:7:8: error: 'c' was not declared in this scope
7 | cin>>c;
| ^
|
s931806272 | p03852 | C++ | //ABC 050-C
#define _USE_MATH_DEFINES
#include <iostream>
#include <cmath>
#include <stdlib.h>
#include <algorithm>
#include <cstdio>
#include <vector>
#include <cstring>
#include <numeric>
#include <string>
#include <map>
#include <sstream>
using namespace std;
int main() {
char c;
cin >> c;
if (c == "a") cout <... | a.cc: In function 'int main()':
a.cc:21:15: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
21 | if (c == "a") cout << "vowel" << endl;
| ~~^~~~~~
a.cc:22:15: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
22 | if (c == "... |
s605332487 | p03852 | C | [A]
#include<stdio.h>
int main(void)
{
char c;
scanf("%s",&c);
if (c=="a" || c=="i" || c=="u" || c=="e" || c=="o"){
puts("vowel");
}else{
puts("consonant");
}
return 0;
} | main.c:1:1: error: expected identifier or '(' before '[' token
1 | [A]
| ^
In file included from /usr/include/stdio.h:47,
from main.c:2:
/usr/include/x86_64-linux-gnu/bits/types/cookie_io_functions_t.h:28:43: error: unknown type name 'size_t'
28 | ... |
s071312024 | p03852 | C++ | #include <iostream>
int main() {
char c;
cin >> c;
std:cout << ((c == 'a' || c == 'i' || c=='u'||c=='e'||c=='o') ? "vowel" : "consonant") << std:endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:5:1: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
5 | cin >> c;
| ^~~
| 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 ... |
s524587075 | p03852 | C++ | #include <iostream>
int main() {
char c;
std::cin >> c;
std::cout << ((c == 'a' || c == 'i' || c=='u'||c=='e'||e=='o') ? "vowel" : "consonant") << std::endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:6:56: error: 'e' was not declared in this scope
6 | std::cout << ((c == 'a' || c == 'i' || c=='u'||c=='e'||e=='o') ? "vowel" : "consonant") << std::endl;
| ^
|
s270894088 | p03852 | C++ | #include <iostream>
int main() {
char c;
cin >> c;
std:cout << ((c == 'a' || c == 'i' || c=='u'||c=='e'||e=='o') ? "vowel" : "consonant") << std:endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:5:1: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
5 | cin >> c;
| ^~~
| 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 ... |
s290151139 | p03852 | Java | class Test{
public static void main(String args[])
throws java.io.IOException{
int c;
c=System.in.read();
if(c='a'or'i'or'u'or'e'or'o'){
System.out.println("vowel");
}else{
System.out.println(... | Main.java:6: error: ')' expected
if(c='a'or'i'or'u'or'e'or'o'){
^
Main.java:6: error: ';' expected
if(c='a'or'i'or'u'or'e'or'o'){
^
Main.java:6: error: not a statement
if(c='a'or'i'or'u'or'e'or'o'){
... |
s206869950 | p03852 | C++ | #include <iostream>
using namespace std;
void main()
{
char c;
cin >> c;
switch(c)
{
case 'a':
case 'e':
case 'i':
case 'o':
case 'u':
cout << "vowel" << endl;
break;
default:
cout << "consonant" << endl;
break;
}
return;
} | a.cc:4:1: error: '::main' must return 'int'
4 | void main()
| ^~~~
a.cc: In function 'int main()':
a.cc:21:9: error: return-statement with no value, in function returning 'int' [-fpermissive]
21 | return;
| ^~~~~~
|
s735225539 | p03852 | C++ | #include <iostream>
using namespace std;
int main()
{
string mozi;
bool flag;
cin >> mozi;
for (int i; i < mozi.size();i++) {
if (char[i] == "a" || char[i] == "i" || char[i] == "u" || char[i] == "e" || char[i] == "o") {
flag = true;
}
}
if (flag) {
cout << "vowel";
}
else {
cout << "consonant";
}... | a.cc: In function 'int main()':
a.cc:11:25: error: expected unqualified-id before '[' token
11 | if (char[i] == "a" || char[i] == "i" || char[i] == "u" || char[i] == "e" || char[i] == "o") {
| ^
|
s268439368 | p03852 | C++ | #include <iostream>
using namespace std;
char [] vowel = {'a', 'i', 'u', 'e', 'o'};
int main(){
char c;
cin >> c;
int j = 0;
for(int i = 0; i < (sizeof vowel)/sizeof char; i++){
if(vowel[i]==c)j=1;
}
if(j)cout << "consonant" << endl;
else cout << "consonant" << endl;
}
| a.cc:4:6: error: structured binding declaration cannot have type 'char'
4 | char [] vowel = {'a', 'i', 'u', 'e', 'o'};
| ^~
a.cc:4:6: note: type must be cv-qualified 'auto' or reference to cv-qualified 'auto'
a.cc:4:6: error: empty structured binding declaration
a.cc:4:9: error: expected initializer befo... |
s169386071 | p03852 | C++ | #include<iostream>
using namespace std;
int main()
{
char qwe;
while(cin >> qwe)
{
if(qwe=='a'||qwe=='e'||qwe=='i'||qwe=='o'||qwe=='u')
printf("vowel\n");
else
printf("consonant\n")
}
} | a.cc: In function 'int main()':
a.cc:11:22: error: expected ';' before '}' token
11 | printf("consonant\n")
| ^
| ;
12 | }
| ~
|
s460084408 | p03852 | C++ | int main(){
char *str;
scanf("%s",str);
switch (str)
case "a":
case "i":
case "u":
case "e":
case "o":
printf("vowel\n");
break;
default:
printf("consonant\n");
return 0
}
| a.cc: In function 'int main()':
a.cc:5:1: error: 'scanf' was not declared in this scope
5 | scanf("%s",str);
| ^~~~~
a.cc:7:9: error: switch quantity not an integer
7 | switch (str)
| ^~~
a.cc:13:1: error: 'printf' was not declared in this scope
13 | printf("vowel\n");
| ^~~~~~
a.cc... |
s301824780 | p03852 | C | #include"stdio.h"
void main(){
char x; scanf("%c",&x);
switch(x){
case 'a':
case 'i':
case 'u':
case 'e':
case 'o':
print("vowel");
break;
default:
print("consonant");
break;
}} | main.c: In function 'main':
main.c:10:1: error: implicit declaration of function 'print'; did you mean 'printf'? [-Wimplicit-function-declaration]
10 | print("vowel");
| ^~~~~
| printf
|
s703020439 | p03852 | C | #include"studio.h"
void main(){
char x; scanf("%c",&x);
switch(x){
case 'a':
case 'i':
case 'u':
case 'e':
case 'o':
print("vowel");
break;
default:
print("consonant");
break;
}} | main.c:1:9: fatal error: studio.h: No such file or directory
1 | #include"studio.h"
| ^~~~~~~~~~
compilation terminated.
|
s891221336 | p03852 | C++ | puts /[aiueo]/ =~ gets ? 'vowel' : 'consonant'
| a.cc:1:26: warning: multi-character literal with 5 characters exceeds 'int' size of 4 bytes
1 | puts /[aiueo]/ =~ gets ? 'vowel' : 'consonant'
| ^~~~~~~
a.cc:1:36: warning: multi-character literal with 9 characters exceeds 'int' size of 4 bytes
1 | puts /[aiueo]/ =~ gets ? 'vowel'... |
s729443664 | p03852 | Java | import java.io.*;
public class Atcoder {
public static void main(String[] args)throws IOException{
BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
String str=br.readLine();
if(str.equals("a")||str.equals("i")||str.equals("u")||str.equals("e")||str.equals("o")){
System.out.println("vowe... | Main.java:2: error: class Atcoder is public, should be declared in a file named Atcoder.java
public class Atcoder {
^
1 error
|
s308779230 | p03852 | Java | import java.io.*;
class UOAI{
public static void main(String[] args)throws IOExeption{
BufferedReader br=new BufferedReader(new Input StreamReader(System.in));
String str=br.readine();
if(str=='a'||str=='i'||str=='u'||str=='e'||str=='o')
System.out.println("vowel");
else System.out.println("con... | Main.java:4: error: '(' or '[' expected
BufferedReader br=new BufferedReader(new Input StreamReader(System.in));
^
Main.java:4: error: ';' expected
BufferedReader br=new BufferedReader(new Input StreamReader(System.in));
... |
s029288159 | p03852 | Java | import java.io.*;
class UOAI{
public static void main(String[] args){
BufferedReader br=
new BufferReader(new Input StreamReader(System.in));
String str=br.readine();
if(str=='a'||str=='i'||str=='u'||str=='e'||str=='o')
System.out.println("vowel")
else System.out.println("consonant");
... | Main.java:5: error: '(' or '[' expected
new BufferReader(new Input StreamReader(System.in));
^
Main.java:5: error: ';' expected
new BufferReader(new Input StreamReader(System.in));
^
Main.java:9: error: ';' expected... |
s834124471 | p03852 | Java | public static void main(String[] args){
BufferedReader br=
new BufferReader(new Input StreamReader(System.in));
String str=br.readine();
if(str=='a'||str=='i'||str=='u'||str=='e'||str=='o')
System.out.println("vowel")
else System.out.println("consonant");
}
| Main.java:1: error: unnamed classes are a preview feature and are disabled by default.
public static void main(String[] args){
^
(use --enable-preview to enable unnamed classes)
Main.java:3: error: '(' or '[' expected
new BufferReader(new Input StreamReader(System.in));
... |
s127849197 | p03852 | C++ | Class UOIAUAI{
public static void main(String[] args){
BufferedReader br=
new BufferReader(new Input StreamReader(System.in));
String str=br.readine();
if(str=='a'||str=='i'||str=='u'||str=='e'||str=='o')
System.out.println("vowel")
else System.out.println("consonant");
}
}
| a.cc:1:1: error: 'Class' does not name a type; did you mean 'class'?
1 | Class UOIAUAI{
| ^~~~~
| class
|
s833935875 | p03852 | C++ | Class UOIAUAI{
public static void main(String[] args){
BufferedReader br=
new BufferReader(new Input StreamReaer(System.in));
String str=br.readine();
if(str=='a'||str=='i'||str=='u'||str=='e'||str=='o')
System.out.println("vowel")
else System.out.println("consonant");
}
}
} | a.cc:1:1: error: 'Class' does not name a type; did you mean 'class'?
1 | Class UOIAUAI{
| ^~~~~
| class
a.cc:13:1: error: expected declaration before '}' token
13 | }
| ^
|
s919087880 | p03852 | C++ | #include <bits/stdc++.h>
int main() {
char c; std::cin >> c;
std::cout << (std::string("aiueo").find(c) != string::npos ? "vowel" : "consonant") << "\n";
} | a.cc: In function 'int main()':
a.cc:4:47: error: 'string' has not been declared
4 | std::cout << (std::string("aiueo").find(c) != string::npos ? "vowel" : "consonant") << "\n";
| ^~~~~~
|
s718095097 | p03852 | C++ | #include <bits/stdc++.h>
int main() {
char c; std::cin >> c;
std::cout << (string("aiueo").find(c) != string::npos ? "vowel" : "consonant") << "\n";
} | a.cc: In function 'int main()':
a.cc:4:15: error: 'string' was not declared in this scope
4 | std::cout << (string("aiueo").find(c) != string::npos ? "vowel" : "consonant") << "\n";
| ^~~~~~
a.cc:4:15: note: suggested alternatives:
In file included from /usr/include/c++/14/string:41,
... |
s677289267 | p03852 | C++ | #include <bits/stdc++.h>
int main() {
char c; std::cin >> c;
std::cout << (("aiueo").find(c) != string::npos ? "vowel" : "consonant") << "\n";
} | a.cc: In function 'int main()':
a.cc:4:25: error: request for member 'find' in '("aiueo")', which is of non-class type 'const char [6]'
4 | std::cout << (("aiueo").find(c) != string::npos ? "vowel" : "consonant") << "\n";
| ^~~~
a.cc:4:36: error: 'string' has not been declared
4 | ... |
s584130225 | p03852 | C++ | #include <bits/stdc++.h>
int main() {
char c; std::cin >> c;
std::cout << ("aiueo".find(c) != string::npos ? "vowel" : "consonant") << "\n";
} | a.cc: In function 'int main()':
a.cc:4:23: error: request for member 'find' in '"aiueo"', which is of non-class type 'const char [6]'
4 | std::cout << ("aiueo".find(c) != string::npos ? "vowel" : "consonant") << "\n";
| ^~~~
a.cc:4:34: error: 'string' has not been declared
4 | std::c... |
s208161016 | p03852 | C++ | int main() {
char c; cin >> c;
std::cout << ("aiueo".find(c) != string::npos ? "vowel" : "consonant") << "\n";
} | a.cc: In function 'int main()':
a.cc:2:9: error: 'cin' was not declared in this scope
2 | char c; cin >> c;
| ^~~
a.cc:3:6: error: 'cout' is not a member of 'std'
3 | std::cout << ("aiueo".find(c) != string::npos ? "vowel" : "consonant") << "\n";
| ^~~~
a.cc:1:1: note: 'std::cout' is de... |
s420318536 | p03852 | C++ | #include <iostream>
using namespece std;
int main()
{
char input;
cin >> input;
if(input == 'a' || input == 'e' || input == 'i' || input == 'o' || input == 'u')
{
cout << "vowel" << endl;
}
else
{
cout << "consonant" << endl;
}
}
| a.cc:3:7: error: expected nested-name-specifier before 'namespece'
3 | using namespece std;
| ^~~~~~~~~
a.cc: In function 'int main()':
a.cc:8:9: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
8 | cin >> input;
| ^~~
| std::cin
In file inclu... |
s949401142 | p03852 | C++ | #include <iostream>
using namespece std;
int main()
{
char input;
cin >> input;
if(input == 'a' || input == 'e' ||
input == 'i' || input == 'o' || input == 'u')
{
cout << "vowel" << endl;
}
else
{
cout << "consonant" << endl;
}
}
| a.cc:3:7: error: expected nested-name-specifier before 'namespece'
3 | using namespece std;
| ^~~~~~~~~
a.cc: In function 'int main()':
a.cc:8:9: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
8 | cin >> input;
| ^~~
| std::cin
In file inclu... |
s258223107 | p03852 | C++ | #include <iostream>
using namespce std;
int main()
{
char input;
cin >> input;
if(input == 'a' || input == 'e' ||
input == 'i' || input == 'o' || input == 'u')
{
cout << "vowel" << endl;
}
else
{
cout << "consonant" << endl;
}
}
| a.cc:3:7: error: expected nested-name-specifier before 'namespce'
3 | using namespce std;
| ^~~~~~~~
a.cc: In function 'int main()':
a.cc:8:9: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
8 | cin >> input;
| ^~~
| std::cin
In file included... |
s407728068 | p03852 | C++ | use strict;
use warnings;
my $buf = <>;
chomp $buf;
if("aiueo" =~ m/$buf/){
print "YES\n";
}else{
print "NO\n";
}
| a.cc:1:1: error: 'use' does not name a type
1 | use strict;
| ^~~
a.cc:2:1: error: 'use' does not name a type
2 | use warnings;
| ^~~
a.cc:4:1: error: 'my' does not name a type
4 | my $buf = <>;
| ^~
a.cc:5:1: error: 'chomp' does not name a type
5 | chomp $buf;
| ^~~~~
a.cc:6:1: ... |
s622058677 | p03852 | C++ | qqq | a.cc:1:1: error: 'qqq' does not name a type
1 | qqq
| ^~~
|
s576807060 | p03852 | C++ | #include<iostream>
#include<cstdio>
#include<algorithm>
#include<cmath>
#include<string>
#include<cstring>
#include<vector>
#include<map>
#include<list>
#include<stack>
#include<queue>
#include<climits> //INT_MIN/MAX
typedef int long long;
using namespace std;
#define FOR(i,s,e) for(int (i)=(s);(i)<(e);(i)++)
#define... | a.cc:14:18: error: declaration does not declare anything [-fpermissive]
14 | typedef int long long;
| ^~~~
|
s495814208 | p03852 | Java | import java.util.*;
public class ProblemA {
private static String VOWELS = "ueoai";
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
String s = sc.nextLine();
if (VOWELS.indexOf(s) > 0 ) {
System.out.println("vowel");
} else {
System.out.println("consonant");
}
... | Main.java:3: error: class ProblemA is public, should be declared in a file named ProblemA.java
public class ProblemA {
^
1 error
|
s923567017 | p03852 | C++ | #include <iostream>
int main(){
char c;
cin>>c;
if(c=='a'||c=='i'||c=='u'||c=='e'||c=='o') cout<<"vowel<<endl;
else cout<<"consonant"<<endl;} | a.cc:6:51: warning: missing terminating " character
6 | if(c=='a'||c=='i'||c=='u'||c=='e'||c=='o') cout<<"vowel<<endl;
| ^
a.cc:6:51: error: missing terminating " character
6 | if(c=='a'||c=='i'||c=='u'||c=='e'||c=='o') cout<<"vowel<<endl;
| ... |
s908004862 | p03852 | C++ | #include <iostream.h>
int main()
{
char ch;
cin >> ch;
if(ch=='a' || ch=='e' || ch=='i' || ch=='o' || ch=='u')
cout << "vowel";
else
cout << "consonant";
return 0;
} | a.cc:1:10: fatal error: iostream.h: No such file or directory
1 | #include <iostream.h>
| ^~~~~~~~~~~~
compilation terminated.
|
s593140618 | p03852 | C++ | #include <iostream>
int main() {
char c;
cin >> c;
char *s = "aiueo";
for (int i = 0; i < 5; ++i) if (c != s[i]) {
cout << "consonant" << endl;
return 0;
}
cout << "vowel" << endl;
} | a.cc: In function 'int main()':
a.cc:4:1: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
4 | cin >> c;
| ^~~
| 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 ... |
s269976268 | p03852 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(){
string s;
cin>>s;
if(s=='a'||s=='e'||s=='i'||s=='o'||s=='u')
cout<<"vowel";
else
cout<<"consonant";
} | a.cc: In function 'int main()':
a.cc:6:13: error: no match for 'operator==' (operand types are 'std::string' {aka 'std::__cxx11::basic_string<char>'} and 'char')
6 | if(s=='a'||s=='e'||s=='i'||s=='o'||s=='u')
| ~^~~~~
| | |
| | char
| std... |
s309623247 | p03852 | C++ | import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
String c = sc.next();
char d = c.charAt(0);
if(d=='a'||d=='i'||d=='u'||d=='e'||d=='o'){
System.out.println("vowel");
}else{
System.ou... | a.cc:1:1: error: 'import' does not name a type
1 | import java.util.*;
| ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:3:1: error: expected unqualified-id before 'public'
3 | public class Main {
| ^~~~~~
|
s888487598 | p03852 | Java | import java.util.*;
public class Main {
public static void main(String[] args){
Strine s = args[0];
if(s.equals('a') || s.equals('i') || s.equals('u') || s.equals('e') || s.equals('o') ){
System.out.println("vowel");
}else{
System.out.println("consonant");
}
}
} | Main.java:4: error: cannot find symbol
Strine s = args[0];
^
symbol: class Strine
location: class Main
1 error
|
s572235844 | p03852 | Java | import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;
public class atc {
public static void main(String[] args) {
Scanner sc=new Scanner(System.in);
List<String> moji = new ArrayList<String>();
moji.add("a");
moji.add("i");
moji.add("u");
moji.add("e");
moji.add("o");
String c... | Main.java:6: error: class atc is public, should be declared in a file named atc.java
public class atc {
^
1 error
|
s116584122 | p03852 | Java | import java.util.*;
public class Main {
public static void main(String[] args){
Strine s = args[0];
if(s.equals('a') || s.equals('i') || s.equals('u') || s.equals('e') || s.equals('o') ||){
System.out.println("vowel");
}else{
System.out.println("consonant");
}
}
} | Main.java:5: error: illegal start of expression
if(s.equals('a') || s.equals('i') || s.equals('u') || s.equals('e') || s.equals('o') ||){
^
1 error
|
s383879076 | p03852 | C++ | #include<iostream>
using namespace std;
int main(){
int W,H;
char C[101][101]={};
cin>>H>>W;
for(int i=0;i<H;i++)
for(int j=0;j<W;j++)
cin>>C[i][j];
for(int i=H;i<2H;i++)
for(int j=0;j<W;j++)
C[i][j]=C[(i+1)/2][j];
for(int i=0;i<2H;i++){
for(int j=0;j<W;j++)
cout<<C[i][j];
cout<<endl;
}
return 0;
} | a.cc: In function 'int main()':
a.cc:11:15: error: unable to find numeric literal operator 'operator""H'
11 | for(int i=H;i<2H;i++)
| ^~
a.cc:15:15: error: unable to find numeric literal operator 'operator""H'
15 | for(int i=0;i<2H;i++){
| ^~
|
s194841548 | p03852 | Java | import java.util.*;
public class Main{
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
char a = sc.next().charAr(0);
if( (a == 'a')||(a=='i')||(a=='u')||(a=='e')||(a=='o')){
System.out.println("vowel");
}else{
System.out.println("consonent");
}
return;
}
} | Main.java:6: error: cannot find symbol
char a = sc.next().charAr(0);
^
symbol: method charAr(int)
location: class String
1 error
|
s600171940 | p03852 | C | int main()
{
char a;
scanf("%c",a);
if(c=='a' || c=='e' || c=='i' || c=='o' || c=='u')
printf("vowel\n");
else
printf("consonant\n");
return 0;
} | main.c: In function 'main':
main.c:4:2: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
4 | scanf("%c",a);
| ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
+++ |+#include <stdio.h>
1 | int main()
main.c:4:2: warning: incompatible impli... |
s897560965 | p03852 | C | #include <stdio.h>
int main(){
char c;
scanf("%s",c);
for(i=0;i<26;i++){
if(c='a'&&c='i'&&c='u'&&c='e'&&c='o'){
printf("vowel\n");
}else{
printf("vowel\n");
}
}
}
| main.c: In function 'main':
main.c:6:9: error: 'i' undeclared (first use in this function)
6 | for(i=0;i<26;i++){
| ^
main.c:6:9: note: each undeclared identifier is reported only once for each function it appears in
main.c:7:41: error: lvalue required as left operand of assignment
7 | ... |
s712761305 | p03852 | C | #include <stdio.h>
int main(void)
{
char ch;
scanf("%c",ch)
if(ch == ('a'||'e'||'i'||'o'||'u'))
printf("vowel\n");
else
printf("consonant\n");
return 0;
} | main.c: In function 'main':
main.c:7:23: error: expected ';' before 'if'
7 | scanf("%c",ch)
| ^
| ;
8 |
9 | if(ch == ('a'||'e'||'i'||'o'||'u'))
| ~~
main.c:11:9: error: 'else' without a previous 'if'
11 | ... |
s392366594 | p03852 | C++ | character = str(input())
vowels = ["a","i","u","e","o"]
fin = False
if character in vowels:
print("vowel")
else:
print("consonant")
| a.cc:1:1: error: 'character' does not name a type
1 | character = str(input())
| ^~~~~~~~~
|
s885381911 | p03852 | C++ | #include <iostream>
#include <string>
using namespace std;
int main(){
string s;
cin>>s;
if(s=='a'||s=='i'||s=='u'||s=='e'||s=='o'){
cout<<"vowel"<<endl;
}else{
cout<<"consonant"<<endl;
}
return 0;
} | a.cc: In function 'int main()':
a.cc:10:13: error: no match for 'operator==' (operand types are 'std::string' {aka 'std::__cxx11::basic_string<char>'} and 'char')
10 | if(s=='a'||s=='i'||s=='u'||s=='e'||s=='o'){
| ~^~~~~
| | |
| | char
| s... |
s520034919 | p03852 | C++ | #include <iostream>
#include <string>
using namespace std;
int main(){
string s;
cin>>s;
if(s=='a'||s=='i'||s=='u'||s=='e'||s=='o'){
cout<<"vowel"<<endl;
}else
cout<<"consonant"<<endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:10:13: error: no match for 'operator==' (operand types are 'std::string' {aka 'std::__cxx11::basic_string<char>'} and 'char')
10 | if(s=='a'||s=='i'||s=='u'||s=='e'||s=='o'){
| ~^~~~~
| | |
| | char
| s... |
s717382686 | p03852 | C++ | using System;
public class Test
{
public static void Main()
{
string line;
line = Console.ReadLine();
char c = Convert.ToChar(line);
if(c == 'a'||c=='i'||c=='u'||c=='e'||c=='o'){
Console.WriteLine("vowel");
} else {
Console.WriteLine("consonant");
}
}
} | a.cc:1:7: error: expected nested-name-specifier before 'System'
1 | using System;
| ^~~~~~
a.cc:3:1: error: expected unqualified-id before 'public'
3 | public class Test
| ^~~~~~
|
s339715301 | p03852 | C++ | #include <iostream>
#include <string>
using namespace std;
int main(){
string s;
cin>>s;
if(s=='a'||s=='i'||s=='u'||s=='e'||s=='o'){
cout<<"YES"<<endl;
}else
cout<<"NO"<<endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:10:13: error: no match for 'operator==' (operand types are 'std::string' {aka 'std::__cxx11::basic_string<char>'} and 'char')
10 | if(s=='a'||s=='i'||s=='u'||s=='e'||s=='o'){
| ~^~~~~
| | |
| | char
| s... |
s983047790 | p03852 | C++ | #include <cmath>
#include <cstdio>
#include <vector>
#include <iostream>
#include <algorithm>
using namespace std;
int main() {
char s;
cin>>s;
if(s=='a'or s=='e' or s=='i' or s=='o' or s=='u' ) cout<<"vowel"<<endl;
else cout<<"consonant"<<endl;
return 0;
}
| a.cc: In function 'int main()':
a.cc:13:11: error: unable to find character literal operator 'operator""or' with 'char' argument
13 | if(s=='a'or s=='e' or s=='i' or s=='o' or s=='u' ) cout<<"vowel"<<endl;
| ^~~~~
a.cc:13:16: error: expected ')' before 's'
13 | if(s=='a'or s=='e' or s=='i'... |
s681713216 | p03852 | C++ | #include <stdio.h>
int main(){
int c;
c = getc();
switch(c){
case 'a':
case 'i':
case 'u':
case 'e':
case 'o':
printf("vowel");
break;
default:
pri... | a.cc: In function 'int main()':
a.cc:5:11: error: too few arguments to function 'int getc(FILE*)'
5 | c = getc();
| ~~~~^~
In file included from a.cc:1:
/usr/include/stdio.h:576:12: note: declared here
576 | extern int getc (FILE *__stream) __nonnull ((1));
| ^~~~
|
s521586411 | p03852 | C++ | #include <iostream>
#include <vector>
#include <array>
#include <cmath>
using namespace std;
#define ll long long
int main_()
{
// Value
string c = "";
string result;
// Input
cin >> c;
//cin>>N>>x;
//ll size = 2*N-1;
// Cal
if(c=="a" || c=="i" || c=="u" || c=="e" || c=="o"){
... | /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
|
s690562735 | p03852 | C++ | #include <iostream>
using namespace std;
int main(){
stirng c;
cin >>c;
if(c == "a")
cout <<"vowel" <<endl;
else if(c == "i")
cout <<"vowel" <<endl;
else if(c == "u")
cout <<"vowel" <<endl;
else if(c == "e")
cout <<"vowel" <<endl;
else if(c == "o")
cout <<"vowel" <<endl;
else
cout <<"consonant" <... | a.cc: In function 'int main()':
a.cc:5:9: error: 'stirng' was not declared in this scope
5 | stirng c;
| ^~~~~~
a.cc:7:15: error: 'c' was not declared in this scope
7 | cin >>c;
| ^
|
s453049971 | p03852 | Java | import java.util.Scanner;
public class Main01 {
public static void main(String[] args) {
new Main01().solve(new Scanner(System.in));
}
public void solve(Scanner sc) {
String c = sc.next();
if(c.matches("[aeiou]")) {
System.out.println("vowel");
} else {
System.out.println("consonant");
}
}
}
| Main.java:3: error: class Main01 is public, should be declared in a file named Main01.java
public class Main01 {
^
1 error
|
s451419320 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(){
char c;
cin >> c;
if(c == 'a' || c == 'i || c == 'u' || c == 'e' || c == 'o')cout << "vowel" << endl;
else cout << "consonaut" << endl;
return 0;
}
| a.cc:6:21: warning: multi-character literal with 10 characters exceeds 'int' size of 4 bytes
6 | if(c == 'a' || c == 'i || c == 'u' || c == 'e' || c == 'o')cout << "vowel" << endl;
| ^~~~~~~~~~~~~
a.cc:6:34: warning: multi-character literal with 9 characters exceeds 'int' size of 4 bytes
... |
s516902346 | p03852 | C++ | #include <ioostream>
using namespace std;
int main(){
stirng c;
cin >>c;
if(c == "a")
cout <<"vowel" <<endl;
else if(c == "i")
cout <<"vowel" <<endl;
else if(c == "u")
cout <<"vowel" <<endl;
else if(c == "e")
cout <<"vowel" <<endl;
else if(c == "o")
cout <<"vowel" <<endl;
else
cout <<"consonant" ... | a.cc:1:10: fatal error: ioostream: No such file or directory
1 | #include <ioostream>
| ^~~~~~~~~~~
compilation terminated.
|
s854816710 | p03852 | Java | import java.util.Scanner;
import java.util.ArrayList;
import java.util.HashMap;
import java.lang.Integer;
import java.lang.StringBuilder;
import java.lang.Math;
public class Main {
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
String c = in.next();
switch (c) {
case... | Main.java:26: error: reached end of file while parsing
o
^
1 error
|
s142823703 | p03852 | C++ |
1.#include <bits/stdc++.h>
2.using namespace std;
3.int main(){
4.char c;
5.cin >> c;
6.if(c == 'a' || c == 'i || c == 'u' || c == 'e' || c == 'o')cout << "vowel" << endl;
7.else cout << "consonaut" << endl;
8.return 0;
9.}
| a.cc:2:3: error: stray '#' in program
2 | 1.#include <bits/stdc++.h>
| ^
a.cc:7:23: warning: multi-character literal with 10 characters exceeds 'int' size of 4 bytes
7 | 6.if(c == 'a' || c == 'i || c == 'u' || c == 'e' || c == 'o')cout << "vowel" << endl;
| ^~~~~~~~~~~~~
a.cc... |
s646432131 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(){
char c;
cin >> c;
if(c == 'a' c == 'i || c == 'u' || c == 'e' || c == 'o')cout << "vowel" << endl;
else cout << "consonaut" << endl;
return 0;
} | a.cc:6:18: warning: multi-character literal with 10 characters exceeds 'int' size of 4 bytes
6 | if(c == 'a' c == 'i || c == 'u' || c == 'e' || c == 'o')cout << "vowel" << endl;
| ^~~~~~~~~~~~~
a.cc:6:31: warning: multi-character literal with 9 characters exceeds 'int' size of 4 bytes
6 |... |
s032669126 | p03852 | C++ | #include <bits/stdc++.h>
using namespace std;
typedef long long int ll;
inline void deBugMode() {
#ifndef ONLINE_JUDGE
freopen("debug.in", "r", stdin);
#endif // ONLINE_JUDGE
}
inline void optimizeIt() {
ios::sync_with_stdio(false);
cin.tie(NULL);
}
inline int ABS(const int &x) {
return max... | a.cc: In function 'int main()':
a.cc:34:24: error: expected ';' before '}' token
34 | cout << "vowel"
| ^
| ;
35 | } else {
| ~
|
s065286374 | p03853 | C | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
int main() {
int H, W;
string inp;
vector<string> C(H);
cin >> H >> W;
rep(i, H){
cin >> inp;
C.push_back(inp);
}
rep(i, H) {
cout << C.at(i) <... | main.c:1:10: fatal error: bits/stdc++.h: No such file or directory
1 | #include <bits/stdc++.h>
| ^~~~~~~~~~~~~~~
compilation terminated.
|
s467962210 | p03853 | C++ | #include <bits/stdc++.h>
#define PI 3.1415926535897932
#define _GLIBCXX_DEBUG
using namespace std;
int main() {
int H,W;
cin>>H>>W;
vector<string> vec(W);
for(int j=0;j<W;j++){
cin>>vec[j];
}
for(int i=0;i<H;j++){
cout<<vec[i]<<endl;
cout<<vec[i]<<endl;
}
} | a.cc: In function 'int main()':
a.cc:15:19: error: 'j' was not declared in this scope
15 | for(int i=0;i<H;j++){
| ^
|
s521659014 | p03853 | C++ | #include <bits/stdc++.h>
using namespace std;
//type
#define ll long long
typedef pair<int, int> P;
//定数
#define INF 1000000000000 //10^12:∞
#define MOD 1000000007 //10^9+7:合同式の法
#define MAXR 100000 //10^5:配列の最大のrange
//略記
#define PB push_back //挿入
#define MP make_pair //pairのコンストラクタ
#define F first //pa... | a.cc: In function 'int main()':
a.cc:107:12: error: 'H' was not declared in this scope
107 | cin >> H >> W;
| ^
a.cc:107:17: error: 'W' was not declared in this scope
107 | cin >> H >> W;
| ^
|
s140884139 | p03853 | C++ | #include<bits/stdc++.h>
using namespace std;
int main() {
int h,w;cin. >> h >> w;
for(int i = 0;i<h;i++) {
string s;cin >> s;
cout << s << "\n" << s << "\n";
}
return 0;
} | a.cc: In function 'int main()':
a.cc:4:16: error: expected unqualified-id before '>>' token
4 | int h,w;cin. >> h >> w;
| ^~
|
s540944865 | p03853 | C++ | #include<iostream>
#include<vector>
#include<string>
using namespace std;
int main(){
int a,b,i,j;
cin>>a>>b;
vector <char>c;
for(i=0;i<a;i++){
string s;
cin>>s;
... | a.cc: In function 'int main()':
a.cc:13:23: error: invalid types '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type {aka char}[int]' for array subscript
13 | c[i][j]=s[j];
| ^
a.cc:17:29: error: invalid types '__gnu_cxx::__alloc_traits<std::allocator<char... |
s777453024 | p03853 | C++ | #include<iostream>
#include<vector>
#include<string>
using namespace std;
int main(){
int a,b,i,j;
cin>>a>>b;
vector <char>c;
for(i=0;i<a;i++){
string s;
cin>>s;
for(j=0;j<b;j++0)
c[i][j]=s[j];
}... | a.cc: In function 'int main()':
a.cc:12:28: error: expected ')' before numeric constant
12 | for(j=0;j<b;j++0)
| ~ ^
| )
a.cc:12:29: error: expected ';' before ')' token
12 | for(j=0;j<b;j++0)
| ... |
s203278160 | p03853 | C++ | #include<iostream>
#include<vector>
#include<string>
using namespace std;
int main(){
int a,b,i;
cin>>a>>b;
vector <char>c;
for(i=0;i<a;i++){
string s;
cin>>s;
for(j=0;j<b;j++0)
c[i][j]=s[j];
... | a.cc: In function 'int main()':
a.cc:12:17: error: 'j' was not declared in this scope
12 | for(j=0;j<b;j++0)
| ^
a.cc:12:28: error: expected ')' before numeric constant
12 | for(j=0;j<b;j++0)
| ~ ^
| )
a.... |
s489738113 | p03853 | C++ | #include<iostream>
#include<vector>
int main(){
int a,b,i;
cin>>a>>b;
vector <char>c;
for(i=0;i<a;i++){
string s;
cin>>s;
for(j=0;j<b;j++0)
c[i][j]=s[j];
}
for(i=0;i<a;i++)
for(j=0;j<b;j++){
cout<<c[i][j];
}
cout<<endl;
for(j=0;j<b;j++){
cout<<c[i][j];
}
cout... | a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
6 | cin>>a>>b;
| ^~~
| 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 st... |
s392863920 | p03853 | C++ | #include <bits/stdc++.h>
using namespace std;
int main()
{
int a,b,i;
cin>>a>>b;
vector <char> c;
for(i=0;i<a;i++)
cin>>c;
for(i=0;i<a;i++)
cout<<c<<\n<<c;
return 0;
}
| a.cc:13:14: error: stray '\' in program
13 | cout<<c<<\n<<c;
| ^
a.cc: In function 'int main()':
a.cc:11:8: error: no match for 'operator>>' (operand types are 'std::istream' {aka 'std::basic_istream<char>'} and 'std::vector<char>')
11 | cin>>c;
| ~~~^~~
| | |
... |
s955441041 | p03853 | C++ | #include<iostream>
using namespace std;
int main()
{
int a,b,i;
cin>>a>>b;
for(i=0;i<a;i++)
string c[i];
for(i=0;i<a;i++){
cin<<c[i]<<\n<<c[i]<<endl;
}
return 0;
} | a.cc:11:28: error: stray '\' in program
11 | cin<<c[i]<<\n<<c[i]<<endl;
| ^
a.cc: In function 'int main()':
a.cc:11:22: error: 'c' was not declared in this scope
11 | cin<<c[i]<<\n<<c[i]<<endl;
| ^
a.cc:11:29: error: 'n' w... |
s112977479 | p03853 | C++ | #include<iostream>
using namespace std;
int main()
{
int a,b,i;
cin>>a>>b;
for(i=0;i<a;i++)
string c;
for(i=0;i<a;i++){
cin<<s<<\n<<s;
}
return 0;
}
| a.cc:11:25: error: stray '\' in program
11 | cin<<s<<\n<<s;
| ^
a.cc: In function 'int main()':
a.cc:11:22: error: 's' was not declared in this scope
11 | cin<<s<<\n<<s;
| ^
a.cc:11:26: error: 'n' was not declared in this sco... |
s887630482 | p03853 | C++ | #include<iostream>
using namespace std;
int main () {
int H,W;
cin >> H >> W;
char mat[H][W];
for(int i=0; i<H; i++){
for(int j=0; j<W; j++){
cin >> mat[i][j];
}
}
for(int i=0; i<H; i++){
for(int j=0; j<W; j++){
cout >> mat[i][j];
}
... | a.cc: In function 'int main()':
a.cc:16:18: error: no match for 'operator>>' (operand types are 'std::ostream' {aka 'std::basic_ostream<char>'} and 'char')
16 | cout >> mat[i][j];
| ~~~~ ^~ ~~~~~~~~~
| | |
| | char
| ... |
s383110387 | p03853 | C++ | #include<iostream>
using namespace std;
int main () {
int H, W;
int arr[H][W];
for (int i = 0; i < H; i ++){
for (int j = 0; j < W; j ++){
cin >> arr[i][j];
}
}
for (int i = 0; i < H; i ++){
for (int j = 0; j < W; j ++){
cout >> arr[i][j];
}
cout << '\n';
for (int j = 0; j... | a.cc: In function 'int main()':
a.cc:14:12: error: no match for 'operator>>' (operand types are 'std::ostream' {aka 'std::basic_ostream<char>'} and 'int')
14 | cout >> arr[i][j];
| ~~~~ ^~ ~~~~~~~~~
| | |
| | int
| std::ostream {aka st... |
s763678328 | p03853 | C++ | #include <iostream>
#include <vector>
#include <iterator>
#include <algorithm>
#include <string>
#include <map>
#include <list>
using namespace std;
int main() {
int H,W;
cin >> H >> W;
char c[H][W];
for(int i=0; i<H; ++i){
for(int j=0; j<W; ++j){
cin >> c[i][j];
}
}
char resC[2*H][W];
for... | a.cc: In function 'int main()':
a.cc:34:3: error: '\U000000e5' was not declared in this scope
34 | å
| ^
|
s361960705 | p03853 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
int h,w;
cin>>h>>w;
for(int i=0;i<h;i++){
vector<char> vec(w);
for(int =j=0;j<w;j++){
cin >> vec[j];
cout<<vec[j];
}
for(int =k=0;k<w;k++){
cout <<vec[k];
}
}
} | a.cc: In function 'int main()':
a.cc:10:13: error: expected unqualified-id before '=' token
10 | for(int =j=0;j<w;j++){
| ^
a.cc:10:12: error: expected ';' before '=' token
10 | for(int =j=0;j<w;j++){
| ^~
| ;
a.cc:10:13: error: expected primary-expressi... |
s734839841 | p03853 | C++ | #include<iostream>
using namespace std;
int main(){
int a,b;
cin>>>a>>b;
char c[105];
for(int i=0;i<a;i++){
cin>>c;
printf("%s\n%s",c,c);
}
return 0;
}
| a.cc: In function 'int main()':
a.cc:5:8: error: expected primary-expression before '>' token
5 | cin>>>a>>b;
| ^
|
s372338781 | p03853 | C++ | #include<iostream>
using namespace std;
int main(){
int a,b;
cin>>>a>>b;
string c;
for(int i=0;i<n;i++){
cin>>c;
cout<<c<<c;
}
return 0;
} | a.cc: In function 'int main()':
a.cc:5:8: error: expected primary-expression before '>' token
5 | cin>>>a>>b;
| ^
a.cc:7:17: error: 'n' was not declared in this scope
7 | for(int i=0;i<n;i++){
| ^
|
s988756835 | p03853 | C++ | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define rep(i, srt, end) for (long long i = (srt); i < (long long)(end); i++)
#define VL vector<ll>
#define VS vector<string>
int main(){
ll N, M;
cin >> N >> M;
VS s(N);
rep(i, 0, N){
cin >> s[i];
}
rep(j, 0, 2*N){
... | a.cc: In function 'int main()':
a.cc:16:19: error: 'I' was not declared in this scope
16 | cout << s[I] << endl;
| ^
|
s534815954 | p03853 | C++ | #define _GLIBCXX_DEBUG
#include <bits/stdc++.h>
using namespace std;
#define int long long
#define rep(i,n) for(int i=0;i<n;i++)
#define rep1(i,n) for(int i=1;i<=n;i++)
#define rep2(i,n) for(int i=0;i<=n;i++)
#define repr(i,a,n) for(int i=a;i<n;i++)
#define all(a) a.begin(),a.end()
#define P pair<long long,long long>
#... | a.cc: In function 'int main()':
a.cc:100:11: error: invalid types 'long long int[long long int]' for array subscript
100 | cin>>b[i][j];
| ^
|
s912204016 | p03853 | C++ | #define _GLIBCXX_DEBUG
#include <bits/stdc++.h>
using namespace std;
#define int long long
#define rep(i,n) for(int i=0;i<n;i++)
#define rep1(i,n) for(int i=1;i<=n;i++)
#define rep2(i,n) for(int i=0;i<=n;i++)
#define repr(i,a,n) for(int i=a;i<n;i++)
#define all(a) a.begin(),a.end()
#define P pair<long long,long long>
#... | a.cc: In function 'int main()':
a.cc:100:11: error: invalid types 'long long int[long long int]' for array subscript
100 | cin>>b[i][j];
| ^
a.cc:103:12: error: invalid types 'long long int[long long int]' for array subscript
103 | cout<<b[i/2][j];
| ^
|
s061319118 | p03853 | C++ | #include <bits/stdc++.h>
using namespace std;
#define pb(s) push_back(s)
#define ALL(v) v.begin(), v.end()
#define ALLA(arr, sz) arr, arr + sz
#define SORT(v) sort(ALL(v))
#define REVERSE(v) reverse(ALL(v))
#define SORTA(arr, sz) sort(ALLA(arr, sz))
#define REVERSEA(arr, sz) reverse(ALLA(arr, sz))
typedef long long l... | a.cc: In function 'int main()':
a.cc:31:19: error: 'grid' was not declared in this scope; did you mean 'grid1'?
31 | cout<<grid[i][j]<<endl;
| ^~~~
| grid1
|
s797735196 | p03853 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(){
int h,w;
cin >> h >> w;
char data[2*h][w];
for(int i=0;i<2h;i+=2){
for(int j=0;j<w;j++){
cin >> data[i][j];
data[i+1][j]=data[i][j];
}
}
for(int i=0;i<2*h;i++){
for(int j=0;j<w;j++){
cout << data[i][j];
}
cout ... | a.cc: In function 'int main()':
a.cc:8:16: error: no match for 'operator<' (operand types are 'int' and 'std::chrono::hours' {aka 'std::chrono::duration<long int, std::ratio<3600> >'})
8 | for(int i=0;i<2h;i+=2){
| ~^~~
| | |
| | std::chrono::hours {aka ... |
s823990226 | p03853 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
int h,w;
cin>>h>>w;
vector<vector<char>>c(h,vector<int>(w));
for(int i=0;i<h;i++){
for(int j=0;j<w;j++) cin>>c[i][j];
}
for(int k=0;k<2;k++){
for(int i=0;i<h;i++){
for(int j=0;j<w;j++){
cout<<c[i][j];
if(j==w-1) cout<<... | a.cc: In function 'int main()':
a.cc:7:41: error: no matching function for call to 'std::vector<std::vector<char> >::vector(int&, std::vector<int>)'
7 | vector<vector<char>>c(h,vector<int>(w));
| ^
In file included from /usr/include/c++/14/vector:66,
... |
s236497110 | p03853 | C++ | //#include <bits/stdc++.h>
#include "stdc++.h"
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define rep2(i, s, n) for (int i = s; i < (int)(n); i++)
#define chmax(a, b) a = max(a, b)
#define chmin(a, b) a = max(a, b)
#define all(x) (x).begin(), (x).end()
#define rall(x) (x).rbegin(), (x).rend()
using namespace... | a.cc:2:10: fatal error: stdc++.h: No such file or directory
2 | #include "stdc++.h"
| ^~~~~~~~~~
compilation terminated.
|
s002220592 | p03853 | C++ | 9 20
.....***....***.....
....*...*..*...*....
...*.....**.....*...
...*.....*......*...
....*.....*....*....
.....**..*...**.....
.......*..*.*.......
........**.*........
.........**......... | a.cc:1:1: error: expected unqualified-id before numeric constant
1 | 9 20
| ^
|
s882162562 | p03853 | C | 9 20
.....***....***.....
....*...*..*...*....
...*.....**.....*...
...*.....*......*...
....*.....*....*....
.....**..*...**.....
.......*..*.*.......
........**.*........
.........**......... | main.c:1:1: error: expected identifier or '(' before numeric constant
1 | 9 20
| ^
|
s476430980 | p03853 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
int H,W;
cin >> H >> W;
vector<vector<char> > vec(H,vector<int>(W));
for (int i=0; i<H; i++) {
for (int j=0; j<W; j++) {
cin >> vec.at(i).at(j);
}
}
vector<vector<char> > ve(2*H,vector<int>(W));
for (int i=0; i<2*H; i++) {
for (... | a.cc: In function 'int main()':
a.cc:7:45: error: no matching function for call to 'std::vector<std::vector<char> >::vector(int&, std::vector<int>)'
7 | vector<vector<char> > vec(H,vector<int>(W));
| ^
In file included from /usr/include/c++/14/vector:66,
... |
s208470925 | p03853 | C++ | 9 20
.....***....***.....
....*...*..*...*....
...*.....**.....*...
...*.....*......*...
....*.....*....*....
.....**..*...**.....
.......*..*.*.......
........**.*........
.........**......... | a.cc:1:1: error: expected unqualified-id before numeric constant
1 | 9 20
| ^
|
s385798471 | p03853 | C++ | h,w=map(int,input().split())
lst=[list(input()) for _ in range(h)]
lst_1=[]
for i in lst:
print(*i)
print(*i) | a.cc:1:1: error: 'h' does not name a type
1 | h,w=map(int,input().split())
| ^
|
s407368257 | p03853 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
int N,M;
cin >> N >> M;
vector<vector<char>> a(N,M);
for (int i = 0; i < N; i++) {
for (int j = 0; j < M; j++) {
cin >> a(i,j);
}
}
for (int i = 0; i < N; i++) {
for (int j = 0; j < M; j++) {
if (j == M-1) {
cout << ... | a.cc: In function 'int main()':
a.cc:7:29: error: no matching function for call to 'std::vector<std::vector<char> >::vector(int&, int&)'
7 | vector<vector<char>> a(N,M);
| ^
In file included from /usr/include/c++/14/vector:66,
from /usr/include/c++/14/functional:... |
s182344014 | p03853 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(){
char arr[200][200];
int h,w;
cin>>h>>w;
for(int i=0;i<h;i++){
for(int j=0;j<w;j++){
cin>>arr[i][j];
}
}
for(int i=0;i<h;i++){
for(int j=0;j<w;j++){
cout<<arr[i][j]<<" ";
}
co... | a.cc: In function 'int main()':
a.cc:24:15: error: expected ';' before 'return'
24 | cout<<"\n"
| ^
| ;
25 | return 0;
| ~~~~~~
|
s725294455 | p03853 | C++ | テスト
言語
ソースコード
cout << endl;
1
#include<bits/stdc++.h>
2
using namespace std;
3
int main(){
4
int h,w;
5
cin >> h >> w;
6
for(int i=0;i<h;i++){
7
vector<char>a(w);
8
for(int r=0;r<w;r++){
9
cin >> a[r];
10
cout << a[r];
11
}
12
cout << endl;
13
... | a.cc:1:1: error: '\U000030c6\U000030b9\U000030c8' does not name a type
1 | テスト
| ^~~~~~
a.cc:5:1: error: expected unqualified-id before numeric constant
5 | 1
| ^
In file included from /usr/include/c++/14/bits/stl_algobase.h:62,
from /usr/include/c++/14/algorithm:60,
... |
s290353985 | p03853 | C++ | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
int main(){
cin.tie(0);
ios::sync_with_stdio(false);
int h,w; cin>>h>>w;
vector<string> P(h);
rep(i,h) cin>>P.at(i);
rep(i,h){
cout>>P.at(i)>>endl;
cout>>P.at(i)>>endl;
}
} | a.cc: In function 'int main()':
a.cc:12:9: error: no match for 'operator>>' (operand types are 'std::ostream' {aka 'std::basic_ostream<char>'} and '__gnu_cxx::__alloc_traits<std::allocator<std::__cxx11::basic_string<char> >, std::__cxx11::basic_string<char> >::value_type' {aka 'std::__cxx11::basic_string<char>'})
12... |
s121458326 | p03853 | C++ | using namespace std;
int main()
{
int h,w;
cin>>h>>w;
char c[100][100];
for(int i=0;i<h;i++)
{
for(int j=0;j<w;j++)
{
cin>>c[i][j];
}
}
for(int i=0;i<h;i++)
{
for(int k=0;k<2;k++)
{
for(int j=0;j<w;j++)
{
... | a.cc: In function 'int main()':
a.cc:5:5: error: 'cin' was not declared in this scope
5 | cin>>h>>w;
| ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
+++ |+#include <iostream>
1 | using namespace std;
a.cc:20:13: error: ... |
s373373109 | p03853 | C++ | C:\Users\yuki\CLionProjects\untitled\cmake-build-debug\untitled.exe
9 20
.....***....***.....
....*...*..*...*....
...*.....**.....*...
...*.....*......*...
....*.....*....*....
.....**..*...**.....
.......*..*.*.......
........**.*........
.........**..............***....***.....
.....***....***.....
....*...*..*...*.... | a.cc:1:3: error: stray '\' in program
1 | C:\Users\yuki\CLionProjects\untitled\cmake-build-debug\untitled.exe
| ^
a.cc:1:9: error: stray '\' in program
1 | C:\Users\yuki\CLionProjects\untitled\cmake-build-debug\untitled.exe
| ^
a.cc:1:14: error: stray '\' in program
1 | C:\Users\yuki\C... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.