submission_id
stringlengths
10
10
problem_id
stringlengths
6
6
language
stringclasses
3 values
code
stringlengths
1
522k
compiler_output
stringlengths
43
10.2k
s047339493
p03729
C++
#include <iostream> #include <string> using namespace std; int main(){ string A; string B; string C; cin<<A<<B<<C; char b = B[0]; char c = C[0]; char a = A.back(); char d = B.back(); if((a==b)&&(c==d)){ cout<<"YES"<<endl;} else{ cout<<"NO"<<endl;} return 0; }
a.cc: In function 'int main()': a.cc:8:12: error: no match for 'operator<<' (operand types are 'std::istream' {aka 'std::basic_istream<char>'} and 'std::string' {aka 'std::__cxx11::basic_string<char>'}) 8 | cin<<A<<B<<C; | ~~~^~~ | | | | | std::string {aka std...
s518608770
p03729
C++
#include <iostream> #include <string> using namespace std; int main(){ string A; string B; string C; cin<<A<<B<<C; char b = B[0]; char c = C[0]; char a = A.back(); char d = B.back(); if((a==b)&&(c==d)){ cout<<"YES"<<endl;} else{ cout<<"NO"<<endl;} return 0; }
a.cc: In function 'int main()': a.cc:8:12: error: no match for 'operator<<' (operand types are 'std::istream' {aka 'std::basic_istream<char>'} and 'std::string' {aka 'std::__cxx11::basic_string<char>'}) 8 | cin<<A<<B<<C; | ~~~^~~ | | | | | std::string {aka std...
s314484785
p03729
C++
#include<iostream> using namespace std; int main(){ string a,b,c; cin>>a>>b>>c; if(a[a.size()-1]==b[0]&&b[b.size()-1]==c[0])cout<<"yes"<<endl; else cout<<"no"<endl; }
a.cc: In function 'int main()': a.cc:7:16: error: no match for 'operator<' (operand types are 'std::basic_ostream<char>' and '<unresolved overloaded function type>') 7 | else cout<<"no"<endl; | ~~~~~~~~~~^~~~~ In file included from /usr/include/c++/14/string:48, from /usr/include/c++/14/...
s547661540
p03729
C++
include<iostream> #include<string> using namespace std; int main(){ string A,B,C; cin>>A>>B>>C; if(A[A.size()-1]==B[0] && B[B.size()-1]==C[0])cout<<"YES"<<endl; else cout<<"NO"<<endl; return 0; }
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 type...
s793552470
p03729
C++
package main import ( "fmt" ) func main(){ var a,b,c string fmt.Scan(&a, &b, &c) if a[len(a) - 1] == b[0] && b[len(b) - 1] == c[0] { fmt.Println("YES") } else { fmt.Println("NO") } }
a.cc:1:1: error: 'package' does not name a type 1 | package main | ^~~~~~~
s811602162
p03729
C++
#include<iostream> #include<string> using namespace std; int main() { string a, b, c; cin >> a >> b >> c; if ((a.back() == b.front()) && (b.back() == c.front())) cout << "YES" << endl; else cout << "NO" << endl; } ~
a.cc:14:2: error: expected class-name at end of input 14 | ~ | ^
s356952094
p03729
C++
#include <bits/stdc++.h> #define itn int #define LL long long #define pb push_back #define mp make_pair #define x first #define y second #define all(x) (x).begin(), (x) end() #define sz(x) (int)((x).size()) #define REP(i,a,b) for(int i = a ; i <= b; i ++) using namespace std; inline int GetInt(){ int x; scanf("%d"...
a.cc:36:11: error: stray '#' in program 36 | */#ifndef ONLINE_JUDGE | ^ a.cc:39:10: error: #endif without #if 39 | #endif*/ | ^~~~~ a.cc: In function 'int main()': a.cc:36:10: error: expected primary-expression before '/' token 36 | */#ifndef ONLINE_JUDGE ...
s680936907
p03729
C
main(f,s){for(;read(0,s,1);s++)s[-1]-32||(f&=s[-2]==*s);puts(f?"YES":"NO");}
main.c:1:1: error: return type defaults to 'int' [-Wimplicit-int] 1 | main(f,s){for(;read(0,s,1);s++)s[-1]-32||(f&=s[-2]==*s);puts(f?"YES":"NO");} | ^~~~ main.c: In function 'main': main.c:1:1: error: type of 'f' defaults to 'int' [-Wimplicit-int] main.c:1:1: error: type of 's' defaults to 'int' [-Wimplicit-i...
s316395157
p03729
C++
#include <iostream> #include <string> int main(){ string a[2]; cin >> a[0] >>a[1] >>a[2]; if (a[0].back() == a[1].front() && a[1].back() == a[2].front()) { cout << "YES"; }else{ cout << "NO"; } return 0; }
a.cc: In function 'int main()': a.cc:4:1: error: 'string' was not declared in this scope 4 | string a[2]; | ^~~~~~ a.cc:4:1: note: suggested alternatives: In file included from /usr/include/c++/14/iosfwd:41, from /usr/include/c++/14/ios:40, from /usr/include/c++/14/ostream:40...
s494705837
p03729
C++
a,b,c=gets.split.map &:to_i; b.times{|i|if a%b*i%b==c;puts"YES";exit;end} puts"NO"
a.cc:1:1: error: 'a' does not name a type 1 | a,b,c=gets.split.map &:to_i; | ^ a.cc:2:1: error: 'b' does not name a type 2 | b.times{|i|if a%b*i%b==c;puts"YES";exit;end} | ^ a.cc:3:1: error: 'puts' does not name a type 3 | puts"NO" | ^~~~
s189993696
p03729
Java
ㅁㄷㅎ
Main.java:1: error: reached end of file while parsing ??? ^ 1 error
s577519512
p03729
C++
#include<stdio.h> #include<string.h> char A[],B[],C[]; int main(){
a.cc:4:6: error: storage size of 'A' isn't known 4 | char A[],B[],C[]; | ^ a.cc:4:10: error: storage size of 'B' isn't known 4 | char A[],B[],C[]; | ^ a.cc:4:14: error: storage size of 'C' isn't known 4 | char A[],B[],C[]; | ^ a.cc: In function 'int main()': a.cc...
s769046323
p03729
C++
#include <iostream> #include<stack> #include<string> #include<stdio.h> using namespace std; int main() { int n, w, price[100], weight[100], max = 1; int weightg[20000] = { 0 }, priceg[20000] = { 0 }; cin >> n >> w; for (int i = 0; i < n; i++) { cin >> weight[i] >> price[i]; if (weight[i] <= w) { for (int z...
a.cc: In function 'int main()': a.cc:19:4: error: 'weighg' was not declared in this scope; did you mean 'weightg'? 19 | if(weighg[max]<=w){ | ^~~~~~ | weightg
s580079091
p03729
C++
#include <iostream> #include <algorithm> #include <cstdio> #define Max(a,b) a>b?a:b #define INF 10000000000000000 using namespace std; typedef long long LL; const int MAX = 110; LL weight[MAX], value[MAX]; LL W; pair<LL, LL> ps[1 << (MAX / 2)]; int n; void slove() ...
a.cc:11:23: warning: left shift count >= width of type [-Wshift-count-overflow] 11 | pair<LL, LL> ps[1 << (MAX / 2)]; | ~~^~~~~~~~~~~~ In file included from /usr/include/c++/14/bits/stl_algobase.h:71, from /usr/include/c++/14/string:51, from /usr/includ...
s070063568
p03729
C++
#include<stdio.h> #include<string.h> char s[50]; int main() { //freopen("in.txt","r",stdin); //freopen("out.txt","w",stdout); memset(s,0,sizeof(s)); while(gets(s)) { int flag=1; for(int i=0;i<strlen(s);i++) { //printf("i = %d\n",i); if(s[i]==' ') { if(s[i-1]!=s[i+1]) { flag=0; brea...
a.cc: In function 'int main()': a.cc:9:15: error: 'gets' was not declared in this scope; did you mean 'getw'? 9 | while(gets(s)) | ^~~~ | getw
s076094535
p03729
C++
#include<bits/stdc++.h> using namespace std; int main(){ string a,b,c; cin>>a>>b>>c; if(a[a.size()-1]==b[0]&&b[b.size()-1==c[0]) cout<<"YES"; else cout<<"NO"; }
a.cc: In function 'int main()': a.cc:6:43: error: expected ']' before ')' token 6 | if(a[a.size()-1]==b[0]&&b[b.size()-1==c[0]) | ^ | ]
s819633826
p03729
C
#include <stdio.h> int main(void) { int A, B, C; int i; scanf("%d %d %d", A, B, C); for ( i = 0; i < 10000000000000000; i++ ) { if ((A * i) % B == C ) { printf("YES"); } else { printf("NO"); ] } return 0; }
main.c: In function 'main': main.c:14:17: error: expected statement before ']' token 14 | ] | ^ main.c:18:1: error: expected declaration or statement at end of input 18 | } | ^
s118110918
p03729
C
#include <stdio.h> int main(void) { int A, B, C; int i; scanf("%d %d %d", A, B, C); for ( i = 0; i < 10000000000000000; i++ ) { if ((A * i) % B == C ) { printf("YES"); } else { printf("NO"); ] } return 0; }
main.c: In function 'main': main.c:14:17: error: expected statement before ']' token 14 | ] | ^ main.c:18:1: error: expected declaration or statement at end of input 18 | } | ^
s906805589
p03729
C++
cin>>A>>B>>C; court<<"YES"<<endl; court<<"NO"<<endl;
a.cc:1:1: error: 'cin' does not name a type 1 | cin>>A>>B>>C; | ^~~ a.cc:2:1: error: 'court' does not name a type 2 | court<<"YES"<<endl; | ^~~~~ a.cc:3:1: error: 'court' does not name a type 3 | court<<"NO"<<endl; | ^~~~~
s577982535
p03729
C++
#include <cstdio> #include <algorithm> #include <cassert> using namespace std; typedef long long ll; #ifdef _MSC_VER #pragma warning(disable: 4996) // Disable deprecation #endif char cbuf1[10000]; char cbuf2[10000]; char cbuf3[10000]; int main() { scanf("%s % %s", cbuf1, cbuf2, cbuf3); int l1 = strlen(cbuf1); in...
a.cc: In function 'int main()': a.cc:18:18: error: 'strlen' was not declared in this scope 18 | int l1 = strlen(cbuf1); | ^~~~~~ a.cc:4:1: note: 'strlen' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>' 3 | #include <cassert> +++ |+#includ...
s211955324
p03729
C++
#include <iostream> #include <vector> #include <cstdint> #include <algorithm> using namespace std; int main() { uint32_t N, W; cin >> N >> W; vector<uint32_t> v_w(N,0), v_v(N,0); for (uint32_t n=0; n<N; ++n) cin >> v_w[n] >> v_v[n]; uint32_t dp[N+1][W+1]; for (uint32_t n=0; n<N+1; ++n) dp[n...
a.cc:40:5: error: 'dp' does not name a type 40 | dp[n][0] = 0; | ^~ a.cc:42:3: error: expected unqualified-id before 'for' 42 | for (uint32_t w=0; w<W+1; ++w) | ^~~ a.cc:42:22: error: 'w' does not name a type 42 | for (uint32_t w=0; w<W+1; ++w) | ^ a.cc:42:2...
s874595101
p03729
C++
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace abc60 { class Program { static void Main(string[] args) { string[] str = Console.ReadLine().Split(' '); string A = str[0]; string B =...
a.cc:1:7: error: expected nested-name-specifier before 'System' 1 | using System; | ^~~~~~ a.cc:2:7: error: expected nested-name-specifier before 'System' 2 | using System.Collections.Generic; | ^~~~~~ a.cc:3:7: error: expected nested-name-specifier before 'System' 3 | using System.L...
s788796562
p03729
C
#include <stdio.h> #include <string.h> int main(void) { char A[10], B[10], C[10]; scanf("%s %s %s", A, B, C); if ( A[stlen(A) - 1] == B[0] && B[strlen(B) - 1] == C[0] ) { printf("YES\n"); } else { printf("NO\n"); } return 0; }
main.c: In function 'main': main.c:9:16: error: implicit declaration of function 'stlen'; did you mean 'strlen'? [-Wimplicit-function-declaration] 9 | if ( A[stlen(A) - 1] == B[0] && B[strlen(B) - 1] == C[0] ) { | ^~~~~ | strlen
s655139033
p03729
C++
#include <cstdio> #include <vector> #include <string> #include <map> #include <cmath> #include <algorithm> #include <queue> #include <stack> #include <iostream> #pragma warning(disable:4996) using namespace std; int main() { char a[100], b[100], c[100]; while (~scanf("%s %s %s", a, b, c)) { if (b[0] == a[strl...
a.cc: In function 'int main()': a.cc:22:31: error: 'strlen' was not declared in this scope 22 | if (b[0] == a[strlen(a) - 1] && c[0] == b[strlen(b) - 1]) | ^~~~~~ a.cc:10:1: note: 'strlen' is defined in header '<cstring>'; this is probably fixable by adding '#inclu...
s426674354
p03729
C++
#include<stdio.h> #include<string.h> int main(){ char s[35]; gets(s); char *s1 = strtok(s, " "); char *s2 = strtok(NULL, " "); char *s3 = strtok(NULL, " "); int len1 = strlen(s1); int len2 = strlen(s2); if(s1[len1-1] == s2[0] && s2[len2-1] == s3[0]){ printf("YES\n"); }else{ printf("NO\n"); } retur...
a.cc: In function 'int main()': a.cc:5:9: error: 'gets' was not declared in this scope; did you mean 'getw'? 5 | gets(s); | ^~~~ | getw
s509027994
p03729
C++
#include "stdio.h" int _tmain(int argc, _TCHAR* argv[]) { //まずは変数を作って初期化 char A[40]; char Aend=' ',Bfirst=' ',Bend=' ',Cfirst=' '; int counter=0; for (int i=0; i<40; i++) { A[i]=' '; } //gets()で取得 gets(A); for (int i=0 ; i<40; i++) { //空白がどこのものなのかをチェックする if (A[i]==' ') counter++; //一個目の空白をチェッ...
a.cc:4:22: error: '_TCHAR' has not been declared 4 | int _tmain(int argc, _TCHAR* argv[]) | ^~~~~~ a.cc: In function 'int _tmain(int, int**)': a.cc:15:9: error: 'gets' was not declared in this scope; did you mean 'getw'? 15 | gets(A); | ^~~~ | getw
s831293276
p03729
C++
/* なせば大抵なんとかなる! */ #include <stdio.h> #include <string.h> #include <ctype.h> #include <stdlib.h> #include <math.h> #include <time.h> #define LLU unsigned long long int #define LL long long int #define LD long double #define LLUmax ULLONG_MAX #define LLmax LLONG_MAX #define dmax INT_MAX #define debug printf("asd\...
a.cc:278:1: error: 'Submission' does not name a type 278 | Submission | ^~~~~~~~~~
s149998324
p03729
C++
/* なせば大抵なんとかなる! */ #include <stdio.h> #include <string.h> #include <ctype.h> #include <stdlib.h> #include <math.h> #include <time.h> #define LLU unsigned long long int #define LL long long int #define LD long double #define LLUmax ULLONG_MAX #define LLmax LLONG_MAX #define dmax INT_MAX #define debug printf("asd\...
a.cc:278:1: error: 'Submission' does not name a type 278 | Submission | ^~~~~~~~~~
s358514263
p03729
Java
import java.util.Scanner; public class Main { public static void main(String[] args) { // ここにコードを挿入 Scanner s = new Scanner(System.in); String[] str = s.nextLine().split(" "); String a = str[0]; String b = str[1]; String c = str[2]; boolean ans = false; if(a.charAt(a.length() - 1) == b.charAt(0) && b...
Main.java:20: error: class, interface, enum, or record expected }import java.util.Scanner; ^ 1 error
s788243783
p03729
C++
#include <iostream> #include <cmath> #include <vector> #include <cstdio> #include <cstring> #include <cstdlib> #include <numeric> #include <limits> using namespace std; typedef long long ll; int main() { int n,t; scanf("%d%d",&n,&t); int a[200010]; for(int i=0;i<n;i++) scanf("%d",&a[i]); ...
a.cc: In function 'int main()': a.cc:21:5: error: 'sort' was not declared in this scope; did you mean 'sqrt'? 21 | sort(a,a+n); | ^~~~ | sqrt
s089314134
p03729
C++
using System; using System.Collections.Generic; using System.Linq; using System.Text; class Program { static void Main(string[] args) { string[] str = Console.ReadLine().Split(' '); int lengtha = str[0].Length; int lengthb = str[1].Length; string end_a = str[0].Substring(lengtha...
a.cc:1:7: error: expected nested-name-specifier before 'System' 1 | using System; | ^~~~~~ a.cc:2:7: error: expected nested-name-specifier before 'System' 2 | using System.Collections.Generic; | ^~~~~~ a.cc:3:7: error: expected nested-name-specifier before 'System' 3 | using System.L...
s598819920
p03729
C++
#include <stdio.h> #include <conio.h> int main(){ char A[3][31]; char B[11]; char C[11]; int c=0; scanf("%s",&A[0]); scanf("%s",&A[1]); scanf("%s",&A[2]); for(int j=0;j<2;j++){ for(int i=0;i<36;i++){ if(A[j][i]==0){ if(A[j][i-1]==A[j+1][0]){ c++; break; } printf("NO\n"); return 0; } }...
a.cc:2:10: fatal error: conio.h: No such file or directory 2 | #include <conio.h> | ^~~~~~~~~ compilation terminated.
s196764022
p03729
C++
#include<cstdio> #include<cstring> using namespace std; int main() { int MAX = 11; char a[MAX], b[MAX], c[MAX]; scanf("%s", a); scanf("%s", b); scanf("%s", c); if(a[strlen(a)-1] != b[0] || b[strlen(b)-1] != c[0]) { printf("No"); } else { printf("Yes"); }
a.cc: In function 'int main()': a.cc:17:2: error: expected '}' at end of input 17 | } | ^ a.cc:6:1: note: to match this '{' 6 | { | ^
s064388644
p03729
Java
import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc=new Scanner(System.in); int i=0; String rtn=""; StringBuffer[] sb=new StringBuffer[3]; for(i=0;i<3;i++){sb[i]=(sc.next());} rtn=(sb[0].reverse().substring(0,1)==sb[1].substring(0,1)&&sb[1].reverse().substring(0,1)==sb[2].reverse()...
Main.java:8: error: incompatible types: String cannot be converted to StringBuffer for(i=0;i<3;i++){sb[i]=(sc.next());} ^ 1 error
s751361676
p03729
C++
#include <iostream> #include <cstring> using namespace std; string A, B, C; void main(){ cin >> A >> B >> C; if (A[A.length() - 1] == B[0] && B[B.length()-1] == C[0]) { cout << "YES" << endl; } else { cout << "NO" << endl; } }
a.cc:8:1: error: '::main' must return 'int' 8 | void main(){ | ^~~~
s897010076
p03729
C++
#include <iostream> #include <string> using namespace std; string A, B, C; void main(){ cin >> A >> B >> C; if (A[A.length() - 1] == B[0] && B[B.length()-1] == C[0]) { cout << "YES" << endl; } else { cout << "NO" << endl; } }
a.cc:8:1: error: '::main' must return 'int' 8 | void main(){ | ^~~~
s980722105
p03729
C++
if __name__ == '__main__': a, b, c = input().split() ans = "YES" if a[-1] == b[0] and b[-1] == c[0] else "NO" print(ans)
a.cc:1:16: warning: multi-character literal with 8 characters exceeds 'int' size of 4 bytes 1 | if __name__ == '__main__': | ^~~~~~~~~~ a.cc:1:1: error: expected unqualified-id before 'if' 1 | if __name__ == '__main__': | ^~
s321067517
p03729
C
#include <stdio.h> #include <string.h> typedef unsigned int uint; #define BUF_SIZE (20) int main(void) { char strA[BUF_SIZE]; char strB[BUF_SIZE]; char strC[BUF_SIZE]; int lengthA; int lengthB; int lengthC; char strA_End; char strB_Begin; char strB_End; char strC_Begin; scanf_s("%s %s %s", strA, BUF_SIZE,...
main.c: In function 'main': main.c:20:9: error: implicit declaration of function 'scanf_s'; did you mean 'scanf'? [-Wimplicit-function-declaration] 20 | scanf_s("%s %s %s", strA, BUF_SIZE, strB, BUF_SIZE, strC, BUF_SIZE); | ^~~~~~~ | scanf
s393619555
p03729
C++
/* なせば大抵なんとかなる! */ #include <stdio.h> #include <string.h> #include <ctype.h> #include <stdlib.h> #include <math.h> #include <time.h> #include <limits.h> #include <windows.h> #define LLU unsigned long long int #define LL long long int #define LD long double #define LLUmax ULLONG_MAX #define LLmax LLONG_MAX #define...
a.cc:12:10: fatal error: windows.h: No such file or directory 12 | #include <windows.h> | ^~~~~~~~~~~ compilation terminated.
s298987298
p03729
C++
a,b,c = raw_input().split() if a[-1] == b[0] and b[-1] == c[0]: print 'YES' else: print 'NO'
a.cc:3:11: warning: multi-character character constant [-Wmultichar] 3 | print 'YES' | ^~~~~ a.cc:5:11: warning: multi-character character constant [-Wmultichar] 5 | print 'NO' | ^~~~ a.cc:1:1: error: 'a' does not name a type 1 | a,b,c = raw_input().split() | ^
s713748745
p03729
C++
stem; using System.Linq; class Program { static void Main(string[] args) { string[] input = Console.ReadLine().Split(' '); if (input[0].Last() == input[1].First() && input[1].Last() == input[2].First()) { Console.WriteLine("YES"); } else { Cons...
a.cc:1:1: error: 'stem' does not name a type 1 | stem; | ^~~~ a.cc:2:7: error: expected nested-name-specifier before 'System' 2 | using System.Linq; | ^~~~~~ a.cc:6:26: error: 'string' has not been declared 6 | static void Main(string[] args) | ^~~~~~...
s452463631
p03729
C++
#include<iostream> #include<string> #include<cstdlib> #include<algorithm> using namespace std; int main(){ string a,b,c; cin >> a >> b >> c; if(a[size.a()-1] == b[0] && b[size.b()-1] == c[0]) cout << "YES" << endl; else cout << "NO" << endl; return 0; }
a.cc: In function 'int main()': a.cc:11:19: error: overloaded function with no contextual type information 11 | if(a[size.a()-1] == b[0] && b[size.b()-1] == c[0]) | ^ a.cc:11:44: error: overloaded function with no contextual type information 11 | if(a[size.a()-1] == b[0] &&...
s262844383
p03729
C++
#include <iostream> #include <list> #include <vector> #include <string> #include <cmath> using namespace std; int main() { string a[3]; cin >> a[0]; cin >> a[1]; cin >> a[2]; if (a[0].back() == a[1].front() && a[1].back() == a[2].front()) { cout << "YES"; return; } cout << "NO"; }
a.cc: In function 'int main()': a.cc:20:17: error: return-statement with no value, in function returning 'int' [-fpermissive] 20 | return; | ^~~~~~
s515943368
p03730
C
#include <stdio.h> #include <string.h> #pragma warning(disable : 4996) int main() { int A, B, C; int i, ans = false; int sum = 0; scanf("%d %d %d", &A, &B, &C); for (i = 1; i <= 100; i++) { sum = A * i; if (C == sum % B) { ans = true; break; } ...
main.c: In function 'main': main.c:8:18: error: 'false' undeclared (first use in this function) 8 | int i, ans = false; | ^~~~~ main.c:3:1: note: 'false' is defined in header '<stdbool.h>'; this is probably fixable by adding '#include <stdbool.h>' 2 | #include <string.h> +++ |+#incl...
s613448686
p03730
C++
#include <bits/stdc++.h> using namespace std; int main(){ int A,B,C; cin >> A >> B >> C; bool ok = false; for(int i = 1; i <= b; i++){ if(A*i%B == C){ ok = true; } } cout<<(ok ? "Yes" : "No") << endl; }
a.cc: In function 'int main()': a.cc:8:23: error: 'b' was not declared in this scope 8 | for(int i = 1; i <= b; i++){ | ^
s432692663
p03730
C++
#includ<bits/stdc++.h> using namespace std; int main(){ int a,b,c; cin>>a>>b>>c; bool flag=false; for(int i=1;i<=b;i++){ if((a*i%b)==c){ flag=true; break; } } cout<<(flag?"Yes":"No")<<endl; }
a.cc:1:2: error: invalid preprocessing directive #includ; did you mean #include? 1 | #includ<bits/stdc++.h> | ^~~~~~ | include a.cc: In function 'int main()': a.cc:6:3: error: 'cin' was not declared in this scope 6 | cin>>a>>b>>c; | ^~~ a.cc:1:1: note: 'std::cin' is defined in header '<i...
s492782395
p03730
C++
#include <iostream> using namespace std; int main(void){ int a,b,c; cin>>a>>b>>c; if(a%B==0){ cout<<"NO"<<endl; }else{ int i,ans; for(i=1;i<=b;i++){ ans=a*i-c; if(ans%b==0){ cout<<"YES"<<endl; break; } } if(i==b+1)cout<<"NO"<<endl; } return 0; }
a.cc: In function 'int main()': a.cc:8:8: error: 'B' was not declared in this scope 8 | if(a%B==0){ | ^
s962383125
p03730
C++
// Alisher_2211 ...
a.cc: In function 'void solve()': a.cc:17:14: error: no match for 'operator>' (operand types are 'std::basic_istream<char>::__istream_type' {aka 'std::basic_istream<char>'} and 'long long int') 17 | long a, b, c; | ~~~~~~~~ ^ ~~ | | | | | long long int ...
s030003628
p03730
Java
package rensyuu; import java.util.*; import java.io.*; public class Cmondai { public static void main(String[] args) throws IOException { // 入出力高速化 java.io.* とthrows IOExceptionを忘れずに BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String[] in = br.readLine().split(" "); int A...
Main.java:6: error: class Cmondai is public, should be declared in a file named Cmondai.java public class Cmondai { ^ 1 error
s643966751
p03730
Java
public class Main { public static void main(String[] args) throws IOException { // 入出力高速化 java.io.* とthrows IOExceptionを忘れずに BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String[] in = br.readLine().split(" "); int A = Integer.parseInt(in[0]); int B = Integer.parseInt(in[1]...
Main.java:3: error: cannot find symbol public static void main(String[] args) throws IOException { ^ symbol: class IOException location: class Main Main.java:6: error: cannot find symbol BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); ^...
s386314790
p03730
C++
#include <bits/stdc++.h> using namespace std; int main(){ int64_t A,B,C; cin>>A>>B>>C; bool Q=false; for(int i=1;i<10000000){ if((A*i)%B==C){ Q=true; break; } } if(Q){ cout<<"YES"<<endl; } else{ cout<<"NO"<<endl; } }
a.cc: In function 'int main()': a.cc:8:25: error: expected ';' before ')' token 8 | for(int i=1;i<10000000){ | ^ | ;
s787675776
p03730
C++
int main() { int aa,a,b,c,i=0,m; vector<int> box(110); //1<=A<=100より、余りは99通り cin >> aa >> b >> c; while (true) { i++; a = aa*i; m = a%b; if(m==c) { cout <<"YES"<< endl; return 0; } if(count(box.begin(),box.end(),m)) { ...
a.cc: In function 'int main()': a.cc:4:5: error: 'vector' was not declared in this scope 4 | vector<int> box(110); //1<=A<=100より、余りは99通り | ^~~~~~ a.cc:4:12: error: expected primary-expression before 'int' 4 | vector<int> box(110); //1<=A<=100より、余りは99通り | ^~~ a.cc:5:5: error: '...
s675923732
p03730
C++
#include <iostream> using namespace std; int main() { int a, b, c; cin >> a >> b >> c; int d = b / __gcd(a, b); // [0, d)があまりの周期 int e = c / __gcd(b, c); if (e < d) cout << "YES"; else cout << "NO"; return 0; }
a.cc: In function 'int main()': a.cc:8:15: error: '__gcd' was not declared in this scope 8 | int d = b / __gcd(a, b); | ^~~~~
s736008278
p03730
C++
#include <bits/stdc++.h> #include <algorithm> #define rep(i,n) for (int i = 0; i < (n); ++i) using ll = long long; using namespace std; int main() { int a,b,c; cin >> a >> b >> c; if(c%gcd(a,b) != 0) { cout << "NO"; } else { cout << "YES"; }
a.cc: In function 'int main()': a.cc:17:6: error: expected '}' at end of input 17 | } | ^ a.cc:7:12: note: to match this '{' 7 | int main() { | ^
s263260792
p03730
C++
#include <bits/stdc++.h> using namespace std; int prime(int A,int B){ int ret=0; for(int i=2;i<=10;i++){ if((A%i==0)&&(B%i==0)){ ret=i; } } return ret; } int main() { int A,B,C; cin>>A>>B>>C; int factor=0; bool ans=true; while(ans){ factor = prime(A,B) if(factor){ A/=fact...
a.cc: In function 'int main()': a.cc:20:24: error: expected ';' before 'if' 20 | factor = prime(A,B) | ^ | ; 21 | if(factor){ | ~~ a.cc:29:5: error: 'else' without a previous 'if' 29 | else | ^~~~
s713991342
p03730
Java
import java.util.*; public class Main { public static void main(String[] args){ Scanner scn = new Scanner(System.in); int a = scn.nextInt(); int b = scn.nextInt(); int c = scn.nextInt(); int check = 0; long x = (long)(5*Math.pow(10,13)) for(long i=0; i<x; ++i){ if((a*i) % b == ...
Main.java:10: error: ';' expected long x = (long)(5*Math.pow(10,13)) ^ 1 error
s835470507
p03730
C++
#include <bits\stdc++.h> using namespace std; int main(){ int a,b,c;cin>>a>>b>>c; bool res=0; for(int i=1;i<b;i++){ if(a*i%b==c)res=1; } if(res)cout<<"YES"<<endl; else cout<<"NO"<<endl; }
a.cc:1:10: fatal error: bits\stdc++.h: No such file or directory 1 | #include <bits\stdc++.h> | ^~~~~~~~~~~~~~~ compilation terminated.
s063109519
p03730
C
#!/usr/bin/env python # -*- coding: utf-8 -*- # # FileName: B # CreatedDate: 2020-06-26 15:04:28 +0900 # LastModified: 2020-06-26 15:10:43 +0900 # import os import sys # import numpy as np # import pandas as pd def main(): a, b, c = map(int, input().split()) for i in range(100): if float((a*i-c)/b...
main.c:1:2: error: invalid preprocessing directive #! 1 | #!/usr/bin/env python | ^ main.c:2:3: error: invalid preprocessing directive #- 2 | # -*- coding: utf-8 -*- | ^ main.c:4:3: error: invalid preprocessing directive #FileName 4 | # FileName: B | ^~~~~~~~ main.c:5:3: error: in...
s890175646
p03730
C++
#define _GLIBCXX_DEBUG #include <bits/stdc++.h> using namespace std; using ll=long long; using ld=long double; using st=string; using ch=char; typedef pair<ll,ll> P; typedef vector<ll> vl; typedef vector<vl> vvl; typedef vector<P> vP; typedef vector<ch> vc; typedef vector<vc> vvc; #define FOR(i,a,b) for(ll i=a;i<b;i++)...
a.cc: In function 'int main()': a.cc:39:14: error: expected primary-expression before '>' token 39 | cin >> a >>> b >> c; | ^
s486218336
p03730
C++
#define _GLIBCXX_DEBUG #include <bits/stdc++.h> using namespace std; using ll=long long; using ld=long double; using st=string; using ch=char; typedef pair<ll,ll> P; typedef vector<ll> vl; typedef vector<vl> vvl; typedef vector<P> vP; typedef vector<ch> vc; typedef vector<vc> vvc; #define FOR(i,a,b) for(ll i=a;i<b;i++)...
a.cc: In function 'll gcd(ll, ll)': a.cc:33:20: error: 'c' was not declared in this scope 33 | return gcd(b,a%c); | ^ a.cc: In function 'int main()': a.cc:39:14: error: expected primary-expression before '>' token 39 | cin >> a >>> b >> c; | ^
s021992098
p03730
C++
#include <bits/stdc++.h> using namespace std; int main() { int A,B,C; cin >> A >> B >> C; for(int i=1;i<B+1){ if((A*i)%B==C){ cout << "YES" << endl; return 0; } } cout << "NO" << endl; }
a.cc: In function 'int main()': a.cc:7:20: error: expected ';' before ')' token 7 | for(int i=1;i<B+1){ | ^ | ;
s073437046
p03730
C++
#include <bits/stdc++.h> using namespace std; int main() { int A<B<C; cin >> A >> B >> C; for(int i=1;i<B+1){ if((A*i)%B==C){ cout << "YES" << endl; return 0; } } cout << "NO" << endl; }
a.cc: In function 'int main()': a.cc:5:8: error: expected initializer before '<' token 5 | int A<B<C; | ^ a.cc:6:10: error: 'A' was not declared in this scope 6 | cin >> A >> B >> C; | ^ a.cc:6:15: error: 'B' was not declared in this scope 6 | cin >> A >> B >> C; | ...
s591763085
p03730
C++
#include<bits/stdc++.h> using namespace std; int main() { int A,B,C,sum=0; cin >> A >> B >> C; bool a=false; for(int i=A;i<B*A+1;i+=A){ sum+=A; if(sum%B==C){ a=true; break; } } if(a){ cout << "YES" << endl; } else{ cout << "NO" << endl; }A }
a.cc: In function 'int main()': a.cc:20:5: error: expected ';' before '}' token 20 | }A | ^ | ; 21 | } | ~
s676539733
p03730
C++
#include <bits/stdc++.h> #define rep(i,n) for (int i = 0; i < (n); i++) using namespace std; using ll = long long; int main(){ int a,b,c; cin >>a >>b >>c; for(int i = 1; i<=b; i++){ if(i*a%b==c){ cout << "YES" << endl; return 0; } cout << "NO" << endl; return 0; }
a.cc: In function 'int main()': a.cc:16:2: error: expected '}' at end of input 16 | } | ^ a.cc:6:11: note: to match this '{' 6 | int main(){ | ^
s243876905
p03730
C++
#include <bits/stdc++.h> #define rep(i,n) for (int i = 0; i < (n); ++i) using namespace std; using ll = long long; using P = pair<int,int>; //マクロ //forループ関係 //引数は、(ループ内変数,動く範囲)か(ループ内変数,始めの数,終わりの数)、のどちらか //Dがついてないものはループ変数は1ずつインクリメントされ、Dがついてるものはループ変数は1ずつデクリメントされる #define FOR(i,a,b) for(ll i=a;i<=(ll)(b);i++) //xにはvectorな...
a.cc: In function 'int main()': a.cc:41:9: error: '_gcd' was not declared in this scope 41 | b=b/_gcd(a,b); | ^~~~
s215599312
p03730
C++
#include<bits/stdc++.h> // #include <boost/lexical_cast.hpp> using namespace std; #define ll long long int #define vll vector<ll> #define vllv vector<vector<ll>> #define sz size() #define pb push_back #define ff first #define ss second #define all(v) v.begin(),v.end() #define allr(v) v.rbegin(),v.rend() #define fast...
a.cc: In function 'void solve()': a.cc:108:14: error: '_gcd' was not declared in this scope 108 | if(c%_gcd(a,b)!=0) | ^~~~
s541245765
p03730
C++
#include <bits/stdc++.h> using namespace std; #define rep(i,n) for(int i=0;i<n;i++) #define ll long long int #define INF 1000000007 // cin.eof() 入力個数の問題 int main(){ int a,b,c; cin>>a>>b>>c; for(int i=a;i<a*b+1;i++){ if(i%b==c){ cout<<"YES"<<endl; return 0; } } cout<<"NO"; return 0; } #inclu...
a.cc:29:5: error: redefinition of 'int main()' 29 | int main(){ | ^~~~ a.cc:8:5: note: 'int main()' previously defined here 8 | int main(){ | ^~~~
s874779216
p03730
C++
#include <bits/stdc++.h> using namespace std; int main(){ Init(); ll a, b, c; cin >> a >> b >> c; ll add = a%b; if(add == 0){ if(add == c){ cout<<"YES"<<endl; else cout<<"NO"<<endl; } return 0; } for(ll i=add; i<=10000; i+=add) { if(...
a.cc: In function 'int main()': a.cc:7:5: error: 'Init' was not declared in this scope 7 | Init(); | ^~~~ a.cc:8:5: error: 'll' was not declared in this scope 8 | ll a, b, c; cin >> a >> b >> c; | ^~ a.cc:8:24: error: 'a' was not declared in this scope 8 | ll a, b, c; cin >> ...
s579812515
p03730
C++
#include <bits/stdc++.h> using namespace std; /* int main(){ Init(); ll a, b, c; cin >> a >> b >> c; ll add = a%b; if(add == 0){ if(add == c){ cout<<"YES"<<endl; else cout<<"NO"<<endl; } return 0; } for(ll i=add; i<=10000; i+=add) { i...
a.cc:5:1: error: unterminated comment 5 | /* | ^
s525137277
p03730
C++
#define _GLIBCXX_DEBUG #include <bits/stdc++.h> using namespace std; #define rep(i, c) for (int i = 0; i < (int)c; i++) #define all(v) v.begin(), v.end() using ll = long long; using P = pair<int, int>; const int inf = 1000000000; //10^9 const ll MOD = 1e9 + 7; //加算代入演算子は+=!!!!! //int 2^31 10^9まで //intは10桁、long longは18桁...
a.cc: In function 'int main()': a.cc:15:13: warning: empty parentheses were disambiguated as a function declaration [-Wvexing-parse] 15 | int main() | ^~ a.cc:15:13: note: remove parentheses to default-initialize a variable 15 | int main() | ^~ | -- a....
s716345300
p03730
C++
#include <bits/stdc++.h> using namespace std; int main() { int A,B,C; cin >> A >> B >> C; if(C%gcd__(A,B) == 0) { cout << "YES" << endl; } else { cout << "NO" << endl; } }
a.cc: In function 'int main()': a.cc:7:10: error: 'gcd__' was not declared in this scope 7 | if(C%gcd__(A,B) == 0) { | ^~~~~
s402525885
p03730
C++
#include <bits/stdc++.h> using namespace std; typedef long long ll; typedef unsigned long long ull; typedef vector<int> vi; typedef pair<int,int> pi; #define F first #define S second #define PB push_back #define MP make_pair #define FOR(i,a,b) for (int i = a; i < b; i++) #define SQ(a) (a)*(a) template <class T, cl...
a.cc: In function 'int main()': a.cc:39:23: error: expected ';' before '}' token 39 | a += a | ^ | ; 40 | } | ~
s761617891
p03730
C++
#include <iostream> #include <string> #include <algorithm> #include <ctime> #include <functional> #include <vector> #include <stack> #include <queue> #include <map> #include <set> #include <cassert> #include <bitset> #include <list> #include <cstdio> #include <stdio.h> #include <string.h> #include <limits.h> #include <...
a.cc: In function 'int main()': a.cc:41:5: error: 'ok' was not declared in this scope 41 | ok = false; | ^~
s600192311
p03730
C++
#include <bits/stdc++.h> using namespace std; int main() { int A,B,C; if (B<=C) cout << "NO" << endl; else { for (int i=0; i<A; i++) { if (A%i==0 && B%i==0 && C%i!=0) { cout << "NO" << break; } if (i==A-1) cout << "YES" << endl; } } }
a.cc: In function 'int main()': a.cc:10:31: error: expected primary-expression before 'break' 10 | cout << "NO" << break; | ^~~~~
s023901542
p03730
C++
#include <bits/stdc++.h> using namespace std; #define ll long long int #define rep(i, n) for(int i = 0; i < n; i++) #define sort(v) sort((v).begin(), (v).end()) using vi = vector<int>; using vs = vector<string>; const int MOD = 1e9+7; int main() { ll N,T; cin >> N >> T; vll t(N); rep(i,n){ cin >...
a.cc: In function 'int main()': a.cc:17:9: error: 'vll' was not declared in this scope; did you mean 'll'? 17 | vll t(N); | ^~~ | ll a.cc:18:15: error: 'n' was not declared in this scope 18 | rep(i,n){ | ^ a.cc:5:38: note: in definition of macro 'rep...
s289586769
p03730
C++
#include <bits/stdc++.h> using namespace std; #define ll long long int #define rep(i, n) for(int i = 0; i < n; i++) #define sort(v) sort((v).begin(), (v).end()) using vi = vector<int>; using vs = vector<string>; const int MOD = 1e9+7; int gcd(int a, int b){ if (a%b == 0) return(b); else return(gcd(b, a%b)); ...
a.cc: In function 'int main()': a.cc:21:9: error: 'g' was not declared in this scope 21 | g = gcd(A,B); | ^
s478594590
p03730
C++
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (int i = 0; i < (int)(n); i++) #define ll long long int main(){ int a,b,c; ll wa=0; bool hantei=false; cin >> a >> b >> c; rep(i,100{ wa += a; if(wa%b == c) hantei=true; } if(hantei) cout << "YES"<<endl; ...
a.cc:16:2: error: unterminated argument list invoking macro "rep" 16 | } | ^ a.cc: In function 'int main()': a.cc:10:5: error: 'rep' was not declared in this scope 10 | rep(i,100{ | ^~~ a.cc:10:8: error: expected '}' at end of input 10 | rep(i,100{ | ^ a.cc:5:11: note: to ...
s276028006
p03730
C++
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (int i = 0; i < (int)(n); i++) #define ll long long int main(){ int a,b,c; ll wa=0; bool hantei=false; cin >> a >> b >> c; rep(i,100{ wa += a; if(wa%b == c) hantei=true; } if(hantei) cout << "YES"<<endl; ...
a.cc:16:2: error: unterminated argument list invoking macro "rep" 16 | } | ^ a.cc: In function 'int main()': a.cc:10:5: error: 'rep' was not declared in this scope 10 | rep(i,100{ | ^~~ a.cc:10:8: error: expected '}' at end of input 10 | rep(i,100{ | ^ a.cc:5:11: note: to ...
s018194311
p03730
C++
#include <bits/stdc++.h> using namespace std; long long gcd(long long a, long long b){ if (b==0) return a; else return gcd(b,a%b); } long long chmax(long long a,long long b){ a = max(a,b); } long long chmin(long long a, long long b){ a = min(a,b); } int main() { long long n,k,sum=0,a=0,b=0,c=0,d=0,ans=0; ...
a.cc: In function 'long long int chmax(long long int, long long int)': a.cc:10:1: warning: no return statement in function returning non-void [-Wreturn-type] 10 | } | ^ a.cc: In function 'long long int chmin(long long int, long long int)': a.cc:13:1: warning: no return statement in function returning non-void ...
s345179708
p03730
C++
#include <bits/stdc++.h> #include<chrono> using namespace std; using ll = long long; int main() { int A, B, C; cin >> A >> B >> C; for (int i = 1; i <= B; i++) { if (i*A % B == C) { cout << "YES" << end; return 0; } } cout << "NO" << endl; }
a.cc: In function 'int main()': a.cc:11:21: error: no match for 'operator<<' (operand types are 'std::basic_ostream<char>' and '<unresolved overloaded function type>') 11 | cout << "YES" << end; | ~~~~~~~~~~~~~~^~~~~~ In file included from /usr/include/c++/14/istream:41, from /usr/...
s766618079
p03730
C
#include<bits/stdc++.h> using namespace std; typedef long long ll; #define rep(i, n) for (ll i = 0; i < (ll)(n); ++i) int main() { int a, b, c; cin >> a >> b >> c; int zero_count=0; int tmp = 1; while(zero_count < 1) { int tmp_c = a*tmp%b; if(tmp_c == c) { cout << "YES" ...
main.c:1:9: fatal error: bits/stdc++.h: No such file or directory 1 | #include<bits/stdc++.h> | ^~~~~~~~~~~~~~~ compilation terminated.
s684897155
p03730
C
#include<bits/stdc++.h> using namespace std; typedef long long ll; #define rep(i, n) for (ll i = 0; i < (ll)(n); ++i) int main() { int a, b, c; cin >> a >> b >> c; int zero_count=0; int tmp = 1; while(zero_count < 1) { int tmp_c = a*tmp%b; if(tmp_c == c) { ...
main.c:1:10: fatal error: bits/stdc++.h: No such file or directory 1 | #include<bits/stdc++.h> | ^~~~~~~~~~~~~~~ compilation terminated.
s559140235
p03730
Java
import java.io.*; import java.util.*; class Main{ static final long MOD = 1_000_000_007; // 10^9+7 static final int MAX = 2_147_483_646; // intMax static final int INF = 1_000_000_000; // 10^9 public static void main(String[] args) throws Exception { hayami saori = new hayami(); int a = saori.saori_...
Main.java:14: error: cannot find symbol ans = "YES"; ^ symbol: variable ans location: class Main Main.java:18: error: cannot find symbol System.out.println(ans); ^ symbol: variable ans location: class Main 2 errors
s975117582
p03730
C++
import math a, b, c = map(int,input().split()) for i in range(10**7): n = a * i if n % b == c: print('YES') quit() print('NO')
a.cc:7:15: warning: multi-character character constant [-Wmultichar] 7 | print('YES') | ^~~~~ a.cc:9:7: warning: multi-character character constant [-Wmultichar] 9 | print('NO') | ^~~~ a.cc:1:1: error: 'import' does not name a type 1 | import math | ^~~~~~ a.cc:...
s070634832
p03730
C++
// include // ------------------------------------------------ #include <bits/stdc++.h> #include <vector> #include <algorithm> #include <math.h> using namespace std; // func // ------------------------------------------------ int CalcSumOfDigit(int n); // 各桁の和を計算する。 string upper(string str); // 英字を大文字に変換する...
a.cc: In function 'int main()': a.cc:51:1: error: a function-definition is not allowed here before '{' token 51 | { | ^ a.cc:62:1: error: a function-definition is not allowed here before '{' token 62 | { | ^ a.cc:74:1: error: a function-definition is not allowed here before '{' token 74 | { |...
s644193849
p03730
C++
#include <bits/stdc++.h> using namespace std; using ll = long long; // ll は long long と同じとする。 int main () { int A , B , C; cin >> A >> B >> C; for(ll i = 0; i < N; ) for(int i = 0; i < B; i++){ if((i * A) % B == C){ cout << "YES"; return 0; } } cout <<...
a.cc: In function 'int main()': a.cc:7:23: error: 'N' was not declared in this scope 7 | for(ll i = 0; i < N; ) | ^
s881521865
p03730
C++
#include<bits/stdc++.h> #define rep(i,n)for(int i=0;i<n;++i) #include<string> #include<vector> using namespace std; typedef long long ll; typedef pair<int, int>P; template<class T> inline bool chmax(T& a, T b) { if (a < b) { a = b; return 1; } return 0; } template<class T> inline bool chmin(T& a, T b) { if (a > b) { a ...
a.cc: In function 'int main()': a.cc:67:22: error: invalid types 'int[int]' for array subscript 67 | if (b[amari]) { | ^ a.cc:70:18: error: invalid types 'int[int]' for array subscript 70 | b[amari] = true; | ^ a.cc:72:14: error: in...
s757168768
p03730
C++
#include <bits/stdc++.h> using nameapase std; int main(){ int A,B,C; cin >> A >> B >> C; bool res = false; for(int i =1;i <B;i++){ if(k*A%B == C)ans = true; } if(ans)cout << "Yes" << endl; else cout << "No" <<endl; }
a.cc:2:7: error: expected nested-name-specifier before 'nameapase' 2 | using nameapase std; | ^~~~~~~~~ a.cc: In function 'int main()': a.cc:5:9: error: 'cin' was not declared in this scope; did you mean 'std::cin'? 5 | cin >> A >> B >> C; | ^~~ | std::cin In file...
s042262497
p03730
Java
import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int A = sc.nextInt(); int B = sc.nextInt(); int C = sc.nextInt(); int m = lcm(a,b); if(C%m==0){ System.out.println("Yes"); }else{ System.out.println("No"); } ...
Main.java:8: error: cannot find symbol int m = lcm(a,b); ^ symbol: variable a location: class Main Main.java:8: error: cannot find symbol int m = lcm(a,b); ^ symbol: variable b location: class Main 2 errors
s700564434
p03730
Java
import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int A = sc.nextInt(); int B = sc.nextInt(); int C = sc.nextInt(); int m = lcm(a,b); if(C%m==0){ System.out.println("Yes"); }else{ System.out.println("No"); } ...
Main.java:8: error: cannot find symbol int m = lcm(a,b); ^ symbol: variable a location: class Main Main.java:8: error: cannot find symbol int m = lcm(a,b); ^ symbol: variable b location: class Main 2 errors
s845038464
p03730
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 a,b,c;scanf("%d%d%d",&a,&b,&c); int sum=a; for(int i = 0;i < 1000000000000;i++){ if(sum%b==c){ //printf("%d %d %d %d\...
main.c: In function 'main': main.c:18:13: error: expected ';' before '}' token 18 | sum+=a | ^ | ; 19 | } | ~
s188030054
p03730
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 a,b,c;scanf("%d%d%d",&a,&b,&c); int i=1; int _a= a; if(_a%b == (_a+a*(i+1))%b){ printf("NO\n"); break; } while(...
main.c: In function 'main': main.c:15:7: error: break statement not within loop or switch 15 | break; | ^~~~~
s471932385
p03730
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 a,b,c;scanf("%d%d%d",&a,&b,&c); int i=1; int _a=0; while(1){ _a += a*i if(_a%b == c){ printf("YES\n"); ...
main.c: In function 'main': main.c:14:16: error: expected ';' before 'if' 14 | _a += a*i | ^ | ; 15 | if(_a%b == c){ | ~~
s355317705
p03730
C++
N#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (int)(n); i++) using namespace std; using P = pair<int, int>; int main() { long long a,b,c; cin >> a >> b >> c; rep(i,10000000){ if((a*i +1 ) % b == 0){ cout << "Yes" << endl; return 0; } } ...
a.cc:1:2: error: stray '#' in program 1 | N#include <bits/stdc++.h> | ^ a.cc:1:1: error: 'N' does not name a type 1 | N#include <bits/stdc++.h> | ^ a.cc:4:11: error: 'pair' does not name a type 4 | using P = pair<int, int>; | ^~~~ a.cc: In function 'int main()': a.cc:9:5: error:...
s217505227
p03730
C++
import math A,B,C=map(int,input().split()) lcm = A*B//math.gcd(A,B) #A*(i+j)%B=C #A*(i+j)=BX+C i=A while i<=lcm: if i%B==C: print("YES") exit() i*=A print("NO")
a.cc:4:2: error: invalid preprocessing directive #A 4 | #A*(i+j)%B=C | ^ a.cc:5:2: error: invalid preprocessing directive #A 5 | #A*(i+j)=BX+C | ^ a.cc:1:1: error: 'import' does not name a type 1 | import math | ^~~~~~ a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
s408792521
p03730
C++
#include <bits/stdc++.h> using namespace std; int main() { int A, B, C; cin >> A >> B >> C; for (int i = A; i <= B*A; i++) { if (i%B == C) { cout << "YES" << endl; return; } } cout << "NO" << endl; return 0; }
a.cc: In function 'int main()': a.cc:9:13: error: return-statement with no value, in function returning 'int' [-fpermissive] 9 | return; | ^~~~~~
s958555863
p03730
C++
#include<stdio.h> #include<string.h> //言語は「C++14(GCC 5.4.1)」 //AtCoder Beginner Contest 60-A int main(void) { int i, A, B, C, K=0; scanf("%d", &A); scanf("%d", &B); scanf("%d", &C); for (i = 1; i < 5051; i++) { A = A * i; if (A%B == C) { K = 15; break; } } if (K == 15) printf("YES"); else pr...
a.cc:26:2: error: stray '#' in program 26 | }#include<stdio.h> | ^ a.cc:26:3: error: 'include' does not name a type 26 | }#include<stdio.h> | ^~~~~~~
s069392539
p03730
C++
#include <bits/stdc++.h> using namespace std; int main(){ int A, B, C; cin >> A >> B >> C; int amari = A%B; vector<int> num(B); for(i = 1; i <= 100; i++){ num[A%B]++; A = A*(i + 1)/i; } if(num[C] > 0) cout << "YES" << endl; else cout << "NO" << endl; }
a.cc: In function 'int main()': a.cc:9:7: error: 'i' was not declared in this scope 9 | for(i = 1; i <= 100; i++){ | ^
s984377123
p03730
C++
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (n); ++i) typedef long long ll; template <class T> inline bool chmin(T& a, T b) { if (a > b) { a = b; return true; } return false; } template <class T> inline bool chmax(T& a, T b) { if (a < b) { a = b; return true; } return fa...
a.cc: In function 'int main()': a.cc:36:7: error: expected primary-expression before '=' token 36 | } = 0; | ^
s344253675
p03730
C++
#iclude <bits/stdc++.h> using namespace std; int main(){ int A, B, C; cin >> A >> B >> C; vector<int> data(B); int count = 0; int point = 0; for(int i = 0; i < B; i++){ data.at(i) = ((i+1)*A)%B; count += data.at(i); if(count == C){ point = 1; break; } } if(point == 1) cout <...
a.cc:1:2: error: invalid preprocessing directive #iclude; did you mean #include? 1 | #iclude <bits/stdc++.h> | ^~~~~~ | include a.cc: In function 'int main()': a.cc:6:3: error: 'cin' was not declared in this scope 6 | cin >> A >> B >> C; | ^~~ a.cc:1:1: note: 'std::cin' is defined in hea...