submission_id
stringlengths
10
10
problem_id
stringlengths
6
6
language
stringclasses
3 values
code
stringlengths
1
522k
compiler_output
stringlengths
43
10.2k
s188572581
p03804
C++
#include <bits/stdc++.h> int main(){ int n,m; cin>>n>>m; vector<string> a(n),b(m); for(int i=0; i<n; i++) cin>>a[i]; for(int i=0; i<m; i++) cin>>b[i]; for(int i=0; i<n-m+1; i++){ for(int j=0; j<n-m+1; j++){ bool ok=true; for(int k=0; k<m; k++){ for...
a.cc: In function 'int main()': a.cc:4:5: error: 'cin' was not declared in this scope; did you mean 'std::cin'? 4 | cin>>n>>m; | ^~~ | std::cin In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146, from a.cc:1: /usr/include/c++/14/iostream:62:18: note...
s267549540
p03804
C++
#include <bits/stdc++.h> using namespace std; typedef long long ll; typedef vector<ll> vll; #define all(x) (x).begin(), (x).end() #define endl '\n' #define fsp(x) cout << fixed << setprecision(x) const ll inf = LLONG_MAX; const long double pi = M_PI; void Yes() {cout << "Yes" << endl;} void No() {cout << "No" << endl;}...
a.cc: In function 'int main()': a.cc:31:11: error: expected ';' before 'else' 31 | }a | ^ | ; 32 | else { | ~~~~
s676895654
p03804
C++
#include <bits/stdc++.h> using namespace std; int main(){ int n,m; cin >> n >> m; string a[n]; string b[m]; for(int i=0;i<n;i++){ cin >> a[i]; } for(int i=0;i<m;i++){ cin >> b[i]; } for(int i=0;i<n-m+1;i++){ for(int j=0;j<n-m+1;j++){ for(int...
a.cc: In function 'int main()': a.cc:21:35: error: expected primary-expression before ']' token 21 | if(a[k][m]!=b[]) | ^ a.cc:22:17: error: expected primary-expression before '}' token 22 | } | ^
s681323256
p03804
Java
import oracle.jvm.hotspot.jfr.JFRTypeIDs; import java.io.*; import java.util.*; public class Main { public static final long mod = (long)1e9+7; public static final long INF = Long.MAX_VALUE/10; public static final int inf = Integer.MAX_VALUE/10; static void solve(InputReader in, PrintWriter out){ ...
Main.java:1: error: package oracle.jvm.hotspot.jfr does not exist import oracle.jvm.hotspot.jfr.JFRTypeIDs; ^ 1 error
s830412347
p03804
C++
#include<bits/stdc++.h> using namespace std; int main(){ int n,m ; cin >> n >> m; vector<vector<int>> a(n,vector<int> (n)); for(int i=0;i<n;i++){ for(int j=0;j<n;j++){ cin >> a.at(i).at(j); } } vector<vector<int>> b(m,vector<int> (m)); for(int i=0;i<m;i++){ for(int j=0;j<m;j++){ cin...
a.cc: In function 'int main()': a.cc:33:14: error: 'macth' was not declared in this scope; did you mean 'match'? 33 | if(macth) exist = true; | ^~~~~ | match
s725159884
p03804
C++
#include<bits/stdc++.h> using namespace std; int main(){ int n,m ; cin >> n >> m; vector<vector<int>> a(n,vector<int> (n)); for(int i=0;i<n;i++){ for(int j=0;j<n;j++){ cin << a.at(i).at(j); } } vector<vector<int>> b(m,vector<int> (m)); for(int i=0;i<m;i++){ for(int j=0;j<m;j++){ cin...
a.cc: In function 'int main()': a.cc:9:11: error: no match for 'operator<<' (operand types are 'std::istream' {aka 'std::basic_istream<char>'} and '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type' {aka 'int'}) 9 | cin << a.at(i).at(j); | ~~~ ^~ ~~~~~~~~~~~~~ | | ...
s845140654
p03804
C
#include <stdio.h> #include <stdlib.h> #include <string.h> #define MAX(a,b) (a > b) ? a : b #define MIN(a,b) (a < b) ? a : b const int inf = 1000000000; // 10^9 int main(){ int n,m;scanf("%d %d",&n,&m); char a[51][51];for(int i = 0;i < n;i++)scanf("%s",a[i]); char b[51][51];for(int i = 0;i < m;i++)scanf("%s"...
main.c: In function 'main': main.c:22:19: error: 'flag' undeclared (first use in this function) 22 | if(flag == 1)break; | ^~~~ main.c:22:19: note: each undeclared identifier is reported only once for each function it appears in
s161590972
p03804
C++
#include <bits/stdc++.h> using namespace std; int main() { bool ans = false; int N,M; cin >> N >> M; vector<vector<char> > A(N, vector<char>(N)); vector<vector<char> > B(M, vector<char>(M)); vector<vector<bool> > F(N - M + 1, vector<bool>(N - M + 1,true)); for (int i = 0; i < N; i++) { for (int j = 0;...
a.cc:32:3: error: expected unqualified-id before 'for' 32 | for (int i = 0; i < N - M + 1; i++) { | ^~~ a.cc:32:19: error: 'i' does not name a type 32 | for (int i = 0; i < N - M + 1; i++) { | ^ a.cc:32:34: error: 'i' does not name a type 32 | for (int i = 0; i < N - M + 1...
s664394238
p03804
C++
#include<bits/stdc++.h> #define rep(i,n) for (int i = 0; i < n; ++i) #define rep2(i,s,n) for (int i = s; i < n; ++i) #define all(a) a.begin(),a.end() using namespace std; using ll = long long; using P = pair<int,int>; int main() { int n; cin >> n; vector<string> a(n),b(m); rep(i,n) cin >> a[i]; rep...
a.cc: In function 'int main()': a.cc:12:27: error: 'm' was not declared in this scope 12 | vector<string> a(n),b(m); | ^
s308766607
p03804
C++
#include<iostream> #include<vector> using namespace std ; int main(){ using vc = vector<char> ; using vcc = vector<vc> ; int n,m ; cin >> n >> m ; vcc a(n,vc(n)) ; vcc b(m.vc(m)) ; for(int i=0;i<n;i++){ for(int j=0;j<n;j++){ cin >> a.at(i).at(j) ; } } for(int i=0;i<m;i++){ for(int j=0;j<m;j++){ ci...
a.cc: In function 'int main()': a.cc:11:17: error: request for member 'vc' in 'm', which is of non-class type 'int' 11 | vcc b(m.vc(m)) ; | ^~
s451854726
p03804
C++
#include <bits/stdc++.h> using namespace std; #define loop(i, n) for(int i = 0;i < int(n);i++) #define rloop(i, n) for(int i = int(n);i >= 0;i--) #define range(i, a, b) for(int i = int(a);i <= int(b);i++) #define sz(c) int(c.size()) #define clr(v, d) memset(v, d, sizeof(v)) #define ALL(c) c.begin(), c.end() #define ...
a.cc:52:14: error: invalid preprocessing directive #; 52 | #; | ^ a.cc: In function 'int main()': a.cc:47:10: error: 'm4' was not declared in this scope; did you mean 'm'? 47 | cin>>m4 1 | ^~ | m a.cc:53:10: error: 'i' was not declared in this scope...
s456250512
p03804
C++
#include <iostream> #include <cstdio> #include <cstdlib> #include <algorithm> #include <numeric> #include <queue> #include <vector> #include <cmath> #include <cctype> #include <cstring> #include <cstdio> #include <set> #include <map> using namespace std; typedef long long LL; typedef pair<int, int> PII; #define rep(...
a.cc: In function 'int main()': a.cc:23:16: error: expected '}' at end of input 23 | int main(void){ | ~^
s002847122
p03804
C++
#include <bits/stdc++.h> using namespace std; int main(){ int N,M,l; cin>>N>>M; vector<vector<char>>A(N,vector<char>N),B(N,vector<char>N); for(int i=0;i<N;i++)for(int j=0;j<N;j++)cin>>A.at(i).at(j); for(int i=0;i<M;i++)for(int j=0;j<M;j++)cin>>A.at(i).at(j); for(int i=0;i<N-M;i++){ for(int j=0;j<N-M;j+...
a.cc: In function 'int main()': a.cc:7:39: error: expected primary-expression before 'N' 7 | vector<vector<char>>A(N,vector<char>N),B(N,vector<char>N); | ^ a.cc:7:58: error: expected primary-expression before 'N' 7 | vector<vector<char>>A(N,vector<char>N),B(N,vect...
s429731808
p03804
C++
#include<bits/stdc++.h> #include<string> using namespace std; int main(){ int N,M,k,l; cin>>N>>M; vector<string>A(N),B(M); for(int i=0;i<N;i++)cin>>A.at(i); for(int i=0;i<M;i++)cin>>B.at(i); for(int i=0;i<N-M;i++){ for(int j=0;j<N-M;j++){ for(k=0;k<M;k++){ for(l=0;l<M;l++){ if(A....
a.cc: In function 'int main()': a.cc:14:32: error: expected primary-expression before '!=' token 14 | if(A.at(i+k).at(j+l))!=B.at(k).at(l))break; | ^~
s699220103
p03804
C++
#include<bits/stdc++.h> #include<string> using namespace std; int main(){ int N,M,k; cin>>N>>M; vector<string>A(N),B(M); for(int i=0;i<N;i++)cin>>A.at(i); for(int i=0;i<M;i++)cin>>B.at(i); for(int i=0;i<N-M;i++){ for(int j=0;j<N-M;j++){ for(k=0;k<M;k++){ if(A.at(i+k).substr(j,M))!=B.at(i+k...
a.cc: In function 'int main()': a.cc:13:28: error: could not convert 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::substr(size_type, size_type) const [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; size_type = long unsigned int](((std::__cxx11::basic_string<char>::size_type...
s701926427
p03804
C++
#include<bits/stdc++.h> using namespace std; int main(){ int a,b; cin >> a >> b; vector<vector<char>> A(a,vector<char>(a)); vector<vector<char>> B(b,vector<char>(b)); for(int i=0;i<a;i++) cin >> A.at(i); for(int i=0;i<b;i++) cin >> b.at(i); bool result = false; for(int ai = 0;ai< a-b+1;ai++){ ...
a.cc: In function 'int main()': a.cc:9:9: error: no match for 'operator>>' (operand types are 'std::istream' {aka 'std::basic_istream<char>'} and '__gnu_cxx::__alloc_traits<std::allocator<std::vector<char> >, std::vector<char> >::value_type' {aka 'std::vector<char>'}) 9 | cin >> A.at(i); | ~~~ ^~ ~~~~...
s976067088
p03804
C++
#include <bits/stdc++.h> using namespace std; int main() { int n,m; cin >> n >> m; vector<string> a(n),b(m); for(int i=0; i<n; i++){ cin >> a[i]; } for(int i=0; i<m; i++){ cin >> b[i]; } bool a = false; for(int i=0; i<n-m+1; i++){ for(int j=0; j<n-m+1; j++){ if(a[i].substr(j,...
a.cc: In function 'int main()': a.cc:17:8: error: conflicting declaration 'bool a' 17 | bool a = false; | ^ a.cc:9:18: note: previous declaration as 'std::vector<std::__cxx11::basic_string<char> > a' 9 | vector<string> a(n),b(m); | ^ a.cc:25:9: error: return-statement with...
s425432866
p03804
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 n, m; cin >> n >> m; bool b = 1; vector<vector<char>> a(n, vector<char>(n)), b(m, vector<char>(m)); rep(i, n){ string s; cin >> s; rep(j, n) a[i][j] = s[j]; } rep(...
a.cc: In function 'int main()': a.cc:10:47: error: conflicting declaration 'std::vector<std::vector<char> > b' 10 | vector<vector<char>> a(n, vector<char>(n)), b(m, vector<char>(m)); | ^ a.cc:9:8: note: previous declaration as 'bool b' 9 | bool b = 1; ...
s329363504
p03804
C++
#include <bits/stdc++.h> using namespace std; int main(){ int N,M; cin>>N>>M; vector<string> A(N),B(M); for(int i=0;i<N;i++){ cin>>A.at(i); } for(int i=0;i<M;i++){ cin>>B.at(i); } bool flag=false; for(int i=0;i<N-M+1){ for(int j=0;j<N-M+1){ bool flag=true; for(int k=0;k<M;k...
a.cc: In function 'int main()': a.cc:16:22: error: expected ';' before ')' token 16 | for(int i=0;i<N-M+1){ | ^ | ; a.cc:17:24: error: expected ';' before ')' token 17 | for(int j=0;j<N-M+1){ | ^ | ...
s748556426
p03804
C++
int main(void){ int N,M; cin >> N >> M; const int nmmax=50; char A[nmmax][nmmax],B[nmmax][nmmax]; for(int y=0;y<N;++y){ for(int x=0;x<N;++x){ cin >> A[y][x]; } } for(int y=0;y<M;++y){ for(int x=0;x<M;++x){ cin >> B[y][x]; } } bool exist=false; for(int ly=0;ly<N;++ly){ for(int lx=0;lx<N;++lx){ if...
a.cc: In function 'int main()': a.cc:3:2: error: 'cin' was not declared in this scope 3 | cin >> N >> M; | ^~~ a.cc:38:2: error: 'cout' was not declared in this scope 38 | cout << "Yes" << endl; | ^~~~ a.cc:38:19: error: 'endl' was not declared in this scope 38 | cout << "Yes" << endl; ...
s375429139
p03804
C++
#include<bits/stdc++.h> using namespace std; int main() { int N, M; cin>>N>>M; int a[N][N], b[M][M]; for(int i = 0; i < N; i++) for(int j = 0; j < N; j++) cin>>a[i][j]; for(int i = 0; i < M; i++) for(int j = 0; j < M; j++) cin>>b[i][j]; bool exist=false; for(int ly=0;ly<...
a.cc: In function 'int main()': a.cc:34:23: error: expected '}' at end of input 34 | cout << "No" << endl; | ^ a.cc:5:1: note: to match this '{' 5 | { | ^
s782455028
p03804
C
#include <cstdio> #include <iostream> using namespace std; char N[55][55],M[55][55]; int n,m; bool isSame(int startX, int startY) { for(int k=1;k<=m;k++) for(int l=1;l<=m;l++) if(N[startX+k-1][startY+l-1]!=M[k][l]) return false; return true; } int main() { cin>>n>>m; for(int i=1;i<=n;i++) for(int...
main.c:1:10: fatal error: cstdio: No such file or directory 1 | #include <cstdio> | ^~~~~~~~ compilation terminated.
s887253446
p03804
C++
#include<iostream> using namespace std; int main() { int n, m; cin >> n >> m; char s[55][55]; char t[55][55]; for (int i = 0; i < n; i++) { for (int j = 0; j < n; j++) { cin >> s[i][j]; } } for (int i = 0; i < m; i++) { for (int j = 0; j < m; j++) { cin >> t[i][j]; } } bool flag = true; for (...
a.cc: In function 'int main()': a.cc:39:18: error: expected '}' at end of input 39 | return 0; | ^ a.cc:3:12: note: to match this '{' 3 | int main() { | ^
s934413361
p03804
C++
#include <bits/stdc++.h> using namespace std; #define ll long long #define REP(i,n) for(long long i=0;i<n;++i) #define REPP(i,m,n) for(long long i=m;i<n;++i) #define rep(i,n) for(long long i = n-1;i>=0;--i) #define repp(i,n,m) for(long long i = n-1; i >= m; --i) #define ALL(N) (N.begin(),N.end()) #define de cout << "li...
a.cc: In function 'int main()': a.cc:23:14: error: 'k' was not declared in this scope 23 | REP(i,N- k) REP(j,N - M){ | ^ a.cc:4:38: note: in definition of macro 'REP' 4 | #define REP(i,n) for(long long i=0;i<n;++i) | ^
s266981630
p03804
C++
#include <bits/stdc++.h> using namespace std; long int pow107 = (int)pow(10, 9) + 7; bool comp(pair<int, string> a, pair<int, string> b){ if(a.first != b.first) return a.first > b.first; else return a.second < b.second; } long int jou(long int x, long int y){ long int f = 1; for(int i = 0; i < y; ++i)...
a.cc: In function 'int main()': a.cc:46:6: error: 'in' was not declared in this scope; did you mean 'yn'? 46 | for(in x=0;x<N;++x){ | ^~ | yn a.cc:46:13: error: 'x' was not declared in this scope 46 | for(in x=0;x<N;++x){ | ^ a.cc: At global scope: a.cc:80:4: error: expec...
s900203998
p03804
C++
#include <bits/stdc++.h> #define mod 1000000007 #define rep(i, n) for(int i=0; i<n; ++i) using namespace std; typedef long long ll; const long long INF = 1LL << 60; int main(void){ int M, N; cin >> M >> N; int A[N][M], B[N][M]; rep(i, N) rep(j, N) cin >> A[i][j]; rep(i, M) rep(j, M) cin ...
a.cc: In function 'int main()': a.cc:37:33: error: 'exist' was not declared in this scope; did you mean 'exit'? 37 | exist = true; | ^~~~~ | exit a.cc:41:12: error: 'exist' was not declared in this scope; did ...
s700788722
p03804
C++
#include <iostream> #include <string> #include <vector> using namespace std; int main() { int n,m;cin>>n>>m; vector<string> a(n); for(int i=0;i<n;++i)cin>>a[i]; vector<string> b(m); for(int i=0;i<m;++i)cin>>b[i]; for(int i=0;i<n-m+1;++i) { for(int j=0;j<n-m+1;++j) { for(int k=0;k<m;++k) { bool ma...
a.cc: In function 'int main()': a.cc:20:43: error: expected initializer before '==' token 20 | bool match==true; | ^~ a.cc:25:49: error: 'match' was not declared in this scope; did you mean 'rpmatch'? 25 | ...
s306077505
p03804
C++
#include <bits/stdc++.h> using namespace std; int main() { int N,M; cin >> N >> M; char A[50][50],B[50][50]; for(int i=0;i<N;++i){ for(int j=0;j<N;++j) cin >> A[i][j]; } for(int i=0;i<M;++i){ for(int j=0;j<M;++j) cin >> B[i][j]; } bool abcde =false; for(int i=0;i<=N;i++){ ...
a.cc: In function 'int main()': a.cc:43:2: error: expected '}' at end of input 43 | } | ^ a.cc:4:12: note: to match this '{' 4 | int main() { | ^
s944975428
p03804
C++
#include <bits/stdc++.h> using namespace std; int main() { int N,M; cin >> N >> M; char A[50][50],B[50][50]; for(int i=0;i<N;++i){ for(int j=0;j<N;++j) cin >> A[i][j]; } for(int i=0;i<M;++i){ for(int j=0;j<M;++j) cin >> B[i][j]; } bool abcde =false; for(int i=0;i<=N;i++){ ...
a.cc: In function 'int main()': a.cc:37:3: error: 'else' without a previous 'if' 37 | else{ | ^~~~ a.cc:41:2: error: expected '}' at end of input 41 | } | ^ a.cc:4:12: note: to match this '{' 4 | int main() { | ^
s833968905
p03804
C++
#include <bits/stdc++.h> using namespace std; int main() { int N,M; cin >> N >> M; char A[50][50],B[50][50]; for(int i=0;i<N;++i){ for(int j=0;j<N;++j) cin >> A[i][j]; } for(int i=0;i<M;++i){ for(int j=0;j<M;++j) cin >> B[i][j]; } bool abcde =false; for(int i=0;i<=N;i++){ ...
a.cc: In function 'int main()': a.cc:37:3: error: 'else' without a previous 'if' 37 | else{ | ^~~~
s778191367
p03804
C++
#include <iostream>
/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
s432029727
p03804
C++
#include <iostream> #include <vector> using namespace std; int main() { int n,m; cin >> n >> m; vector<string> a(n); vector<string> b(n); for( int i = 0; i < n; i++ ) { cin >> a[i]; } for( int i = 0; i < n; i++ ) { cin >> b[i]; } bool ok = false; for( int i = 0; i < n; i++ ) { ...
a.cc: In function 'int main()': a.cc:25:28: error: '__gnu_cxx::__alloc_traits<std::allocator<std::__cxx11::basic_string<char> >, std::__cxx11::basic_string<char> >::value_type' {aka 'class std::__cxx11::basic_string<char>'} has no member named 'substring'; did you mean 'substr'? 25 | string substr = a[i].subst...
s173264635
p03804
C++
#include <bits/stdc++.h> using namespace std; #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++) typedef long long ll; int main() { int N, M; cin >> N >> M; vector<string> A(N); vector<string> B(M); for (int i = 0; i < N; i++){ ci...
a.cc: In function 'int main()': a.cc:23:24: error: expected '(' before 'A' 23 | if A[i+k][j+l] != A[k][l]{ | ^ | (
s126882016
p03804
C++
#include<iostream> #include<sstream> #include<vector> using namespace std; #define rep(i,n) for(int i=0;i<n;i++) const int sz=110; string s[sz],cmp[sz]; int a,b; bool solve() { rep(i,a-b) { rep(j,a-b) { if(s[i][j]==cmp[0][0]) { bool ok=1; r...
a.cc:44:2: error: stray '#' in program 44 | }#include<iostream> | ^ a.cc:35:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type] 35 | main() | ^~~~ a.cc:44:3: error: 'include' does not name a type 44 | }#include<iostream> | ^~~~~~~ a.cc:49:11: error: redefinition ...
s542920671
p03804
C++
include<iostream> main() { iostream::cout<<"No"<<'\n'; return 0; }
a.cc:1:1: error: 'include' does not name a type 1 | include<iostream> | ^~~~~~~
s768401336
p03804
C++
#include <iostream> #include <vector> using namespace std; int main(){ int N, M; cin >> N >> M; vector<vector<char>> I(N, vector<char>(N,'x')); vector<vector<char>> P(M, vector<char>(M,'x')); for(int i = 0; i < N; i++){ for(int j = 0; j < N; j++) cin >> I[i][j]; } for(int i = 0; i < M; i++)...
a.cc: In function 'int main()': a.cc:26:34: error: expected ']' before '}' token 26 | if(I[sx+i][sy+j] != P[i}[j]){ | ^ | ] a.cc:26:28: error: no match for 'operator!=' (operand types are '__gnu_cxx::__alloc_traits<std::allocator...
s317452595
p03804
C++
#include <isotream> #include <vector> using namespace std; int main(){ int N, M; cin >> N >> M; vector<vector<char>> I(N,vector<char>(N,'x')); vector<vector<char>> P(M,vector<char>(M,'x')); for(int i = 0; i < N; i++){ for(int j = 0; j < N; j++) cin >> I[i][j]; } for(int i = 0; i < M; i++){ for(i...
a.cc:1:10: fatal error: isotream: No such file or directory 1 | #include <isotream> | ^~~~~~~~~~ compilation terminated.
s301238347
p03804
C++
#include <bits/stdc++.h> using namespace std; int main(){ int a; cin>>a; vector<vector<char>> origin(a,vector<char>(a)); for(int i=0;i<a;i++){ for(int j=0;j<a;j++){ cin>>origin[i][j]; } } int b; cin>>b; vector<vector<char>> cover(b,vector<char>(b)); for(int i=0;i<b;i++){ for(int j=0...
a.cc: In function 'int main()': a.cc:37:10: error: 'j' was not declared in this scope 37 | if(j==b-1) { | ^
s832562056
p03804
C++
#include <iostream> using namespace std; int main(){ int n, m; cin >> n >> m; int a[50][50]; int b[50][50]; for (int i = 0; i < n; i++) { for (int j = 0; j < n; j++) { cin >> a[i][j]; } } for (int i = 0; i < m; i++) { for (int j = 0; j < m; j++) { cin >> b[i][j]; } } b...
a.cc: In function 'int main()': a.cc:38:18: error: expected ';' before ':' token 38 | cout << "Yes": | ^ | ;
s501025786
p03804
C++
#include<bits/stdc++.h> #include<vector> #include<string> using namespace std; int N, M; int main () { cin >> N >> M; vector<string> A(N); vector<string> B(M); for (int i = 0; i < N; i++){ cin >> A[i]; } for (int i = 0; i < M; i++){ cin >> B[i]; } int count = 0; for (int i = 0; i < ...
a.cc:27:28: error: extended character   is not valid in an identifier 27 | if ((A[i+k][j+l]) != (B[k][l])){ | ^ a.cc: In function 'int main()': a.cc:27:28: error: expected ')' before '\U00003000' 27 | if ((A[i+k][j+l]) != (B[k][l])){ | ~ ...
s841170656
p03804
C++
#include<bits/stdc++.h> #include<vector> #include<string> using namespace std; int N, M; int main () { cin >> N >> M; vector<string> A(N); vector<string> B(M); for (int i = 0; i < N; i++){ cin >> A[i]; } for (int i = 0; i < M; i++){ cin >> B[i]; } int count = 0; for (int i = 0; i < ...
a.cc:26:28: error: extended character   is not valid in an identifier 26 | if ((A[i+k][j+l]) == (B[k][l])){ | ^ a.cc: In function 'int main()': a.cc:26:28: error: expected ')' before '\U00003000' 26 | if ((A[i+k][j+l]) == (B[k][l])){ | ~ ...
s003409400
p03804
C++
#include<bits/stdc++.h> using namespace std; int N, M; int main () { cin >> N >> M; vector<string> A(N); vector<string> B(M); for (int i = 0; i < N; i++){ cin >> A[i]; } for (int i = 0; i < M; i++){ cin >> B[i]; } int count = 0; for (int i = 0; i < N-M+1; i++){ for (int j = 0; j...
a.cc:24:26: error: extended character   is not valid in an identifier 24 | if (A[i+k][j+l] == B[k][l]){ | ^ a.cc: In function 'int main()': a.cc:24:26: error: expected ')' before '\U00003000' 24 | if (A[i+k][j+l] == B[k][l]){ | ~ ^~ ...
s920314340
p03804
C++
#include<bits/stdc++.h> using namespace std; int N, M; int main () { cin >> N >> M; for (int i = 0; i < N; i++){ cin >> A[i]; } for (int i = 0; i < M; i++){ cin >> B[i]; } int count = 0; for (int i = 0; i < N-M+1; i++){ for (int j = 0; j < N-M+1; j++){ for (int k = 0; k < M; k++...
a.cc:22:26: error: extended character   is not valid in an identifier 22 | if (A[i+k][j+l] == B[k][l]){ | ^ a.cc: In function 'int main()': a.cc:10:12: error: 'A' was not declared in this scope 10 | cin >> A[i]; | ^ a.cc:13:12: error: 'B' was not decla...
s815701771
p03804
C++
#include<bits/stdc++.h> #include<> using namespace std; int N, M; int main () { cin >> N >> M; for (int i = 0; i < N; i++){ cin >> A[i]; } for (int i = 0; i < M; i++){ cin >> B[i]; } int count = 0; for (int i = 0; i < N-M+1; i++){ for (int j = 0; j < N-M+1; j++){ for (int k = 0;...
a.cc:2:9: error: empty filename in #include 2 | #include<> | ^~ a.cc:23:26: error: extended character   is not valid in an identifier 23 | if (A[i+k][j+l] == B[k][l]){ | ^ a.cc: In function 'int main()': a.cc:11:12: error: 'A' was not declared in this scope ...
s615716012
p03804
C++
#include<bits/stdc++.h> using namespace std; int N, M; int main () { cin >> N >> M; vector<string> A(N); vector<string> B(M); for (int i = 0; i < N; i++){ cin >> A[i]; } for (int i = 0; i < M; i++){ cin >> B[i]; } int count = 0; for (int i = 0; i < N-M+1; i++){ for (int j = 0; j...
a.cc:24:21: error: extended character   is not valid in an identifier 24 | if (A[i+k] == B[j+l]){ | ^ a.cc: In function 'int main()': a.cc:24:21: error: expected ')' before '\U00003000' 24 | if (A[i+k] == B[j+l]){ | ~ ^~ | ...
s273012646
p03804
C++
#include<bits/stdc++.h> using namespace std; int N, M; int main () { cin >> N >> M; vector<string> A(N); vector<string> B(M); for (int i = 0; i < N; i++){ cin >> A[i]; } for (int i = 0; i < M; i++){ cin >> B[i]; } int count = 0; for (int i = 0; i < N-M+1; i++){ for (int j = 0; j...
a.cc:24:21: error: extended character   is not valid in an identifier 24 | if (A[i+k] == B[j+l]){ | ^ a.cc: In function 'int main()': a.cc:24:21: error: expected ')' before '\U00003000' 24 | if (A[i+k] == B[j+l]){ | ~ ^~ | ...
s190163184
p03804
C++
#include<bits/stdc++.h> using namespace std; int N, M; int main () { cin >> N >> M; vector<string> A(N); vector<string> B(M); for (int i = 0; i < N; i++){ cin >> A[i]; } for (int i = 0; i < M; i++){ cin >> B[i]; } int count = 0; for (int i = 0; i < N-M+1; i++){ for (int j = 0; j...
a.cc:24:21: error: extended character   is not valid in an identifier 24 | if (A[i+k] == B[j+l]){ | ^ a.cc: In function 'int main()': a.cc:22:27: error: 'm' was not declared in this scope 22 | for (int k = 0; k < m; k++){ | ^ a.cc:24:21: er...
s183076033
p03804
C++
#include<bits/stdc++.h> using namespace std; int N, M; int main () { cin >> N >> M; vector<string> A(N); vector<string> B(M); for (int i = 0; i < N; i++){ cin >> A[i]; } for (int i = 0; i < M; i++){ cin >> B[i]; } int count = 0; for (int i = 0; i < N-M+1; i++){ for (int j = 0; j...
a.cc:24:21: error: extended character   is not valid in an identifier 24 | if (A[i+k] == B[j+l]){ | ^ a.cc: In function 'int main()': a.cc:24:21: error: expected ')' before '\U00003000' 24 | if (A[i+k] == B[j+l]){ | ~ ^~ | ...
s661418308
p03804
C++
#include <bits/stdc++.h> using namespace std; int main() { int N,M; cin >> N >> M; const int nmmax=50; char A[nmmax][nmmax],B[nmmax][nmmax]; for(int y=0;y<N;++y){ for(int x=0;x<N;++x){ cin >> A[y][x]; } } for(int y=0;y<M;++y){ for(int x=0;x<M;++x){ cin >> B[y][x]; } } bool exist=false; for(int ly=0;ly<N;++l...
a.cc:43:1: error: expected declaration before '}' token 43 | } | ^
s603729564
p03804
C++
#pragma GCC optimize ("O3") #pragma GCC target ("sse4") #include <bits/stdc++.h> #include <ext/pb_ds/tree_policy.hpp> #include <ext/pb_ds/assoc_container.hpp> #include <iomanip> using namespace std; using namespace __gnu_pbds; typedef long long ll; typedef long double ld; typedef pair<int, int> pi; typedef pair<ll...
a.cc: In function 'int main()': a.cc:102:24: error: 'a' was not declared in this scope 102 | cout << "No"<<endl;a | ^
s220837755
p03804
C++
/* これを入れて実行 g++ code.cpp ./a.out */ #include <iostream> #include <vector> #include <string> #include <queue> #include <algorithm> #include <utility> #include <set> #include <map> #include <cmath> #include <tuple> #include <iomanip> using namespace std; typedef long long ll; typedef long double ld; int dy4[4] = {-1,...
a.cc: In function 'int main()': a.cc:68:20: error: expected ';' before '}' token 68 | cin >> a[i] | ^ | ; 69 | } | ~
s017280313
p03804
C++
#include<iostream> #include<string> #include<vector> #include<algorithm> #include<bits/stdc++.h> #include<cmath> #include<bitset> #define ll long long #define FOR(i,a,b) for(int i=(a);i<(b);++i) #define FFOR(i,a,b) for(int i=(a);i<=(b);++i) #define REP(i,n) FOR(i,0,n) #define RREP(i,n) FFOR(i,0,n) #define SORT(V) sor...
a.cc: In function 'int main()': a.cc:28:10: error: conflicting declaration 'std::string A [N]' 28 | string A[N],B[M]; | ^ a.cc:22:7: note: previous declaration as 'int A [100][100]' 22 | int A[100][100]; | ^ a.cc:29:29: error: no match for 'operator>>' (operand types are 'std::istre...
s642627320
p03804
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; bool e=true; cin>>a>>b; vector<string> c(a),d(b); rep(i,a)cin>>c.at(i); rep(i,b)ci...
a.cc: In function 'int main()': a.cc:17:35: error: expected unqualified-id before '(' token 17 | if(d.at(k).at(l)!=c.at(k+i).(l+j) | ^ a.cc:18:22: error: expected ')' before ';' token 18 | e=false;k=l=b; | ^ | ...
s404805862
p03804
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; bool e=true; cin>>a>>b; vector<string> c(a),d(b); rep(i,a)cin>>c.at(i); rep(i,b)ci...
a.cc: In function 'int main()': a.cc:17:35: error: expected unqualified-id before '(' token 17 | if(d.at(k).at(l)!=c.at(k+i).(l+j)) | ^ a.cc:18:21: error: 'm' was not declared in this scope 18 | e=false;k=l=m; | ^
s365460335
p03804
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 n,m; string b[60],p[60]; bool match(in...
a.cc: In function 'int main()': a.cc:27:7: error: 'i' was not declared in this scope 27 | for(i=0;i<=n-m;i++){ | ^
s720471910
p03804
C++
I am trying to implement real-time tracking using templates. I wish to update the template with every frame. The main modifications I have done are: 1) separated the template matching and minmaxLoc into separate modules namely, TplMatch() and minmax() functions, respectively. 2) Inside the track() function, the sele...
a.cc:6:103: warning: multi-character literal with 10 characters exceeds 'int' size of 4 bytes 6 | 2) Inside the track() function, the select_flag is kept always true so that new template is copied to 'myTemplate' with every iteration. | ...
s096574744
p03804
C++
#include "stdio.h" #include "opencv2/highgui/highgui.hpp" #include "iostream" #include "opencv2/core/core.hpp" #include "opencv2/features2d/features2d.hpp" #include "opencv2/highgui/highgui.hpp" #include "opencv2/calib3d/calib3d.hpp" #include "opencv2/nonfree/nonfree.hpp" #include "opencv/cv.h" using namespace cv; usi...
a.cc:2:10: fatal error: opencv2/highgui/highgui.hpp: No such file or directory 2 | #include "opencv2/highgui/highgui.hpp" | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ compilation terminated.
s089886602
p03804
C++
#include "Matrix.h" Matrix::Matrix(int sizeR, int sizeC, double val){ M = sizeR; // Set number of rows. N = sizeC; // Set number of cols. data = new double[sizeR * sizeC]; } Matrix::Matrix(int sizeR, int sizeC, double* inputData){ M = sizeR; N = sizeC; data = new double[sizeR...
a.cc:1:10: fatal error: Matrix.h: No such file or directory 1 | #include "Matrix.h" | ^~~~~~~~~~ compilation terminated.
s363858660
p03804
C++
#include "Matrix.h" Matrix::Matrix(int sizeR, int sizeC, double val){ M = sizeR; // Set number of rows. N = sizeC; // Set number of cols. data = new double[sizeR * sizeC]; } Matrix::Matrix(int sizeR, int sizeC, double* inputData){ M = sizeR; N = sizeC; data = new double[sizeR...
a.cc:1:10: fatal error: Matrix.h: No such file or directory 1 | #include "Matrix.h" | ^~~~~~~~~~ compilation terminated.
s981249058
p03804
C++
#include "opencv2/imgcodecs.hpp" #include "opencv2/highgui.hpp" #include "opencv2/imgproc.hpp" #include <iostream> using namespace std; using namespace cv; bool use_mask; Mat img; Mat templ; Mat mask; Mat result; const char* image_window = "Source Image"; const char* result_window = "Result window"; int match_method; i...
a.cc:1:10: fatal error: opencv2/imgcodecs.hpp: No such file or directory 1 | #include "opencv2/imgcodecs.hpp" | ^~~~~~~~~~~~~~~~~~~~~~~ compilation terminated.
s736566904
p03804
C++
#include "opencv2/highgui/highgui.hpp" #include "opencv2/imgproc/imgproc.hpp" #include <iostream> #include <stdio.h> using namespace std; using namespace cv; /// Global Variables Mat img; Mat templ; Mat result; char* image_window = "Source Image"; char* result_window = "Result window"; int match_method; int max_Trac...
a.cc:1:10: fatal error: opencv2/highgui/highgui.hpp: No such file or directory 1 | #include "opencv2/highgui/highgui.hpp" | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ compilation terminated.
s661525456
p03804
C++
#include "common.hpp" #include <vector> #include <cstring> namespace CAROTENE_NS { #define ENABLE4LINESMATCHING false //Disabled since overall time for simultaneous 4 lines matching is greater than //time for simultaneous 2 lines matching for the same amount of data bool isMatch...
a.cc:1:10: fatal error: common.hpp: No such file or directory 1 | #include "common.hpp" | ^~~~~~~~~~~~ compilation terminated.
s085202411
p03804
C++
#include "opencv2/imgcodecs.hpp" #include "opencv2/highgui.hpp" #include "opencv2/imgproc.hpp" #include <iostream> using namespace std; using namespace cv; //! [declare] /// Global Variables bool use_mask; Mat img; Mat templ; Mat mask; Mat result; const char* image_window = "Source Image"; const char* result_window =...
a.cc:1:10: fatal error: opencv2/imgcodecs.hpp: No such file or directory 1 | #include "opencv2/imgcodecs.hpp" | ^~~~~~~~~~~~~~~~~~~~~~~ compilation terminated.
s046140232
p03804
C++
include<bits/stdc++.h> using namespace std; int main(){ int n , m ; cin>>n>>m; char x[n][n]; char k[m][m]; for( int i=0;i<n;i++) scanf("%s",&x[i]); for( int i=0;i<m;i++) scanf("%s",&k[i]); for(int i=0;i<n;i++){ for(int j=0;j<n;j++){ int counter=0; for(int c=0; c<m;c++){ fo...
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 | cin>>n>>m; | ^~~ a.cc:9:9: error: 'scanf' was not declared in this scope 9 | scanf("%s",&x[i]); ...
s985753357
p03804
C++
#include<iostream> #include<string> using namespace std; int main() { int n,m; bool z=false; cout<<"please enter the length of image A \n"; cin>>n; cout<<"please enter the length of image B \n"; cin>>m; char A[n][n],B[m][m]; for(int i=0;i<n;i++) { for(int j=0;j<n;j++) gets(A[i][j]); } for(int i=0;i<m;i++) { for(in...
a.cc: In function 'int main()': a.cc:16:17: error: 'gets' was not declared in this scope; did you mean 'getw'? 16 | gets(A[i][j]); | ^~~~ | getw a.cc:21:17: error: 'gets' was not declared in this scope; did you mean 'getw'? 21 | gets(B[i]...
s530761881
p03804
C++
#include<bits/stdc++.h> using namespace std; char x[55][55]; char y[55][55]; int main() { int a,b,p,cnt=0; cin>>a>>b; for(int i=0; i<a; i++){ for(int j=0; j<a; j++){ cin>>x[i][j]; } } for(int i=0; i<b; i++){ for(int j=0; j<b; j++){ cin>>y[i][j]; } } if(...
a.cc: In function 'int main()': a.cc:45:9: error: expected '}' before 'else' 45 | else | ^~~~ a.cc:43:22: note: to match this '{' 43 | else if(b>a ){ | ^
s278604966
p03804
C++
#include <bits/stdc++.h> using namespace std; int main() { int n,m; scanf("%d %d",&n,&m); char arr[n][n]; char arr1[m][m]; for(int i=0; i<n; i++) scanf("%s",arr[i]); for(int i=0; i<m; i++) scanf("%s",arr1[i]); for(int i=0; i<n; i++) { for(int j=0; j<n; j++) { ...
a.cc: In function 'int main()': a.cc:33:22: error: expected ';' before '}' token 33 | printf("No\n");33 | ^ | ; 34 | } | ~
s666805788
p03804
C++
#include <bits/stdc++.h> using namespace std; int main() { int n,m; cin>>m>>n; char arr[n][n]; char arr1[m][m]; for (int i=0;i<n;i++) scanf("%s",arr[i]); for (int i=0;i<n;i++) scanf("%s",arr1[i]); for (int i=0;i<n;i++) { for (int j=0;j<n;j++) { int count=0; for (int a=0;a<m;a++) { for (int b=0;b<m;b++) { if(arr1[...
a.cc: In function 'int main()': a.cc:28:9: error: expected ')' before ';' token 28 | count ++; | ^ | ) a.cc:27:3: note: to match this '(' 27 | if(arr1[a][b]==arr [i+a][j+b]; | ^ a.cc:35:13: error: expected ';' before '}' token 35 | printf("no") | ^ | ...
s286313502
p03804
C++
#include <bits/stdc++.h> using namespace std; int main() { int n,m; cin>>n>m; char arr[n][n]; char arr1[m][m]; for (int i=0;i<n;i++) scanf("%s",arr[i]); for (int i=0;i<n;i++) scanf("%s",arr1[i]); for (int i=0;i<n;i++) { for (int j=0;j<n;j++) { int count=0; for (int a=0;a<m;a++) { for (int b=0;b<m;b++) { if(arr1[a][...
a.cc: In function 'int main()': a.cc:6:7: error: no match for 'operator>' (operand types are 'std::basic_istream<char>::__istream_type' {aka 'std::basic_istream<char>'} and 'int') 6 | cin>>n>m; | ~~~~~~^~ | | | | | int | std::basic_istream<char>::__istream_type {aka std::basic_i...
s172101532
p03804
C
#include <bits/stdc++.h> using namespace std; int main() { int n,m; scanf("%d %d",&n,&m); char arr[n][n]; char arr1[m][m]; for(int i=0; i<n; i++) scanf("%s",arr[i]); for(int i=0; i<m; i++) scanf("%s",arr1[i]); for(int i=0; i<n; i++) { for(int j=0; j<n; j++) { ...
main.c:1:10: fatal error: bits/stdc++.h: No such file or directory 1 | #include <bits/stdc++.h> | ^~~~~~~~~~~~~~~ compilation terminated.
s468277617
p03804
C++
#include <bits/stdc++.h> using namespace std; int main() { int n,m; scanf("%d %d",&n,&m); char ar[n][n]; char ar[m][m]; for(int i=0; i<n; i++) scanf("%s",ar[i]); for(int i=0; i<m; i++) scanf("%s",ar1[i]); for(int i=0; i<n; i++) { for(int j=0; j<n; j++) {...
a.cc: In function 'int main()': a.cc:10:6: error: conflicting declaration 'char ar [m][m]' 10 | char ar[m][m]; | ^~ a.cc:9:6: note: previous declaration as 'char ar [n][n]' 9 | char ar[n][n]; | ^~ a.cc:15:20: error: 'ar1' was not declared in this scope; did you mean 'ar'? 15 | sc...
s839833892
p03804
C++
# Python program to illustrate # template matching import cv2 import numpy as np # Read the main image img_rgb = cv2.imread('mainimage.jpg'). # Convert it to grayscale img_gray = cv2.cvtColor(img_rgb, cv2.COLOR_BGR2GRAY) # Read the template template = cv2.imread('template',0) # Store width and he...
a.cc:1:3: error: invalid preprocessing directive #Python 1 | # Python program to illustrate | ^~~~~~ a.cc:2:3: error: invalid preprocessing directive #template 2 | # template matching | ^~~~~~~~ a.cc:6:3: error: invalid preprocessing directive #Read 6 | # Read the main image | ^~~~ a...
s013944183
p03804
C++
// loop through the search image for ( size_t x = 0; x <= S_cols - T_cols; x++ ) { for ( size_t y = 0; y <= S_rows - T_rows; y++ ) { SAD = 0.0; // loop through the template image for ( size_t j = 0; j < T_cols; j++ ) for ( size_t i = 0; i < T_rows; i++ ) { pixe...
a.cc:3:1: error: expected unqualified-id before 'for' 3 | for ( size_t x = 0; x <= S_cols - T_cols; x++ ) { | ^~~ a.cc:3:21: error: 'x' does not name a type 3 | for ( size_t x = 0; x <= S_cols - T_cols; x++ ) { | ^ a.cc:3:43: error: 'x' does not name a type 3 | for ( size_t x...
s737035085
p03804
C++
#include <iostream> #include <string> using namespace std; int main(){ int n,m,w1=0,w2=0,b1=0,b2=0; cin>>n>>m; char a[n][n]; char b[m][m]; for(int i=0;i<n;i++){ for(int j=0;j<n;j++){ cin>>a[i][j]; } } for(int i=0;i<m;i++){ for(int j=0;j<m;j++){ cin>>b[i][j]; } } for(int i=0;i<n;i++){ for(int j=0;j<n;j++){ if...
a.cc: In function 'int main()': a.cc:21:27: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] 21 | if(a[i][j]=="."){ | ~~~~~~~^~~~~ a.cc:30:27: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] 30 | if(b...
s690077811
p03804
C++
#include<bits/stdc++.h> using namespace std; int main(){ int a,b,c; c=0; cin>>a>>b; vector<vector<char>> c(a,vector<char>(a)); vector<vector<char>> d(b,vector<char>(b)); for(int i=0;i<a;i++){ for(int j=0;j<a;j++) cin>>c.at(i).at(j); } for(int i=0;i<b;i++){ for(int j=0;j<b;j++) cin>>...
a.cc: In function 'int main()': a.cc:8:24: error: conflicting declaration 'std::vector<std::vector<char> > c' 8 | vector<vector<char>> c(a,vector<char>(a)); | ^ a.cc:5:11: note: previous declaration as 'int c' 5 | int a,b,c; | ^ a.cc:12:14: error: request for mem...
s694311545
p03804
C++
#include<bits/stdc++.h> #include<cstring> using namespace std; string s, s1, s2; int a, b,W=0; char ch[55][55]; char ch1[55][55]; int main() { cin>>a,b; for(int i=0;i<=a;i++){ for(int j=0;j<a;j++) cin>>ch[i][j]; for(int i=0;i<b;i++){ for(int j=0;j<b;j++){ cin>>ch1[i][j]; if(ch[i][j]==ch1[i][j]){ ...
a.cc: In function 'int main()': a.cc:34:10: error: expected '}' at end of input 34 | } | ^ a.cc:9:1: note: to match this '{' 9 | { | ^
s875907525
p03804
C++
#include<bits/stdc++.h> #include<cstring> using namespace std; { int a, b; onst int n=le7 =9; char ch[55][55]; char ch1[55][55]; int main() cin>>a,b; for(int i=0;i<a;i++) for(int j=0;j<a;j++) cin>>ch[i][j]; for(int i=0;i<a;i++) for(int j=0;j<a;j++) cin>>ch[i][j]; if(ch[i][j]==ch1[i][j]){ cout<<"Y...
a.cc:6:1: error: expected unqualified-id before '{' token 6 | { | ^
s705998820
p03804
C++
#include<bits/stdc++.h> #include<cstring> using namespace std; string s, s1, s2; int a, b; const int n=le7 =9; char ch[55][55]; char ch1[55][55]; int main() { cin>>a,b; for(int i=0;i<a;i++) for(int j=0;j<a;j++) cin>>ch[i][j]; for(int i=0;i<a;i++) for(int j=0;j<a;j++) cin>>ch[i][j]; if(ch[i][j]==ch1[i][j])...
a.cc:6:13: error: 'le7' was not declared in this scope 6 | const int n=le7 =9; | ^~~ a.cc: In function 'int main()': a.cc:18:15: error: 'i' was not declared in this scope 18 | if(ch[i][j]==ch1[i][j]){ | ^ a.cc:18:18: error: 'j' was not declared in this scope 18 | ...
s637845237
p03804
C
#include<bits/stdc++.h> #define rep(i,n) for(int (i) = 0;(i) < (n);(i)++) #define SORT(c) sort((c).begin(),(c).end()) #define MOD 1000000007 //S.size() //配列名.Length() using namespace std; typedef vector<int> VI; typedef vector<string> VS; typedef vector<char> VC; typedef vector<bool> VB; typedef unsigned long long ll;...
main.c:1:9: fatal error: bits/stdc++.h: No such file or directory 1 | #include<bits/stdc++.h> | ^~~~~~~~~~~~~~~ compilation terminated.
s894041158
p03804
C++
#include<bits/stdc++.h> using namespace std; int main(){ int n,m,yes=0;cin>>n>>m; vector<string> a(n),b(m); for(int i=0;i<n;i++)cin>>a.at(i); for(int j=0;j<m;j++)cin>>b.at(j); for(int k=0;k<n-m+1){ for(int l=0;l<n-m+1){ int x=0; for(int p=l;p<l+m-1;p++){ if(a.at(k+p).substr(l,m)!=b.at(...
a.cc: In function 'int main()': a.cc:8:22: error: expected ';' before ')' token 8 | for(int k=0;k<n-m+1){ | ^ | ; a.cc:9:24: error: expected ';' before ')' token 9 | for(int l=0;l<n-m+1){ | ^ | ...
s250821072
p03804
C++
4 1 .... .... .... .... #
a.cc:1:1: error: expected unqualified-id before numeric constant 1 | 4 1 | ^
s524773039
p03804
C++
#include<bits/stdc++.h> using namespace std; int main(){ int N,M; cin>>N>>M; bool flag=false; vector<vector<char>>A<N,vector<char>(N)>; for(int i=0;i<N;i++){ for(int j=0;j<M;j++{ cin>>A.at(i).at(j); } } vector<vector<char>>B(M,vector<char>(M)); ...
a.cc: In function 'int main()': a.cc:9:24: error: expected initializer before '<' token 9 | vector<vector<char>>A<N,vector<char>(N)>; | ^ a.cc:12:24: error: expected ')' before '{' token 12 | for(int j=0;j<M;j++{ | ~ ^ | )...
s062656882
p03804
C++
#include <iostream> #include <vector> using namespace std; int main(void){ int N,M; cin >> N >> M; vector<vector<char>>A(N,vector<char>(N)); for(int i=0;i<N;i++){ for(int j=0;j<N;j++){ cin >> A[i][j]; } } vector<vector<char>>B(M,vector<char>(M)); for(int i=0;i<M;i++){ for(int j=0;j...
a.cc: In function 'int main()': a.cc:25:21: error: 'm' was not declared in this scope 25 | for(int j=0;j<N-m;j++){ | ^
s532808438
p03804
C++
#include <bits/stdc++.h> using namespace std; #define REP(i, n) for(int i=0; i<n;i++) #define REPR(i, n) for(int i=n-1 ; i>=0; i--) #define FOR(i, m, n) for(int i=m; i<n; i++) #define INF 2e9 #define ll long long int main(){ int i, j, n, m, k, l; cin>>n>>m; char a[n][n], b[m][m]; for(i=0; i<n; i++){ ...
a.cc: In function 'int main()': a.cc:21:17: error: expected ',' or ';' before ':' token 21 | int flag = 0: | ^ a.cc:22:26: error: expected ';' before ')' token 22 | for(i=0; i<n-m+1; i++){ | ^ | ;
s036941148
p03804
C++
#include <iostream> #include <vector> #include <map> #include <algorithm> #include <cstdlib> #include <cmath> #include <numeric> #include <tuple> #include <stack> #define rep(i,n) for (int i = 0; i < (n); ++i) #define all(x) x.begin(),x.end() #define rall(x) x.rbegin(),x.rend() #define print(s) cout << s << endl typede...
a.cc:61:1: error: expected declaration before '}' token 61 | } | ^
s175427374
p03804
C++
#include <bits/stdc++.h> using namespace std; typedef long long ll; typedef unsigned long long ull; int n,m; vector<string> a; vector<string> b; bool check(int h, int w){ for(int i=0;i<m&&h<n;i++){ if(m[i]==a[h].substr(w,m)) h++; else return false; } return true; } int main(){ cin>>n>>m; a.resize(n...
a.cc: In function 'bool check(int, int)': a.cc:12:9: error: invalid types 'int[int]' for array subscript 12 | if(m[i]==a[h].substr(w,m)) h++; | ^
s486714813
p03804
C++
#include <bits/stdc++.h> using namespace std; int main() { cin >> n >> m; vector<string> a(n), b(m); for (auto&& ai : a) cin >> ai; for (auto&& bi : b) cin >> bi; bool found = false; for (int r = 0; r < n-m; r++) { for (int c = 0; c < n-m; c++) { found = true; for (int i = 0; i < m; i++) if (a[i+...
a.cc: In function 'int main()': a.cc:7:16: error: 'n' was not declared in this scope; did you mean 'yn'? 7 | cin >> n >> m; | ^ | yn a.cc:7:21: error: 'm' was not declared in this scope; did you mean 'tm'? 7 | cin >> n >> m; | ^...
s335326508
p03804
C++
#include <bits/stdc++.h> #define rep(i, n) for(int i = 0; i < (int)n; i++) #define rfor(i, a, b) for(int i = a; i < (int)b; i++) #define all(ary) (ary).begin(), (ary).end() #define debug(x) cerr << #x << ": " << x << '\n' const int INF = 100100100; const int MOD = (int)1e9 + 7; using namespace std; using v = vector<int...
a.cc: In function 'int main(int, char**)': a.cc:40:17: error: jump to label 'yes' 40 | yes: | ^~~ a.cc:22:37: note: from here 22 | if(A[0][0] == B[0][0]) goto yes; | ^~~ a.cc:27:13: note: crosses initialization of 'int j' ...
s123694733
p03804
C++
#include <bits/stdc++.h> using namespace std; int main() { int N, M; cin >> N >> M; char A[N][N], B[M][M]; for (int i = 0; i < N; i++) { for (int j = 0; j < N; i++) { cin >> A[i][j]; } } for (int i = 0; i < M; i++) { for (int j = 0; j < M; i++) { cin >> B[i][j]; } } fo...
a.cc: In function 'int main()': a.cc:22:18: error: 'ture' was not declared in this scope 22 | bool ans = ture; | ^~~~ a.cc:31:17: error: 'Yes' was not declared in this scope 31 | cout << Yes; | ^~~ a.cc:36:11: error: 'No' was not declared in this scope; d...
s874264851
p03804
C++
#include <bits/stdc++.h> using namespace std; int main() { int n, m; cin >> n >> m; char a[50], b[50]; for(int i = 0; i < n; i++) { for(int j = 0; j < n; j++) { cin >> a[i][j]; } } for(int i = 0; i < m; i++) { for(int j = 0; j < m; j++) { cin >> b[i][j]; } } bool e = 0; fo...
a.cc: In function 'int main()': a.cc:10:18: error: invalid types 'char[int]' for array subscript 10 | cin >> a[i][j]; | ^ a.cc:15:18: error: invalid types 'char[int]' for array subscript 15 | cin >> b[i][j]; | ^ a.cc:27:22: error: invalid types 'char[int]'...
s502540121
p03804
C++
4 1 .... .... .... .... #
a.cc:1:1: error: expected unqualified-id before numeric constant 1 | 4 1 | ^
s113025992
p03804
C++
include <iostream> #include <string> #include <algorithm> #include <cstdlib> #include <cmath> #include <queue> #include <vector> #include <set> #include <map> #include <numeric> using namespace std; int main(){ int n,m; cin>>n>>m; vector<string> a(n),b(m); for(int i=0;i<n;i++)cin>>a[i]; for(int i=...
a.cc:1:1: error: 'include' does not name a type 1 | include <iostream> | ^~~~~~~ In file included from /usr/include/c++/14/bits/char_traits.h:42, from /usr/include/c++/14/string:42, from a.cc:2: /usr/include/c++/14/bits/postypes.h:68:11: error: 'ptrdiff_t' does not name a typ...
s309216811
p03804
C++
#include<bits/stdc++.h> using namespace std; int main(void){ int N,M; cin>>N>>M; string A[N],B[M]; for(int i=0;i<N;i++) cin>>A[i]; for(int i=0;i<M;i++) cin>>B[i]; bool flag; for(int i=0;i<=N-M;i++){ for(int j=0;j<=N-M;j++){ flag=true; for(in...
a.cc: In function 'int main()': a.cc:29:27: error: invalid operands of types 'const char [3]' and '<unresolved overloaded function type>' to binary 'operator<<' 29 | cout<<(flag?"Yes":"No"<<endl; | ~~~~^~~~~~ a.cc:29:33: error: expected ')' before ';' token 29 | cout<<(flag?"Ye...
s837322721
p03804
C++
#include <bits/stdc++.h> using namespace std; int main() { int n, m; cin >> n >> m; string a[n], b[m]; for (int i = 0; i < n; i++) { cin >> a[i]; } for (int i = 0; i < m; i++) { cin >> b[i]; } for (int i = m; i <= n; i++) { for (int j = m; i <= n; j++) { bool contains = true; fo...
a.cc: In function 'int main()': a.cc:30:7: error: expected ';' before string constant 30 | cout "No" << endl; | ^~~~~ | ;
s001249978
p03804
C++
#include <bits/stdc++.h> using namespace std; int main() { int n, m; cin >> n >> m; string a[n], b[m]; for (int i = 0; i < n; i++) { cin >> a[i]; } for (int i = 0; i < m; i++) { cin >> b[i]; } for (int i = m; i <= n; i++) { for (int j = m; i <= n; j++) { bool contains = true; fo...
a.cc: In function 'int main()': a.cc:19:23: error: no match for 'operator!=' (operand types are '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} and 'std::string' {aka 'std::__cxx11::basic_string<char>'}) 19 | if (a[k][l] != b[k - i + m]) { In file included from /usr/include...
s234095978
p03804
C++
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (int i = 0; i < n; i++) #define repp(i, n, m) for (int i = (int)(n); i < (int)(m); i++) #define rrep(i, n, m) for (int i = n; i >= m; i--) #define p(a, b) printf(a, b); #define c(s) cout << (s) << endl; #define yes cout << "Yes" << endl; #define no cou...
a.cc: In function 'int main()': a.cc:42:24: error: 'ture' was not declared in this scope 42 | if(flag)ok=ture; | ^~~~
s686231348
p03804
C
#include <stdbool.h> #include <stdio.h> #include <stdlib.h> #include <inttypes.h> #include <ctype.h> #include <stdint.h> #include <string.h> #include <wchar.h> #define N_MAX (100) #define P_MAX (100) #define DP_ARRAY_SIZE (N_MAX * P_MAX / 32 + 1) #define MIN(a, b) ((a) < (b) ? (a) : (b)) #define MAX(a, b) ((a) > (b) ...
main.c: In function 'main': main.c:86:63: error: subscripted value is neither array nor pointer nor vector 86 | if (A[rowOffset + row][colOffset + col] != B[row][col]) { | ^ main.c:86:90: error: subscripted va...
s005725552
p03804
C++
#include <bits/stdc++.h> using namespace std; int main(){ int n, m, i, j, k, l, f = 0; cin << n << m; char a[n][n], b[m][m]; for(i=0; i<n; i++){ for(j=0; j<n; j++){ cin >> a[i][j]; } } for(i=0; i<m; i++){ for(j=0; j<m; j++){ cin >> b[i][j]; ...
a.cc: In function 'int main()': a.cc:6:9: error: no match for 'operator<<' (operand types are 'std::istream' {aka 'std::basic_istream<char>'} and 'int') 6 | cin << n << m; | ~~~ ^~ ~ | | | | | int | std::istream {aka std::basic_istream<char>} a.cc:6:9: note: can...
s344378799
p03804
C++
#include <bits/stdc++.h> using namespace std; int main(){ int n, m, i, j, k, l, b = 0; char a[n][n], b[m][m]; for(i=0; i<n; i++){ for(j=0; j<n; j++){ cin >> a[i][j] } } for(i=0; i<m; i++){ for(j=0; j<m; j++){ cin >> b[i][j]; } } for(i=...
a.cc: In function 'int main()': a.cc:6:19: error: conflicting declaration 'char b [m][m]' 6 | char a[n][n], b[m][m]; | ^ a.cc:5:27: note: previous declaration as 'int b' 5 | int n, m, i, j, k, l, b = 0; | ^ a.cc:9:27: error: expected ';' before '}'...
s937526391
p03804
C++
#include <bits/stdc++.h> typedef long long ll; const int INF = 1e9; const ll LINF = 1e18; const int MOD = 1e9 + 7; using namespace std; int n, m; vector<string> a(60); vector<string> b(60); bool match(int x, int y) { for (int i = 0; i < m; i++) { for (int j = 0; j < M; j++) { if (a[x + i][y + j] != b[i][j...
a.cc: In function 'bool match(int, int)': a.cc:14:25: error: 'M' was not declared in this scope 14 | for (int j = 0; j < M; j++) { | ^