submission_id
stringlengths
10
10
problem_id
stringlengths
6
6
language
stringclasses
3 values
code
stringlengths
1
522k
compiler_output
stringlengths
43
10.2k
s199327151
p03853
C++
#include<iostream> #include<algorithm> #include<string> #include<vector> #include<cmath> //#include<bits/stdc++.h> #define int long long #define mod 1000000007 #define for0(i, n) for(int i = 0; i < (n); i++) #define for1(i, n) for(int i = 1; i <= (n);i++) #define mp make_pair #define all(x) x.begin(),x.end() using name...
a.cc: In function 'int main()': a.cc:18:23: error: no match for 'operator<<' (operand types are 'std::istream' {aka 'std::basic_istream<char>'} and 'std::string' {aka 'std::__cxx11::basic_string<char>'}) 18 | for0(p, j)cin << s[p] << endl << s[p] << endl; | ~~~ ^~ ~~~~ | ...
s618136539
p03853
C++
#include<iostream> #include<algorithm> #include<string> #include<vector> #include<cmath> //#include<bits/stdc++.h> #define int long long #define mod 1000000007 #define for0(i, n) for(int i = 0; i < (n); i++) #define for1(i, n) for(int i = 1; i <= (n);i++) #define mp make_pair #define all(x) x.begin(),x.end() using name...
a.cc: In function 'int main()': a.cc:18:24: error: no match for 'operator>>' (operand types are 'std::ostream' {aka 'std::basic_ostream<char>'} and 'std::string' {aka 'std::__cxx11::basic_string<char>'}) 18 | for0(p, j)cout >> s[p] >> endl >> s[p] >> endl; | ~~~~ ^~ ~~~~ | ...
s667764946
p03853
C++
#include<iostream> #include<algorithm> #include<string> #include<vector> #include<cmath> //#include<bits/stdc++.h> #define int long long #define mod 1000000007 #define for0(i, n) for(int i = 0; i < (n); i++) #define for1(i, n) for(int i = 1; i <= (n);i++) #define mp make_pair #define all(x) x.begin(),x.end() using name...
a.cc: In function 'int main()': a.cc:18:31: error: no match for 'operator>>' (operand types are 'std::basic_istream<char>' and '<unresolved overloaded function type>') 18 | for0(p, j)cin >> s[p] >> endl >> s[p] >> endl; | ~~~~~~~~~~~~^~~~~~~ In file included from /usr/include/c++/14/i...
s255839450
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: ...
s977969216
p03853
C++
#include<iostream> using namespace std; int main(){ int H,W; cin << H; cin << W; string C[H*W]; for(int i = 0; i < H*W; i++){ cin << C[i]; } for(int i = 0; i < H; i++){ for(int j = 0; j < W; j++){ cout << C[i * W + j]; } cout << "\n"; for(int j = 0; j < W; j++){ cout << C[...
a.cc: In function 'int main()': a.cc:6:7: error: no match for 'operator<<' (operand types are 'std::istream' {aka 'std::basic_istream<char>'} and 'int') 6 | cin << H; | ~~~ ^~ ~ | | | | | int | std::istream {aka std::basic_istream<char>} a.cc:6:7: note: candidate: 'operat...
s171796051
p03853
C++
#include <bits/stdc++.h> using namespace std; int main() { int h,w; cin >> h >> w; char c[w][h]; char d[w*2][h]; for(int i=0;i<w;i++){ for(int j=0;j<h;j++){ cin >> c[i][j]; d[2*i][j]=s[i][j]; d[2*i+1][j]=s[i][j]; } } for(int i=0;i<2*w;i++)...
a.cc: In function 'int main()': a.cc:12:23: error: 's' was not declared in this scope 12 | d[2*i][j]=s[i][j]; | ^
s339108978
p03853
C++
#include <iostream> using namespace std; int H, W; char C[101][101]; int main() { cin >> H >> W; for (int i = 1; i <= H; i++) { for (int j = 1; j <= W; j++) { cin >> C[i][j]; } } for (int i = 1; i <= 2 * H; i++) { for (int j = 1; j <= W; j++) ...
a.cc: In function 'int main()': a.cc:20:21: error: 'ceil' was not declared in this scope 20 | int m = ceil((i + 1) / 2); | ^~~~
s308760079
p03853
C++
#include<iostream> #include<string> using namespace std; int main(){ int h,w,i; cin >> h >> w; string c; for (i=0,i<h,i++) { cin >> c; cout << c << endl; cout << c << endl; } return 0; }
a.cc: In function 'int main()': a.cc:8:19: error: expected ';' before ')' token 8 | for (i=0,i<h,i++) { | ^ | ; a.cc:13:3: error: expected primary-expression before 'return' 13 | return 0; | ^~~~~~ a.cc:12:4: error: expected ';' before 'return' 12 | ...
s349796197
p03853
C++
#include<iostream> #include<string> using namespace std; int main(){ int h,w,i; cin >> h >> w; string c; for (i=0,i<h,i++) { cin >> c; cout << c << endl; cout << c << endl; } return 0; }
a.cc: In function 'int main()': a.cc:8:19: error: expected ';' before ')' token 8 | for (i=0,i<h,i++) { | ^ | ; a.cc:13:3: error: expected primary-expression before 'return' 13 | return 0; | ^~~~~~ a.cc:12:4: error: expected ';' before 'return' 12 | ...
s880980016
p03853
C++
#include<iostream> #include<string> using nammespace std; int main(){ int h,w,i; cin >> h >> w; string c; for (i=0,i<h,i++) { cin >> c; cout << c << endl; cout << c << endl; } return 0; }
a.cc:3:7: error: expected nested-name-specifier before 'nammespace' 3 | using nammespace std; | ^~~~~~~~~~ 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 >> h >> w; | ^~~ | std::cin In file included from a.cc:...
s761789250
p03853
C++
#include <bits/stdc++.h> #include <stdlib.h> using namespace std; typedef long long ll; int main() { int a,b; cin>>a>>b; string s[1000]; for(int i=0;i<a;i++) cin>>s[i]>>endl; for(int i=0;i<a;i++){ cout<<s[i]<<endl; cout<<s[i]<<endl; } return 0; }
a.cc: In function 'int main()': a.cc:10:33: error: no match for 'operator>>' (operand types are 'std::basic_istream<char>' and '<unresolved overloaded function type>') 10 | for(int i=0;i<a;i++) cin>>s[i]>>endl; | ~~~~~~~~~^~~~~~ In file included from /usr/include/c++/14/sstream:40, ...
s186341555
p03853
Java
public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int hight = sc.nextInt(); int wide = sc.nextInt(); for (int i = 0; i < hight; i++) { String output = sc.next(); System.out.print("\n" + output); System.out.print("\n" + output); } sc.close(); } }
Main.java:4: error: cannot find symbol Scanner sc = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:4: error: cannot find symbol Scanner sc = new Scanner(System.in); ^ symbol: class Scanner location: class Main 2 errors
s232593926
p03853
C++
#include <bits/stdc++.h> using namespace std; int main() { long long a,b; char s[101]; cin >> a >> b; for (int i = 1; i <= b; i++) { cin >> s; put(s); put(s); } return 0; }
a.cc: In function 'int main()': a.cc:11:25: error: 'put' was not declared in this scope; did you mean 'putw'? 11 | put(s); | ^~~ | putw
s385960079
p03853
C++
#include<bits/stdc++.h> using namespace std; int main(){ int h,w; cin >> h >> w; char buf[101]; for(int i=0;i<h;i++){ cin >> buf; cout << buf << endl; cout << buf << endl; }
a.cc: In function 'int main()': a.cc:12:2: error: expected '}' at end of input 12 | } | ^ a.cc:4:11: note: to match this '{' 4 | int main(){ | ^
s506597241
p03853
C++
#include <bits/stdc++.h> using namespace std; int main() { int H,W; cin>>H>>W>>endl; for(int i=0;i<H;i++){ string s; getline(cin,s); cout<<s<<endl;} }
a.cc: In function 'int main()': a.cc:6:10: error: no match for 'operator>>' (operand types are 'std::basic_istream<char>::__istream_type' {aka 'std::basic_istream<char>'} and '<unresolved overloaded function type>') 6 | cin>>H>>W>>endl; | ~~~~~~~~~^~~~~~ In file included from /usr/include/c++/14/sstream:40, ...
s730395704
p03853
C++
#include <bits/stdc++.h> #include <math.h> #define rep(i, n) for(int64_t i = 0; i < n; ++i) using namespace std; int main() { int h, w; cin >> h >> w; vector<string> v(n); rep(i, h) cin >> v[i]; rep(i, h) cout << v[i] << endl << v[i] << endl; return 0; }
a.cc: In function 'int main()': a.cc:9:20: error: 'n' was not declared in this scope 9 | vector<string> v(n); | ^
s963739596
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<<endl; cout<<s<<endll; } }
a.cc: In function 'int main()': a.cc:11:14: error: 'endll' was not declared in this scope 11 | cout<<s<<endll; | ^~~~~
s690295226
p03853
C++
#include <iostream> #include <cstdio> #include <cstring> #include <vector> #include <algorithm> using namespace std; int h, w; vector<string> mat; int main() { cin>>h>>w; mat.clear(); mat2.clear(); for (int i = 0; i < h; ++i) { string s; cin>>s; mat.push_back(s); } for (int i = 1; i <= 2 * h; ++i...
a.cc: In function 'int main()': a.cc:12:3: error: 'mat2' was not declared in this scope; did you mean 'mat'? 12 | mat2.clear(); | ^~~~ | mat
s031556022
p03853
Java
import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int H = sc.nextInt(); int W = sc.nextInt(); char[][] ccc = new char[H][W]; for(int i =0;i<N;i++) { ccc[i] = sc.next().toCharArray(); } for(int i=0;i<N;i++) { System...
Main.java:9: error: cannot find symbol for(int i =0;i<N;i++) ^ symbol: variable N location: class Main Main.java:13: error: cannot find symbol for(int i=0;i<N;i++) ^ symbol: variable N location: class Main 2 errors
s180958110
p03853
Java
import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int H = sc.nextInt(); int W = sc.nextInt(); char[][] ccc = new char[H][W]; for(int i =0;i<N;i++) { char[i] = sc.next().toCharArray(); } for(int i=0;i<N;i++) { Syste...
Main.java:11: error: ']' expected char[i] = sc.next().toCharArray(); ^ Main.java:11: error: ';' expected char[i] = sc.next().toCharArray(); ^ Main.java:15: error: ']' expected System.out.println(char[i].toString()); ^ Main.java:15: error: ';' expected ...
s950402745
p03853
C
#include<stdio.h> #include<stdlib.h> struct n{ char s[101]; } int main(){ int a,b; scanf("%d %d",&a,&b); struct n c[a]; for(int i=0; i<a; i++){ scanf("%s",c[i].s); } for(int i=0; i<a; i++){ printf("%s\n%s\n",c[i].s,c[i].s); } return 0;}
main.c:6:1: error: expected ';', identifier or '(' before 'int' 6 | int main(){ | ^~~
s929654477
p03853
C++
#include <iostream> #include <cstring> #define MOD 1000000007 using namespace std; int n; int main(void){ ios_base::sync_with_stdio(false); cin.tie(0); cout.tie(0); cin>>h>>w; for (int i = 0; i < h; ++i){ string arr=''; cin>>arr; cout<<arr<<endl<<arr<<endl; } return 0; }
a.cc:14:28: error: empty character constant 14 | string arr=''; | ^~ a.cc: In function 'int main()': a.cc:12:14: error: 'h' was not declared in this scope 12 | cin>>h>>w; | ^ a.cc:12:17: error: 'w' was not declared in this scope 12 | ...
s002035943
p03853
C++
#include<bits/stdc++.h> using namespace std; int main() { int h,w; cin>>h>>w; string s[1000]; for(int i=1;i<=h;i++){ cin>>s[i]; } for(int j=1;j<=h;j++){ cout<<s[i]<<endl<<s[i]<<endl; } return 0; }
a.cc: In function 'int main()': a.cc:12:25: error: 'i' was not declared in this scope 12 | cout<<s[i]<<endl<<s[i]<<endl; | ^
s545996834
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 a; cin >> a; cout << a << endl; cout << a << endl; } }
a.cc: In function 'int main()': a.cc:7:22: error: expected ';' before ')' token 7 | for(int i=0;i<h,i++){ | ^ | ;
s030433654
p03853
Java
import java.util.*; class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int H = sc.nextInt(); int W = sc.nextInt(); String pix[][] = new String[H][W]; for(int i = 0;i < H;i++){ for(int j = 0;j < W;j++){ pix[i][j] = sc.next(); } } f...
Main.java:25: error: cannot find symbol System.out.print(pix[k][l]); ^ symbol: variable l location: class Main Main.java:27: error: cannot find symbol System.out.println(pix[k][l]); ^ symbol: variable l location: class...
s997746423
p03853
Java
import java.util.*; class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int H = sc.nextInt(); int W = sc.nextInt(); String pix[][] = new String[H][W]; for(int i = 0;i < H;i++){ for(int j = 0;j < W;j++){ pix[i][j] = sc.next(); } } f...
Main.java:24: error: cannot find symbol if(l != W -1){ ^ symbol: variable l location: class Main Main.java:25: error: cannot find symbol System.out.print(pix[k][l]); ^ symbol: variable l location: class Main Main.java:27: error: cannot find symb...
s664772810
p03853
C++
#include <iostream> #include <algorithm> #include <vector> #include <cmath> #include <string> using namespace std; typedef long long ll; typedef pair<int, int> pii; const int mod = 1000000007; int main() { ios::sync_with_stdio(false); int n, m; string s; cin >> n >> m; while (n--) cin >> s, cout <<...
a.cc: In function 'int main()': a.cc:16:57: error: expected ';' before '}' token 16 | while (n--) cin >> s, cout << s << '\n' << s << '\n' | ^ | ; 17 | } | ~ ...
s480428533
p03853
C++
#include <bits/stdc++.h> using namespace std; int main() { int h,w; cin >> h >> w; vector<vector<char>> a(h,vector<char>(w)); for(int i=0;i<h;i++){ for(int j=0;j<w;j++){ cin >> a.at(h).at(w); } } for(int i=0;i<2*h;i++){ for(int j=0;i<w;j++){ cout << a.at(i/2).at(j); } cout...
a.cc: In function 'int main()': a.cc:17:13: error: expected primary-expression before '<<' token 17 | cout << << endl; | ^~ a.cc:19:12: error: expected primary-expression before '<<' token 19 | cout << << endl; | ^~
s163036936
p03853
C++
H,W = map(int,input().split()) listA =[] while True: try: listA.append(list(map(str,input().split()))) except: break; for i in range(0,2*H): for j in range(0,W): if j == W-1: print(listA[i//2][0][j]) else: print(listA[i//2][0][j],end="")
a.cc:1:1: error: 'H' does not name a type 1 | H,W = map(int,input().split()) | ^ a.cc:8:1: error: expected unqualified-id before 'for' 8 | for i in range(0,2*H): | ^~~
s581363341
p03853
C++
#include<iostream> #include<cstdio> #include<cmath> #include<string> #include<cstring> #include<algorithm> using namespace std; string gay; int n,m; int main() { cin<>>n>>m; for(int i=1; i<=n; i++) { cin>>gay; cout<<gay<<gay; } return 0; }
a.cc: In function 'int main()': a.cc:12:13: error: expected primary-expression before '>>' token 12 | cin<>>n>>m; | ^~
s522599370
p03853
C++
#include<iostream> #include<cstdio> #include<cmath> #include<string> #include<cstring> #include<algorithm> using namespace std; string gay; int n,m; int main() { cin<>>n>>m; for(int i=1; i<=n; i++) { cin>>gay; cout<<gay<<emdl<<gay<<endl; } return 0; }
a.cc: In function 'int main()': a.cc:12:13: error: expected primary-expression before '>>' token 12 | cin<>>n>>m; | ^~ a.cc:16:24: error: 'emdl' was not declared in this scope 16 | cout<<gay<<emdl<<gay<<endl; | ^~~~
s839759694
p03853
C++
#include <bits/stdc++.h> using namespace std; int main() { int h, w; cin >> h >> w; vector<string> org(h); rep(i, h) { cin >> org[i]; } rep(i, h) { cout << org[i] << endl; cout << org[i] << endl; } return 0; }
a.cc: In function 'int main()': a.cc:8:7: error: 'i' was not declared in this scope 8 | rep(i, h) { | ^ a.cc:8:3: error: 'rep' was not declared in this scope 8 | rep(i, h) { | ^~~
s345585823
p03853
C++
#include <bits/stdc++.h> using namespace std; int main(){ int a, b; cin >> a >> b ; string s[a]; for(int i =0;i<a;i++) cin >> s[i] ; for(int i =0;i<a;i++) cout <<s[i]<<endl; cout <<s[i]<<endl ; }
a.cc: In function 'int main()': a.cc:17:16: error: 'i' was not declared in this scope 17 | cout <<s[i]<<endl ; | ^
s284597707
p03853
C++
#include<bits/stdc++.h> using namespace std; int n, m; string s; int main(void){ cin>>n>>m; for(int i=1;i<=n;i++){ cin>>a; cout<<a<<"\n"<<a<<endl; } }
a.cc: In function 'int main()': a.cc:8:14: error: 'a' was not declared in this scope 8 | cin>>a; | ^
s332044545
p03853
C++
#include <iostream> #include <vector> using namespace std; int H, W; int main(){ cin >> H >> W; vector<vector<char>> P(H,vector<char> (W,'x')); for(int i = 0; i < H; i++){ for(int j = 0; j < W; j++){ cin >> P[i][j]; } } for(int i = 0; i < 2 * H; i++){ for(int j = 0; j < W; j++){ ...
a.cc: In function 'int main()': a.cc:21:12: error: no match for 'operator>>' (operand types are 'std::ostream' {aka 'std::basic_ostream<char>'} and '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'}) 21 | cout >> P[(i+1)/2][j]; a.cc:21:12: note: candidate: 'operator>>(int, int)' (...
s328592251
p03853
C
#include<stdio.h> int main(){ int h,w; char a[h][w]; scanf("%d %d",&h,&w); for(int i=0;i<h;i++){ for(int o=0;o<w;o++){ scanf("%c",&a[i][o]); } } for(int i=0;i<h;i++){ for(int o=0;o<w;o++){ printf("%c",a[i][o]); } ptintf("\n"); for(int o=0;o<w;o++){ printf("%c",a[i][...
main.c: In function 'main': main.c:15:5: error: implicit declaration of function 'ptintf'; did you mean 'printf'? [-Wimplicit-function-declaration] 15 | ptintf("\n"); | ^~~~~~ | printf
s221553123
p03853
C
#include<stdio.h> int main(){ int h,w; char a[h][w]; scanf("%d %d",&h,&w); for(int i=0;i<h;i++){ for(int o=0;o<w;o++){ scanf("%c",a[i][o]); } } for(int i=0;i<h;i++){ for(int o=0;o<w;o++){ printf("%c",&a[i][o]); } ptintf("\n"); for(int o=0;o<w;o++){ printf("%c",&a[i]...
main.c: In function 'main': main.c:15:5: error: implicit declaration of function 'ptintf'; did you mean 'printf'? [-Wimplicit-function-declaration] 15 | ptintf("\n"); | ^~~~~~ | printf
s009435015
p03853
C
#include<stdio.h> int main(){ int h,w; char a[h][w] scanf("%d %d",&h,&w); for(int i=0;i<h;i++){ for(int o=0;o<w;o++){ scanf("%c",a[i][o]); } } for(int i=0;i<h;i++){ for(int o=0;o<w;o++){ printf("%c",&a[i][o]); } ptintf("\n"); for(int o=0;o<w;o++){ printf("%c",&a[i][...
main.c: In function 'main': main.c:5:3: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'scanf' 5 | scanf("%d %d",&h,&w); | ^~~~~ main.c:8:18: error: 'a' undeclared (first use in this function) 8 | scanf("%c",a[i][o]); | ^ main.c:8:18: note: each undeclared ...
s553257891
p03853
C
#inlcude<stdio.h> int main(){ int h,w; char a[h][w] scanf("%d %d",&h,&w); for(int i=0;i<h;i++){ for(int o=0;o<w;o++){ scanf("%c",a[i][o]); } } for(int i=0;i<h;i++){ for(int o=0;o<w;o++){ printf("%c",&a[i][o]); } ptintf("\n"); for(int o=0;o<w;o++){ printf("%c",&a[i][...
main.c:1:2: error: invalid preprocessing directive #inlcude; did you mean #include? 1 | #inlcude<stdio.h> | ^~~~~~~ | include main.c: In function 'main': main.c:5:3: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'scanf' 5 | scanf("%d %d",&h,&w); | ^~~~~ main.c:5:3: error...
s915531764
p03853
C
#inlcude<stdio.h> int main(){ int h,w; char a[h][w] scanf("%d%d",&h,&w); for(int i=0;i<h;i++){ for(int o=0;o<w;o++){ scanf("%c",a[i][o]); } } for(int i=0;i<h;i++){ for(int o=0;o<w;o++){ printf("%c",&a[i][o]); } ptintf("\n"); for(int o=0;o<w;o++){ printf("%c",&a[i][o...
main.c:1:2: error: invalid preprocessing directive #inlcude; did you mean #include? 1 | #inlcude<stdio.h> | ^~~~~~~ | include main.c: In function 'main': main.c:5:3: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'scanf' 5 | scanf("%d%d",&h,&w); | ^~~~~ main.c:5:3: error:...
s223629131
p03853
C++
// --------------------<optimizations>-------------------- #pragma GCC optimize("O3") //(UNCOMMENT WHEN HAVING LOTS OF RECURSIONS)\ #pragma comment(linker, "/stack:200000000") //(UNCOMMENT WHEN TRYING TO BRUTEFORCE WITH A LOT OF LOOPS)\ #pragma GCC optimize("unroll-loops") #include<bits/stdc++.h> using namespace std; ...
a.cc: In function 'int main()': a.cc:53:13: error: 'i' was not declared in this scope 53 | for(i=0; i<h; i++){ | ^
s510566296
p03853
C++
//ABC049 #include<bits/stdc++.h> using namespace std; int main(){ int h,w; cin >> h >> w; vector<vector<int>> a(h,vector<int>(w)); vector<vector<int>> ans(h*2,vector<int>(w)); for(int i=0; i<h; i++){ for(inr j=0; j<w; j++){ cin >> a[h][w]; } } for(int i=0; i<h; i++){ for(inr j=0; j<w...
a.cc: In function 'int main()': a.cc:12:9: error: 'inr' was not declared in this scope; did you mean 'int'? 12 | for(inr j=0; j<w; j++){ | ^~~ | int a.cc:12:18: error: 'j' was not declared in this scope 12 | for(inr j=0; j<w; j++){ | ^ a.cc:17:9: error: '...
s958814720
p03853
C++
#include<bits/stdc++.h> using namespace std; #define ALL(v) (v).begin(),(v).end() #define REP(i,p,n) for(int i=p;i<(int)(n);++i) #define rep(i,n) REP(i,0,n) #define SZ(x) ((int)(x).size()) #define debug(x) cerr << #x << ": " << x << '\n' #define INF 999999999 typedef long long int Int; typedef pair<int,int> P; using ll...
a.cc: In function 'int main()': a.cc:16:7: error: expected unqualified-id before numeric constant 16 | rep(0,h){ | ^ a.cc:4:28: note: in definition of macro 'REP' 4 | #define REP(i,p,n) for(int i=p;i<(int)(n);++i) | ^ a.cc:16:3: note: in expansion of macro 'rep' ...
s649028447
p03853
C++
#include <bits/stdc++.h> #define REP(i, n) for (int (i) = 0; (i) < (int)(n); i++) #define FOR(i, a, b) for(int (i) = a; (i) < (int)b; i++) #define RREP(i, n) for(int (i)=((int)(n)-1); (i)>=0; i--) #define RFOR(i, a, b) for(int (i) =((int)(b)-1); (i)>=(int)a; i--) #define ALL(v) (v).begin(),(v).end() #define MOD 100000...
a.cc: In function 'int main()': a.cc:28:22: error: no match for 'operator>>' (operand types are 'std::basic_istream<char>' and '<unresolved overloaded function type>') 28 | cin >> str.at(i) >>endl ; | ~~~~~~~~~~~~~~~~~^~~~~~ In file included from /usr/include/c++/14/sstream:40, from /u...
s198506639
p03853
C++
#include <bits/stdc++.h> using namespace std; int main() { int h,w; cin>>h>>w; string art[h]; for(int i=0;i<h;i++){ cin>>art[i]; } for(int i=0;i<2h;i++){ cout<<art[i]<<endl<<art[i]<<endl; } }
a.cc: In function 'int main()': a.cc:11:16: error: no match for 'operator<' (operand types are 'int' and 'std::chrono::hours' {aka 'std::chrono::duration<long int, std::ratio<3600> >'}) 11 | for(int i=0;i<2h;i++){ | ~^~~ | | | | | std::chrono::hours {aka ...
s581262762
p03853
C++
#include<bits/stdc++.h> using namespace std; int h, w; int main () { cin >> h >> w; vector<vector<char>> c(h, vector<char>(w)) 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 j = 0; j < w; j++){ cout << c[i][j...
a.cc: In function 'int main()': a.cc:10:3: error: expected ',' or ';' before 'for' 10 | for (int i = 0; i < h; i++){ | ^~~ a.cc:10:19: error: 'i' was not declared in this scope 10 | for (int i = 0; i < h; i++){ | ^
s210274965
p03853
C++
#include<bits/stdc++.h> using namespace std; int h, w; vector<vector<char>> c(h, vector<char>(w)) int main () { cin >> h >> w; 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 j = 0; j < w; j++){ cout << c[i][j] << en...
a.cc:7:1: error: expected ',' or ';' before 'int' 7 | int main () { | ^~~
s380145557
p03853
C++
#include<bits/stdc++.h> using namespace std; int h, w; vector<vector<char>> c(h, vector<char>(w)) int main () { cin >> h >> w; 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 j = 0; j < w; j++){ cout << c[i][j] << en...
a.cc:7:1: error: expected ',' or ';' before 'int' 7 | int main () { | ^~~
s385451889
p03853
C++
#include<bits/stdc++.h> using namespace std; int h, w; vector<vector<char>> c(h, vector<char>(w)) int main () { cin >> h >> w; 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 j = 0; j < w; j++){ cout << c[i][j] << en...
a.cc:7:1: error: expected ',' or ';' before 'int' 7 | int main () { | ^~~
s256285129
p03853
C++
#include<bits/stdc++.h> using namespace std; int h, w; vector<vector<char>> c(h, vector<char>(w)) int main () { 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 j = 0; j < w; j++){ cout << c[i][j] << endl; } for...
a.cc:7:1: error: expected ',' or ';' before 'int' 7 | int main () { | ^~~
s668441227
p03853
C++
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for(int i=0;i<(int)(n);i++) #define rrep(i, n) for(int i=((int)(n));i>0;i--) #define FOR(i, m, n) for(int i = m; i < n; i++) #define SORT(c) sort((c).begin(),(c).end()) #define REVERSE(c) reverse((c).begin(),(c).end()) #define REVSORT(c) SORT(c);REVERSE(c...
a.cc: In function 'int main()': a.cc:23:16: error: 'N' was not declared in this scope 23 | rep(i, N){ | ^ a.cc:3:39: note: in definition of macro 'rep' 3 | #define rep(i, n) for(int i=0;i<(int)(n);i++) | ^
s939368065
p03853
C++
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for(int i=0;i<(int)(n);i++) #define rrep(i, n) for(int i=((int)(n));i>0;i--) #define FOR(i, m, n) for(int i = m; i < n; i++) #define SORT(c) sort((c).begin(),(c).end()) #define REVERSE(c) reverse((c).begin(),(c).end()) #define REVSORT(c) SORT(c);REVERSE(c...
a.cc: In function 'int main()': a.cc:25:16: error: 'N' was not declared in this scope 25 | rep(i, N){ | ^ a.cc:3:39: note: in definition of macro 'rep' 3 | #define rep(i, n) for(int i=0;i<(int)(n);i++) | ^
s887736142
p03853
C++
#include<bits/stdc++.h> using namespace std; #define rep(i,n) for(int i=0; i<n; i++); int main(){ int H, W; cin >> H >> W; vector<vector<int>> C(H, vector<int>(W, 0)); rep(i, H){ rep(j, W){ cin >> C[i][j]; } } rep(i, H){ rep(j ,W) cout << C[2*i]; cout << ...
a.cc: In function 'int main()': a.cc:9:22: error: 'i' was not declared in this scope 9 | cin >> C[i][j]; | ^ a.cc:9:25: error: 'j' was not declared in this scope 9 | cin >> C[i][j]; | ^ a.cc:14:31: error: 'i' was not declared in th...
s494200882
p03853
C++
#include <bits/stdc++.h> #define int long long #define rep(i,n) for(int i=0;i<n;i++) #define all(a) a.begin(),a.end() #define P pair<long long,long long> #define double long double using namespace std; signed main(){ int a,b; cin>>a>>b; vector<vector<int>> c(a,vector<int>(b)); rep(i,a){ rep(j,b) cin>>...
a.cc: In function 'int main()': a.cc:17:7: error: no match for 'operator<<' (operand types are 'std::ostream' {aka 'std::basic_ostream<char>'} and '__gnu_cxx::__alloc_traits<std::allocator<std::vector<long long int> >, std::vector<long long int> >::value_type' {aka 'std::vector<long long int>'}) 17 | cout<<c.at(i)...
s918228252
p03853
C++
#include <iostream> #include <string> using namespace std; int main() { int h, w; cin >> h >> w; string s[h]; for(int i=0; i<n; i++) cin >> s[i]; for(int i=0; i<n; i++) cout << s[i] << endl; return 0; }
a.cc: In function 'int main()': a.cc:9:20: error: 'n' was not declared in this scope 9 | for(int i=0; i<n; i++) cin >> s[i]; | ^ a.cc:10:20: error: 'n' was not declared in this scope 10 | for(int i=0; i<n; i++) cout << s[i] << endl; | ^
s777272804
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++) #define rep1(i,n) for(int i=1;i<(int)(n);i++) #define fs first #define sc second typedef pair<ll, ll> l_l; #define EPS (1e-7) #define INF (1e9) #define PI (acos(-1)) int main(){ int h,w; cin>>h>>w; vec...
a.cc: In function 'int main()': a.cc:22:7: error: no match for 'operator<<' (operand types are 'std::ostream' {aka 'std::basic_ostream<char>'} and 'std::vector<std::vector<char> >') 22 | cout<<a<<endl; | ~~~~^~~ | | | | | std::vector<std::vector<char> > | std::ostream {aka s...
s499093459
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++) #define rep1(i,n) for(int i=1;i<(int)(n);i++) #define fs first #define sc second typedef pair<ll, ll> l_l; #define EPS (1e-7) #define INF (1e9) #define PI (acos(-1)) int main(){ int h,w; cin>>h>>w; vec...
a.cc: In function 'int main()': a.cc:22:8: error: no match for 'operator<<' (operand types are 'std::ostream' {aka 'std::basic_ostream<char>'} and 'std::vector<std::vector<char> >') 22 | cout<<a<<endl<<a<<endl; | ~~~~^~~ | | | | | std::vector<std::vector<char> > | std::...
s093456332
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++) #define rep1(i,n) for(int i=1;i<(int)(n);i++) #define fs first #define sc second typedef pair<ll, ll> l_l; #define EPS (1e-7) #define INF (1e9) #define PI (acos(-1)) int main(){ char a[h][w]; rep(i,h){ ...
a.cc: In function 'int main()': a.cc:14:10: error: 'h' was not declared in this scope 14 | char a[h][w]; | ^ a.cc:14:13: error: 'w' was not declared in this scope 14 | char a[h][w]; | ^ a.cc:17:12: error: 'a' was not declared in this scope 17 | cin>>a[i][j]; | ...
s373584806
p03853
C++
#include<iostream> #include<string> using namespace std; int main(){ int n,m; string a[101]; cin>>n>>m; for(int i=1;i<=n;i++){ cin>>a; cout<<a<<endl; cout<<a<<endl; } return 0; }
a.cc: In function 'int main()': a.cc:9:12: error: no match for 'operator>>' (operand types are 'std::istream' {aka 'std::basic_istream<char>'} and 'std::string [101]' {aka 'std::__cxx11::basic_string<char> [101]'}) 9 | cin>>a; | ~~~^~~ | | | | | std::string [1...
s333195977
p03853
C++
#include<iostream> #include<string using namespace std; int main(){ int n,m; string a[101]; cin>>n>>m; for(int i=1;i<=n;i++){ cin>>a; cout<<a<<endl; cout<<a<<endl; } return 0; }
a.cc:2:16: error: missing terminating > character 2 | #include<string | ^ a.cc: In function 'int main()': a.cc:9:12: error: no match for 'operator>>' (operand types are 'std::istream' {aka 'std::basic_istream<char>'} and 'std::string [101]' {aka 'std::__cxx11::basic_string<char> [101]'}) 9 ...
s831882977
p03853
C++
#include<iostream> #include<string using namespace std; int main(){ int n,m; string a[101]; cin>>n>>m; for(int i=1;i<=n;i++){ cin>>a; cout<<a<<endl; cout<<a<<endl; } return 0; }
a.cc:2:16: error: missing terminating > character 2 | #include<string | ^ a.cc: In function 'int main()': a.cc:9:12: error: no match for 'operator>>' (operand types are 'std::istream' {aka 'std::basic_istream<char>'} and 'std::string [101]' {aka 'std::__cxx11::basic_string<char> [101]'}) 9 ...
s926032278
p03853
C++
#include<iostream> #include<algorithm> #include<queue> #include<windows.h> #include<cstdio> #include<stdio.h> #include<cmath> #include<math.h> #include<cstring> #include<string> using namespace std; int main(){ int n,m; char a[101]; cin>>n>>m; for(int i=1;i<=n;i++){ cin>>a; puts(a); ...
a.cc:4:9: fatal error: windows.h: No such file or directory 4 | #include<windows.h> | ^~~~~~~~~~~ compilation terminated.
s364625191
p03853
C++
#include<bits/stdc++.h> using namespace std; int main(){ int H,W; cin>>H>>W; vector<vector<char>> vvc; vvc=vector<vector<char>>(H,W,'c'); for(int i=0;i<H;i++){ for(int j=0;j<W;j++){ cin>>vvc[i][j]; } } for(int i=0;i<H;i++){ for(int j=0;j<2;j++){ for(int k=0;k<W;k++){ cout<<...
a.cc: In function 'int main()': a.cc:7:35: error: no matching function for call to 'std::vector<std::vector<char> >::vector(int&, int&, char)' 7 | vvc=vector<vector<char>>(H,W,'c'); | ^ In file included from /usr/include/c++/14/vector:66, from /usr/include/...
s791932795
p03853
C++
#include<bits/stdc++.h> using namespace std; int main(){ int H,W; cin>>H>>W; vector<vector<char>> vvc(H,W); for(int i=0;i<H;i++){ for(int j=0;j<W;j++){ cin>>vvc[i][j]; } } for(int i=0;i<H;i++){ for(int j=0;j<2;j++){ for(int k=0;k<W;k++){ cout<<vvc[i][k]; } cout...
a.cc: In function 'int main()': a.cc:6:31: error: no matching function for call to 'std::vector<std::vector<char> >::vector(int&, int&)' 6 | vector<vector<char>> vvc(H,W); | ^ In file included from /usr/include/c++/14/vector:66, from /usr/include/c++/14/functio...
s012649234
p03853
C++
#include<bits/stdc++.h> using namespace std; int main(){ int H,W; cin>>H>>W; vector<vector<char>> vvc; vvc=vector<vector<char>>(H,vector<char>(W)); for(int i=0;i<H;i++){ for(int j=0;j<W;j++){ cin>>vvc.at(i).at(j); } } for(int i=0;i<H;i++){ for(int j=0;j<2;j++){ for(int k=0;k<W;k++)...
a.cc: In function 'int main()': a.cc:20:4: error: expected '}' at end of input 20 | } | ^ a.cc:3:11: note: to match this '{' 3 | int main(){ | ^
s896957145
p03853
C++
#include<bits/stdc++.h> using namespace std; int main(){ int H,W; cin>>H>>W; vector<vector<char>> vvc; vvc=vector<vector<char>>(H,vector<char>(W)); for(int i=0;i<H;i++){ for(int j=0;j<W;j++){ cin>>vvc.at(i).at(j); } int j=0; } for(int i=0;i<H;i++){ do{cout<<vvc.at(i).at(j); j++;...
a.cc: In function 'int main()': a.cc:15:27: error: 'j' was not declared in this scope 15 | do{cout<<vvc.at(i).at(j); | ^ a.cc:17:12: error: 'j' was not declared in this scope 17 | }while(j<W); | ^
s862824877
p03853
C++
h, w = map(int, input().split()) for i in range(h): c = input() print(c) print(c)
a.cc:1:1: error: 'h' does not name a type 1 | h, w = map(int, input().split()) | ^
s028090281
p03853
C++
#include <bits/stdc++.h> using namespace std; int main(){ int h, w; cin >> h >> w; vector<vector<char>> c(h vector<char>(w)); 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 j=0;j<w;j++){ cout << c[i][j]; } cout << endl; fo...
a.cc: In function 'int main()': a.cc:6:27: error: expected ')' before 'vector' 6 | vector<vector<char>> c(h vector<char>(w)); | ~ ^~~~~~~ | )
s928266036
p03853
C++
#include<iostream> #include<vector> using namespace std; int main(){ int H,W; vector<vector<int>>date(H,vector<int>(W)); for(int i=0;i<H;i++){ for(int j=0;j<W;j++){ cin>>date[i][j]; } } for(int i=0;i<H;i++){ for(int j=0;j<W;j++){ cout<<date[i][j]<<endl<<date[i][j]<<endl; } }...
a.cc:18:1: error: expected declaration before '}' token 18 | } | ^
s551372746
p03853
C++
#include<bits/stdc++.h> using namespace std; int main(){ int A,B; cin>>A>>B; vector<vector<char>> C(A,vector<char>(B)) for(int i=0;i<A;i++){ for(int j=0;j<B;j++){ cin>>C.at(i).at(j); } } for(int i=0;i<A;i++){ for(int j=0;j<B;j++){ if(j!=B) cout<<C.at(i).at(j); ...
a.cc: In function 'int main()': a.cc:8:5: error: expected ',' or ';' before 'for' 8 | for(int i=0;i<A;i++){ | ^~~ a.cc:8:17: error: 'i' was not declared in this scope 8 | for(int i=0;i<A;i++){ | ^
s890255911
p03853
C++
#include<bits/stdc++.h> using namespace std; int main(){ int A,B; cin>>A>>B; vector<vector<char>> C(A,vector<char>(B)) for(int i=0;i<A;i++){ for(int j=0;j<B;j++){ cin>>C.at(i).at(j); } } for(int i=0;i<A;i++){ for(int j=0;j<B;j++){ if(j!=B) cout<<C.at(i).at(j); ...
a.cc: In function 'int main()': a.cc:8:5: error: expected ',' or ';' before 'for' 8 | for(int i=0;i<A;i++){ | ^~~ a.cc:8:17: error: 'i' was not declared in this scope 8 | for(int i=0;i<A;i++){ | ^
s728733737
p03853
C++
#include<bits/stdc++.h> using namespace std; int main(){ int A,B; cin>>A>>B; vector<vector<char>> C(A,vector<char>(B)) for(int i=0;i<A;i++){ for(int j=0;j<B;j++){ cin>>C.at(i).at(j); } } for(int i=0;i<A;i++){ for(int j=0;j<B;j++){ if(j!=B) cout<<C.at(i).at(j); ...
a.cc: In function 'int main()': a.cc:8:5: error: expected ',' or ';' before 'for' 8 | for(int i=0;i<A;i++){ | ^~~ a.cc:8:17: error: 'i' was not declared in this scope 8 | for(int i=0;i<A;i++){ | ^
s918412037
p03853
C++
#include <bits/stdc++.h> using namespace std; int main() { int h, w; cin >> h >> w; vector<string> c(h); for (int i=0; i < h; i++) { cin >> c.at(i); } for (int i=0; i < h; i+=2) { cout << c.at(i) << endl; cout << c.at(i+1) endl; } }
a.cc: In function 'int main()': a.cc:12:22: error: expected ';' before 'endl' 12 | cout << c.at(i+1) endl; | ^~~~~ | ;
s767887437
p03853
C++
include <bits/stdc++.h> using namespace std; int main(){ int h,w;cin>>h>>w; vector<string>s(2*h); for(int i=0;i<h;i++){ string x;cin>>x; s[2*i]=x;s[2*i+1]=x; } for(auto&& u:s)cout<<u<<endl; }
a.cc:1:1: error: 'include' does not name a type 1 | include <bits/stdc++.h> | ^~~~~~~ a.cc: In function 'int main()': a.cc:5:9: error: 'cin' was not declared in this scope 5 | int h,w;cin>>h>>w; | ^~~ a.cc:6:1: error: 'vector' was not declared in this scope 6 | vector<string>s(2*h); ...
s930128398
p03853
C++
#include <bits/stdc++.h> using namespace std; int main(){ int H, W, i; scanf("%d%d", &H, &W); vecrot<string> C(H); for(i = 0; i < H; i++){ cin >> C[i]; } for(i = 0; i < H; i++){ cout << C[i] << endl; cout << C[i] << endl; } return 0; }
a.cc: In function 'int main()': a.cc:7:9: error: 'vecrot' was not declared in this scope 7 | vecrot<string> C(H); | ^~~~~~ a.cc:7:22: error: expected primary-expression before '>' token 7 | vecrot<string> C(H); | ^ a.cc:7:24: error: 'C' was not declared i...
s136867828
p03853
C++
#include<bits/stdc++.h> using namespace std; int main(){ int h,w; cin>>h>>w; char tile[h+2][w+2]; for(int i=0;i<h+2;i++){ for(int j=0;j<w+2;j++){ tile[i][j]='@'; } } for(int i=1;i<=h;i++){ for(int j=1;j<=w;j++)cin>>tile[i][j]; } for(int i=1;i<=h;i++){ for(int k=0;k<2;k++){ for(int j=1;j<=w;j++){ ...
a.cc:30:1: error: 'cout' does not name a type 30 | cout<<endl; | ^~~~
s000522034
p03853
C++
#include <iostream> #include <stdio.h> using namespace std; int main() { int h, w; cin >> h >> w; char buf[105]; for (int y = 0; y < h; y++) { scanf_s("%s", buf, 105); printf("%s\n%s\n", buf, buf); } return 0; }
a.cc: In function 'int main()': a.cc:10:17: error: 'scanf_s' was not declared in this scope; did you mean 'scanf'? 10 | scanf_s("%s", buf, 105); | ^~~~~~~ | scanf
s215660243
p03853
C++
#include <iostream> using namespace std; int main() { int h, w; cin >> h >> w; char buf[105]; for (int y = 0; y < h; y++) { scanf_s("%s", buf, 105); printf("%s\n%s\n", buf, buf); } return 0; }
a.cc: In function 'int main()': a.cc:9:17: error: 'scanf_s' was not declared in this scope; did you mean 'scanf'? 9 | scanf_s("%s", buf, 105); | ^~~~~~~ | scanf
s610672527
p03853
Java
import java.util.*; public class Main{ public static void main(String[]args){ Scanner sc = new Scanner(System.in); String[] S = sc.nextLine().split(" "); int H = Integer.parseInt(S[0]); for(int i = 0; i < N; i++){ String T = sc.nextLine(); System.out.println(T); System.out.pr...
Main.java:9: error: cannot find symbol for(int i = 0; i < N; i++){ ^ symbol: variable N location: class Main 1 error
s361928307
p03853
C++
#include <bits/stdc++.h> #define ld long double #define ll long long int #define ull unsigned long long int #define vi vector<int> #define vl vector<ll> #define vvi vector< vector<int> > #define vvl vector< vector<ll> > #define repd(i, a, b) for (int i=(a);i<(b);i++) #define rep(i, n) repd(i,0,n) #define ALL(v) v.begi...
a.cc: In function 'int main()': a.cc:86:24: error: expected primary-expression before ';' token 86 | for (int i = 0; i <; ++i) { | ^ a.cc:91:25: error: expected primary-expression before ';' token 91 | for (int i = 0; i < ; ++i) { | ^
s085403299
p03853
C++
#include <bits/stdc++.h> 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]; } } for(int k=0;k<h;k++){ for(int l=0;l<w;l++){ cout << c[i][j] << endl; } for(int l=0;l<w;l++){ cout << c[i][j] ...
a.cc: In function 'int main()': a.cc:15:17: error: 'i' was not declared in this scope 15 | cout << c[i][j] << endl; | ^ a.cc:15:20: error: 'j' was not declared in this scope 15 | cout << c[i][j] << endl; | ^ a.cc:18:17: error: 'i' was not declared in this...
s851244644
p03853
C++
#include <bits/stdc++.h> using namespace std; int main() { int h, w; cin >> h >> w; vector<vector<string>> c(h, vector<string>(w)); for(int i = 0; i < h; i++){ for(int j = 0; j < w; j++){ cin >> c.at(i).at.(j); } } for(int i = 0; i < h; i++){ for(int j = 0; j < w; j++){ cout <...
a.cc: In function 'int main()': a.cc:11:22: error: invalid use of member function 'std::vector<std::__cxx11::basic_string<char> >::at' (did you forget the '()' ?) 11 | cin >> c.at(i).at.(j); | ~~~~~~~~^~ a.cc:17:23: error: invalid use of member function 'std::vector<std::__cxx11::basic_strin...
s475379185
p03853
C++
#include <bits/stdc++.h> using namespace std; int main() { int h, w; cin >> h >> w; vector<vector<char>> c(h, vector<char>(w)); for(int i = 0; i < h; i++){ for(int j = 0; j < w; j++){ cin >> c.at(i).at.(j); } } for(int i = 0; i < h; i++){ for(int j = 0; j < w; j++){ cout << c....
a.cc: In function 'int main()': a.cc:11:22: error: invalid use of member function 'std::vector<char>::at' (did you forget the '()' ?) 11 | cin >> c.at(i).at.(j); | ~~~~~~~~^~ a.cc:17:23: error: invalid use of member function 'std::vector<char>::at' (did you forget the '()' ?) 17 | c...
s605770263
p03853
C++
#include <bits/stdc++.h> using namespace std; int main() { int H, W; cin >> H >> W; vector<int> C(H); for(int i = 0; i < H; i++) { cin >> vector[i]; cout << vector[i] << endl; cout << vector[i] << endl; } return 0; }
a.cc: In function 'int main()': a.cc:10:18: error: missing template arguments before '[' token 10 | cin >> vector[i]; | ^ a.cc:11:19: error: missing template arguments before '[' token 11 | cout << vector[i] << endl; | ^ a.cc:12:19: error: missing template ar...
s699353849
p03853
C++
#include <iostream> using namespace std; int main() int h,w,i; string s; cin >> h >> w ; for(i=0;i<h;i++){ cin >> a[i]; cout << a[i] << endl << a[i] << endl; } return 0; }
a.cc:4:9: error: expected initializer before 'int' 4 | int h,w,i; | ^~~ a.cc:6:9: error: 'cin' does not name a type 6 | cin >> h >> w ; | ^~~ a.cc:7:9: error: expected unqualified-id before 'for' 7 | for(i=0;i<h;i++){ | ^~~ a.cc:7:17: error: ...
s284045803
p03853
C++
#include <bits/stdc++.h> using namespace std; int main() { int H, W; cin >> H >> W >> endl; for (int i=0;i<H;i++) { string C; cin >> C >> endl; cout << C << endl; cout << C << endl; } }
a.cc: In function 'int main()': a.cc:6:19: error: no match for 'operator>>' (operand types are 'std::basic_istream<char>::__istream_type' {aka 'std::basic_istream<char>'} and '<unresolved overloaded function type>') 6 | cin >> H >> W >> endl; | ~~~~~~~~~~~~~~^~~~~~~ In file included from /usr/include/...
s890330815
p03853
C++
#include <bits/stdc++.h> using namespace std; int main(){ int H,W; cin >> H >> W; string s; for (int i=0;i<H,i++){ cin >> s; cout << s << endl << s << endl; } }
a.cc: In function 'int main()': a.cc:8:23: error: expected ';' before ')' token 8 | for (int i=0;i<H,i++){ | ^ | ;
s105359809
p03853
C++
#include<bits/stdc++.h> 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 ans[2*H][W]; for(int i=0;i<H;i++){ for(int j=0;j<W;j++){ ans[2*i][j] = c[i][j]; ans[2*i+1][j] = c[i][j]; } }...
a.cc: In function 'int main()': a.cc:19:21: error: 'c' was not declared in this scope 19 | ans[2*i][j] = c[i][j]; | ^
s703665030
p03853
C++
#include<bits/stdc++.h> 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 ans[2*H][W]; for(int i=0;i<H;i++){ for(int j=0;j<W;j++){ ans[2*i][j] = c[i][j];] ans[2*i+1][j] = c[i][j]; } ...
a.cc: In function 'int main()': a.cc:19:21: error: 'c' was not declared in this scope 19 | ans[2*i][j] = c[i][j];] | ^ a.cc:19:29: error: expected primary-expression before ']' token 19 | ans[2*i][j] = c[i][j];] | ^
s082281379
p03853
C++
#include <iostream> using namespace std; int main(void){ int h,w; cin >> h >> w; string x; for(int i = 0;i < h;i++){ cin >> x; cout << x << endl; cout << x << endl; } cout<<sum<<endl; }
a.cc: In function 'int main()': a.cc:12:15: error: 'sum' was not declared in this scope 12 | cout<<sum<<endl; | ^~~
s201860902
p03853
C++
#include <iostream> using namespace std; int main(void){ int h,w; cin >> h >> w; string x; for(int i = 0;i < h;i++){ cout << x << endl; cout << x << endl; } cout<<sum<<endl; }
a.cc: In function 'int main()': a.cc:11:15: error: 'sum' was not declared in this scope 11 | cout<<sum<<endl; | ^~~
s377825308
p03853
C++
#include <stdio.h> #include <string.h> int main() { int h,w,i,j; char c[310][300]; scanf("%d %d",&h,&w); getchar(); for(i=1;i<=h;i++){ gets(c[i]); } for(i=1;i<=h;i++){ puts(c[i]); puts(c[i]); } return 0; }
a.cc: In function 'int main()': a.cc:10:25: error: 'gets' was not declared in this scope; did you mean 'getw'? 10 | gets(c[i]); | ^~~~ | getw
s974939335
p03853
C++
#include <stdio.h> int main() { int h,w,i,j; char c[310][300]; scanf("%d %d",&h,&w); getchar(); for(i=1;i<=h;i++){ gets(c[i]); } for(i=1;i<=h;i++){ puts(c[i]); puts(c[i]); } return 0; }
a.cc: In function 'int main()': a.cc:9:25: error: 'gets' was not declared in this scope; did you mean 'getw'? 9 | gets(c[i]); | ^~~~ | getw
s768835192
p03853
C++
#include<iostream> #include<string> #include<algorithm> #include<vevctor> using namespace std; int main(){ int h, w; cin >> h >> w; string s; for(int i = 0; i < h; i++){ cin >> s; cout << s << endl; cout << s << endl; } }
a.cc:4:9: fatal error: vevctor: No such file or directory 4 | #include<vevctor> | ^~~~~~~~~ compilation terminated.
s460271750
p03853
C++
9 20 .....***....***..... ....*...*..*...*.... ...*.....**.....*... ...*.....*......*... ....*.....*....*.... .....**..*...**..... .......*..*.*....... ........**.*........ .........**.........
a.cc:1:1: error: expected unqualified-id before numeric constant 1 | 9 20 | ^
s094860734
p03853
C++
#pragma warning disable using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Runtime.Serialization.Formatters.Binary; using System.Text; using System.Text.RegularExpressions; using System.Diagnostics; using System.Numerics; using System.Collections; static class MainClass {...
a.cc:98:6: error: invalid preprocessing directive #region 98 | #region ライブラリ | ^~~~~~ a.cc:149:10: error: invalid preprocessing directive #endregion 149 | #endregion | ^~~~~~~~~ a.cc:3:7: error: expected nested-name-specifier before 'System' 3 | using System; | ...
s987825171
p03853
C++
#include<iostream> using namespace std; int main(){ int h,w; cin>>h>>w; char s[101[101]; for(int i=1;i<=100;++i){ for(int j=1;j<=100;++j)cin>>s[i][j]; }for(int i=1;i<=100;++i){ for(int j=1;j<=100;++j)cout<<s[i][j]<<endl<<s[i][j]<<endl; }return 0; }
a.cc: In function 'int main()': a.cc:7:19: error: invalid types 'int[int]' for array subscript 7 | char s[101[101]; | ^ a.cc:7:24: error: expected ']' before ';' token 7 | char s[101[101]; | ^ | ] a.cc:9:37: error:...
s346373880
p03853
C++
#include<iostram> using namespace std; int main(){ int h,w; cin>>h>>w; char s[101[101]; for(int i=1;i<=100;++i){ for(int j=1;j<=100;++j)cin>>s[i][j]; }for(int i=1;i<=100;++i){ for(int j=1;j<=100;++j)cout<<s[i][j]<<endl<<s[i][j]<<endl; }return 0; }
a.cc:1:9: fatal error: iostram: No such file or directory 1 | #include<iostram> | ^~~~~~~~~ compilation terminated.
s496910031
p03853
C++
#include <bits/stdc++.h> using namespace std; int main() { int H,W; for (int i=0; i<H; i++) { cin >> S; cout << S << endl; cout << S << endl; } }
a.cc: In function 'int main()': a.cc:7:12: error: 'S' was not declared in this scope 7 | cin >> S; | ^
s388292857
p03853
C++
#include <iostream> #include <vector> using namespace std; int main() { int H, W; cin >> H >> W; vector<string> C(H); for (int i = 0; i < H; i++) { cin >> C[i]; } for (int i = 0; i < H; i++) { for (int j = 0; j < 2; j++) { cout << S[i] << endl; ...
a.cc: In function 'int main()': a.cc:20:21: error: 'S' was not declared in this scope 20 | cout << S[i] << endl; | ^