submission_id stringlengths 10 10 | problem_id stringlengths 6 6 | language stringclasses 3
values | code stringlengths 1 522k | compiler_output stringlengths 43 10.2k |
|---|---|---|---|---|
s463766517 | p03719 | C++ | #include <iostream>
using namespace std;
int main(void){
int a,b,c;
cin>>a>>b>>C;
cout<<( a<=c && c<=b)? "Yes":"No";
}
| a.cc: In function 'int main()':
a.cc:5:16: error: 'C' was not declared in this scope
5 | cin>>a>>b>>C;
| ^
|
s951073117 | p03719 | C | #include <stdio.h>
int main(void) {
int a, b, c;
scanf("%d %d %d", &a, &b, &c);
if (a <= c&&c <= b) puts("Yes");
else puts("No");
return 0;
} | main.c: In function 'main':
main.c:5:1: error: stray '\302' in program
5 | <U+00A0>
| ^~~~~~~~
main.c:7:1: error: stray '\302' in program
7 | <U+00A0>
| ^~~~~~~~
main.c:10:1: error: stray '\302' in program
10 | <U+00A0>
| ^~~~~~~~
|
s233149002 | p03719 | C | int main(void) {
int a, b, c;
scanf("%d %d %d", &a, &b, &c);
if (a <= c&&c <= b) puts("Yes");
else puts("No");
return 0;
} | main.c: In function 'main':
main.c:3:1: error: stray '\302' in program
3 | <U+00A0>
| ^~~~~~~~
main.c:4:9: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
4 | scanf("%d %d %d", &a, &b, &c);
| ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a d... |
s877051933 | p03719 | C++ | #include <bits/stdc++.h>
using namespace std;
#define rep(i,a,b) for(ll i=a;i<b;i++)
#define iter(it,a) for(auto it=a.begin();it!=a.end();it++)
#define mp make_pair
#define pb push_back
#define F first
#define S second
#define endl '\n'
#define preturn(X) cout<<X<<endl; return 0
typedef long long ll;
vector<pair<pa... | a.cc: In function 'int main()':
a.cc:48:17: error: return-statement with no value, in function returning 'int' [-fpermissive]
48 | return;
| ^~~~~~
|
s255963408 | p03719 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
cin >> a >> b >> c;
if(c >= a && c <= b) cout << "Yes";
else cout << "No";
} | a.cc: In function 'int main()':
a.cc:5:10: error: 'a' was not declared in this scope
5 | cin >> a >> b >> c;
| ^
a.cc:5:15: error: 'b' was not declared in this scope
5 | cin >> a >> b >> c;
| ^
a.cc:5:20: error: 'c' was not declared in this scope
5 | cin >> a >> b >>... |
s740266319 | p03719 | C++ | #include<iostream>
using namespace std;
int main()
{
long long int ,b,c;
cin>>a>>b>>c;
if(c>=a && c<=b)
cout<<"YES"<<endl;
else
cout<<"NO"<<endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:5:16: error: expected unqualified-id before ',' token
5 | long long int ,b,c;
| ^
a.cc:6:8: error: 'a' was not declared in this scope
6 | cin>>a>>b>>c;
| ^
|
s007048646 | p03719 | C++ | #include<iostream>
using namespace std;
int main()
{
long long int ,b,c;
cin>>a>>b>>c;
if(c>=a && c<=b)
cout<<"YES"<<endl;
else
cout<<"NO"<<endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:5:16: error: expected unqualified-id before ',' token
5 | long long int ,b,c;
| ^
a.cc:6:8: error: 'a' was not declared in this scope
6 | cin>>a>>b>>c;
| ^
|
s712804912 | p03719 | C | ll pow3(ll n) {
ll i;
ll ret = 1ll;
for (i = 1ll; i <= n; i++) {
ret *= 3ll;
}
return ret;
} | main.c:1:1: error: unknown type name 'll'
1 | ll pow3(ll n) {
| ^~
main.c:1:9: error: unknown type name 'll'
1 | ll pow3(ll n) {
| ^~
|
s910996372 | p03719 | C++ | using System;
using System.Collections.Generic;
namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
string[] str = Console.ReadLine().Split(' ');
int A = int.Parse(str[0]);
int B = int.Parse(str[1]);
int C = int.Parse... | 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:8:26: error: 'string' has not been declared
8 | static void Main(stri... |
s586411941 | p03719 | C++ | #include<iostream>
using namespace std;
int main(){
int N[10]{ai};
int M[10]{bi};
int ai=1;
int bi=1;
for (int ai = 0; i < 50; i++){
cin >> N{ai};
}
for (int bi = 0; i < 50; i++){
cout << N{ai} << " " << M{bi} << endl;
}
return 0;
}
| a.cc: In function 'int main()':
a.cc:5:13: error: 'ai' was not declared in this scope
5 | int N[10]{ai};
| ^~
a.cc:6:13: error: 'bi' was not declared in this scope
6 | int M[10]{bi};
| ^~
a.cc:11:20: error: 'i' was not declared in this scope; did you mean 'ai'?
11 | ... |
s225458591 | p03719 | C++ |
#include <iostream>
#include <vector>
#include <algorithm>
#include <string>
#include<math.h>
#define rep(i,a) for(int i=0;i<a;i++)
#define nrep(i,a,b) for(int i=a;i<b;i++)
#define mrep(i,a) for(int i=a;i>=0;i--)
#define ll long long
#define vl vector<ll>
#define vvl vector<vector<ll> >
#define vb vector<bool>
#def... | a.cc: In function 'int main()':
a.cc:15:13: error: 'LLONG_MAX' was not declared in this scope
15 | #define INF LLONG_MAX
| ^~~~~~~~~
a.cc:43:23: note: in expansion of macro 'INF'
43 | dp.resize(n, -INF);
| ^~~
a.cc:7:1: note: 'LLONG_MAX' is defined in header '... |
s166386506 | p03719 | C++ | #include<iostream>
int main(){
int A,B,C;
cin >> A>>B>>C;
if(A<=C&&C<=B){
cout << "YES"<<endl;
}else{
cout <<"NO"<<endl;
}
return 0;
} | a.cc: In function 'int main()':
a.cc:5:5: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
5 | cin >> A>>B>>C;
| ^~~
| std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
62 | extern istream cin; ///< L... |
s611701492 | p03719 | C++ | #include<iostream>
int main(){
int A,B,C;
cin >> A>>B>>C;
if(A<=C&&C<=B){
cout << "YES"<<endl;
}else{
cout <<"NO"<<endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:5:1: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
5 | cin >> A>>B>>C;
| ^~~
| std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
62 | extern istream cin; ///< Linked to sta... |
s454767486 | p03719 | C | #include <stdio.h>
int main(void)
{
int a,b,c;
a = 12;
b = 50;
c = 32;
if(a+100 >= 200 || b+100 >= 200 || c+100 >= 200){
printf("miss \n");
return 0;
}
if(c>=a&&c<=b){
printf("yes\n");
}
else{
printf("no\n");
}
return 0; | main.c: In function 'main':
main.c:23:9: error: expected declaration or statement at end of input
23 | return 0;
| ^~~~~~
|
s664550738 | p03719 | C++ | #include "bits/stdc++.h"
using namespace std;
int a, b, c;
int main()
{
cin >> a >> b >> c;
if(c >= a && c < = b)
printf("Yes");
else
printf("No");
return 0;
}
| a.cc: In function 'int main()':
a.cc:9:22: error: expected primary-expression before '=' token
9 | if(c >= a && c < = b)
| ^
|
s109619037 | p03719 | C++ | #include "iostream"
using namespace std;
int A;
int B;
int C;
int main(){
cin >>A>>B>>C;
if (C >= A&&C <= B){
cout << "YES" ;
}
else{
cout << "NO" ;
}
return 0;
| a.cc: In function 'int main()':
a.cc:17:10: error: expected '}' at end of input
17 | return 0;
| ^
a.cc:8:11: note: to match this '{'
8 | int main(){
| ^
|
s322726205 | p03719 | C++ | #include <stdio.h>
#include <stdlib.h>
int main(void)
{
int n, m, *ccnt, cnt;
scanf("%d %d", &n, &m);
ccnt = (int *)malloc(sizeof(int) * n);
memset(ccnt, 0, m);
for(cnt = 0; cnt < m; cnt++)
{
scanf("%d %d", &a, &b);
ccnt[a - 1] +=1;
ccnt[b - 1] +=1;
}
for(cnt... | a.cc: In function 'int main()':
a.cc:11:5: error: 'memset' was not declared in this scope
11 | memset(ccnt, 0, m);
| ^~~~~~
a.cc:3:1: note: 'memset' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
2 | #include <stdlib.h>
+++ |+#include <cstring>
3 |
... |
s905890874 | p03719 | C++ | #include<stdio.h>
void main()
{
int a,b,c;
scanf("%d%d%d",&a,&b,&c);
if(c>=a&&c<=b)
printf("Yes");
else
printf("No");
}
| a.cc:2:1: error: '::main' must return 'int'
2 | void main()
| ^~~~
|
s400431479 | p03719 | C++ | read = lambda: map(int, input().split())
a, b, c = read()
print('Yes' if a <= c <= b else 'No') | a.cc:3:7: warning: multi-character character constant [-Wmultichar]
3 | print('Yes' if a <= c <= b else 'No')
| ^~~~~
a.cc:3:33: warning: multi-character character constant [-Wmultichar]
3 | print('Yes' if a <= c <= b else 'No')
| ^~~~
a.cc:1:1: error: 'read' do... |
s341670748 | p03719 | C++ | int main()
{
int a;
int b;
int c;
if (a <= c && c <= b)
cout << "Yes" << endl;
else
cout << "No" << endl;
} | a.cc: In function 'int main()':
a.cc:14:17: error: 'cout' was not declared in this scope
14 | cout << "Yes" << endl;
| ^~~~
a.cc:14:34: error: 'endl' was not declared in this scope
14 | cout << "Yes" << endl;
| ^~~~
a.cc:... |
s331888375 | p03719 | C++ | #include<iostream>
int main(){
int a,b,c;cin>>a>>b>>c;
if(a<= c && c<=b){
std::cout<<"Yes"<<std::endl;
}else std::cout<<"No"<<std::endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:4:11: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
4 | int a,b,c;cin>>a>>b>>c;
| ^~~
| std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
62 | extern istream cin;... |
s504898883 | p03719 | C++ | #include<iostream>
#include<cstdio>
using namespace std;
int main(void) {
int a, b, c;
scanf_s("%d%d%d", &a, &b, &c);
if (c >= a && c <= b)
printf("Yes\n");
else
printf("No\n");
return 0;
} | a.cc: In function 'int main()':
a.cc:8:9: error: 'scanf_s' was not declared in this scope; did you mean 'scanf'?
8 | scanf_s("%d%d%d", &a, &b, &c);
| ^~~~~~~
| scanf
|
s086173098 | p03719 | Java | package atCorder.beginners061;
public class Main{
public static void main(String[] args) {
String ans = "No";
Scanner sc = new Scanner(System.in);
int a = sc.nextInt();
int b = sc.nextInt();
int c = sc.nextInt();
sc.close();
if (a <= c && c <= b){
ans = "Yes";
}
System.out.print(ans)... | Main.java:9: error: cannot find symbol
Scanner sc = new Scanner(System.in);
^
symbol: class Scanner
location: class Main
Main.java:9: error: cannot find symbol
Scanner sc = new Scanner(System.in);
^
symbol: class Scanner
location: class Main
2 errors
|
s445822042 | p03719 | C | #include<stdo.h>
int main(){
int n,m,a,b,c,l[50]={0};
scanf("%d %d",&n,&m);
while(n){
scanf("%d %d %d",&a,&b,&c);
l[a]++;
l[b]++;
l[c]++;
n--;
}
for (char i=0;i<m;i++){
printf("%d\n",l[i]);
}
return 0;
} | main.c:1:9: fatal error: stdo.h: No such file or directory
1 | #include<stdo.h>
| ^~~~~~~~
compilation terminated.
|
s848735952 | p03719 | Java | import java.util.Scanner;
public class Beginners061A {
public static void main(String[] args) {
String ans = "NO";
Scanner sc = new Scanner(System.in);
int a = sc.nextInt();
int b = sc.nextInt();
int c = sc.nextInt();
sc.close();
if (a <= c && c <= b){
ans = "YES";
}
System.out.print... | Main.java:3: error: class Beginners061A is public, should be declared in a file named Beginners061A.java
public class Beginners061A {
^
1 error
|
s084578985 | p03719 | C++ | ソースコード
#include <stdio.h>
int main(){
int a,b,c;
scanf("%d %d %d",&a,&b,&c);
printf((c >= a && c <= b) ? "Yes" : "No");
return 0;
} | a.cc:1:1: error: '\U000030bd\U000030fc\U000030b9\U000030b3\U000030fc\U000030c9' does not name a type
1 | ソースコード
| ^~~~~~~~~~~~
a.cc: In function 'int main()':
a.cc:7:1: error: 'scanf' was not declared in this scope
7 | scanf("%d %d %d",&a,&b,&c);
| ^~~~~
a.cc:9:1: error: 'printf' was not declared in... |
s648488201 | p03719 | C++ | ソースコード
#include <stdio.h>
int main(){
short a,b,c;
scanf("%d %d %d",&a,&b,&c);
printf((c >= a && c <= b) ? "Yes" : "No");;
return 0;
} | a.cc:1:1: error: '\U000030bd\U000030fc\U000030b9\U000030b3\U000030fc\U000030c9' does not name a type
1 | ソースコード
| ^~~~~~~~~~~~
a.cc: In function 'int main()':
a.cc:7:1: error: 'scanf' was not declared in this scope
7 | scanf("%d %d %d",&a,&b,&c);
| ^~~~~
a.cc:9:1: error: 'printf' was not declared in... |
s229378013 | p03719 | Java | public class Main{
public static void main(String[] args) {
String ans = "NO";
Scanner sc = new Scanner(System.in);
int a = sc.nextInt();
int b = sc.nextInt();
int c = sc.nextInt();
sc.close();
if (a <= c && c <= b){
ans = "YES";
}
System.out.print(ans);
return;
}
} | Main.java:7: error: cannot find symbol
Scanner sc = new Scanner(System.in);
^
symbol: class Scanner
location: class Main
Main.java:7: error: cannot find symbol
Scanner sc = new Scanner(System.in);
^
symbol: class Scanner
location: class Main
2 errors
|
s572769537 | p03719 | C++ | #include <iostream>
#include <utility>
#include <cstdio>
#include <algorithm>
#include <vector>
#include <string>
#include <set>
#include <cmath>
int main (){
int A,B,C;
int flag=0;
cin >> A >> B>>C;
if(C>=A)
flag++;
if(C<=B)
flag++;
if(flag==2)
cout<< "Yes"
else
... | a.cc: In function 'int main()':
a.cc:13:9: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
13 | cin >> A >> B>>C;
| ^~~
| std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
62 | extern istream cin; ... |
s327390670 | p03719 | C++ | #include<stdio.h>
#include<vector>
#include<utility>
#include<algorithm>
#include<iostream>
using namespace std;
{
int a,b,c;
cin>>a>>b>>c;
if(a<=c&&c<=b)
cout<<"Yes"<<endl;
else cout<<"No"<<endl;
return 0;
}
| a.cc:8:1: error: expected unqualified-id before '{' token
8 | {
| ^
|
s387976658 | p03719 | C | #include <stdio.h>
int main(void) {
if(C<A)
printf("No\n");
else if(B<C)
printf("No\n");
else
printf("Yes"\n);
return 0;
}
| main.c: In function 'main':
main.c:4:12: error: 'C' undeclared (first use in this function)
4 | if(C<A)
| ^
main.c:4:12: note: each undeclared identifier is reported only once for each function it appears in
main.c:4:14: error: 'A' undeclared (first use in this function)
4 | if(... |
s610399794 | p03719 | Java | import java.util.Scanner;
public class Beginners061A {
public static void main(String[] args) {
String ans = "NO";
Scanner sc = new Scanner(System.in);
int a = sc.nextInt();
int b = sc.nextInt();
int c = sc.nextInt();
sc.close();
if (a <= b && b <= c){
ans = "YES";
}
System.out.print... | Main.java:3: error: class Beginners061A is public, should be declared in a file named Beginners061A.java
public class Beginners061A {
^
1 error
|
s567960298 | p03719 | C++ | #include <stdio.h>
int main(){
int a,b,c;
scanf("%d %d %d",&a,&b,&c);
printf((c >= a && c <= b) ? "Yes" : "No":);
return 0;
} | a.cc: In function 'int main()':
a.cc:8:42: error: expected ')' before ':' token
8 | printf((c >= a && c <= b) ? "Yes" : "No":);
| ~ ^
| )
|
s185994887 | p03719 | Java | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class Main{
public static void main(String[]args)throws IOException{
BufferedReader br=
new BufferedReader(new InputStreamReader(System.in));
String str1=br.readLine();
String[] str2 = str1.split(" ", 0);
... | Main.java:23: error: reached end of file while parsing
}
^
1 error
|
s370856972 | p03719 | C | #include <stdio.h>
int main(void)
{
int A,B,C;
scanf("%d %d %d",&A,&B,&C);
if((A<=C)&&(C<=B))
printf("YES\n");
else
printf("NO\n");
return 0
} | main.c: In function 'main':
main.c:10:9: error: expected ';' before '}' token
10 | return 0
| ^
| ;
11 | }
| ~
|
s443673569 | p03719 | C | #include <iostream>
#include <cstdio>
#include <algorithm>
#include <cstdlib>
#include <cstring>
#include <cmath>
#include <vector>
#pragma warning(disable : 4996)
using namespace std;
#define FOR(i,a,b) for (int i = (a); i < (b); i++)
#define REP(i,n) FOR(i,0,n)
//最大公約数
long gcd(long a, long b){
if (a%b==0){
... | main.c:1:10: fatal error: iostream: No such file or directory
1 | #include <iostream>
| ^~~~~~~~~~
compilation terminated.
|
s237672603 | p03719 | C++ | #include <iostream>
int main(void){
int a,b,c;
cin >> a >> b >> c;
if(a<=c&&c<=b){ cout << "Yes" << endl; }
else{ cout << "No" << endl; }
return 0;
} | a.cc: In function 'int main()':
a.cc:5:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
5 | cin >> a >> b >> c;
| ^~~
| std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
62 | extern istream cin; ///< Lin... |
s017365367 | p03719 | Java | import java.util.Scanner;
public class beginner61A{
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
int A = sc.nextInt();
int B = sc.nextInt();
int C = sc.nextInt();
if(C>=A && C<=B){
System.out.println("YES");
}else{
... | Main.java:2: error: class beginner61A is public, should be declared in a file named beginner61A.java
public class beginner61A{
^
1 error
|
s258572393 | p03719 | C++ | #include <bits\stdc++.h>
using namespace std;
int main() {
int n, k;
pair<int, int> p[200000];
cin >> n >> k;
for (int i = 0; i < n; i++) {
cin >> p[i].first >> p[i].second;
}
sort(p, p + n);
int kk = k;
for (int i = 0; i < n; i++) {
kk -= p[i].second;
if (kk <= 0) {
cout << p[i].first;
break;
}... | a.cc:1:10: fatal error: bits\stdc++.h: No such file or directory
1 | #include <bits\stdc++.h>
| ^~~~~~~~~~~~~~~
compilation terminated.
|
s853955010 | p03719 | Java | import java.util.Scanner;
public class beginner61A{
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
int A = sc.nextInt();
int B = sc.nextInt();
int C = sc.nextInt();
if(C>=A && C<=B){
System.out.println("YES");
}else{
... | Main.java:2: error: class beginner61A is public, should be declared in a file named beginner61A.java
public class beginner61A{
^
1 error
|
s805941895 | p03719 | C++ |
import java.io.*;
import java.util.*;
import java.lang.Math.*;
public class Main {
public static void main(String[] args) {
Main main = new Main();
try {
main.solve(args);
} catch (Exception e) {
e.printStackTrace();
}
}
public void solve(String[] a... | a.cc:2:1: error: 'import' does not name a type
2 | import java.io.*;
| ^~~~~~
a.cc:2:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:3:1: error: 'import' does not name a type
3 | import java.util.*;
| ^~~~~~
a.cc:3:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:4:1: ... |
s645093460 | p03719 | C | #include <stdio.h>
int main(void)
{
int A,B,C;
scanf("%d %d %d",&A,&B,&C);
if(A<=C&&C<=B)
printf("YES\n");
else
printf("NO\n");
return 0
} | main.c: In function 'main':
main.c:10:9: error: expected ';' before '}' token
10 | return 0
| ^
| ;
11 | }
| ~
|
s640576363 | p03719 | Java | import java.util.Scanner;
public class Atcoder {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int a = sc.nextInt();
int b = sc.nextInt();
int c = sc.nextInt();
// String s = sc.next();
if (c >= a && c <= b){
System.out.println("Yes");
}
else {
System.out... | Main.java:3: error: class Atcoder is public, should be declared in a file named Atcoder.java
public class Atcoder {
^
1 error
|
s574471338 | p03719 | C | include <stdio.h>
int main(void)
{
int A,B,C;
scanf("%d %d %d",&A,&B,&C);
if(A<=C&&C<=B)
printf("YES\n");
else
printf("NO\n");
return 0
} | main.c:1:9: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
1 | include <stdio.h>
| ^
|
s556894516 | p03719 | C++ | l = input().split()
A = int(l[0])
B = int(l[1])
C = int(l[2])
if C >= A:
if C <= B:
print("Yes")
else:
print("No") | a.cc:1:1: error: 'l' does not name a type
1 | l = input().split()
| ^
|
s918051712 | p03719 | C++ | #include<iostream>
#include<fstream>
#include<cmath>
#include<string>
#include<set>
#include <map>
#include<algorithm>
#include<vector>
#include <queue>
#include <stack>
using namespace std;
typedef long long ll;
typedef pair<int, int> ii;
const double PI = acos(-1.0);
const ll INF = LLONG_MAX;
const int A = 1234567;
d... | a.cc:15:16: error: 'LLONG_MAX' was not declared in this scope
15 | const ll INF = LLONG_MAX;
| ^~~~~~~~~
a.cc:11:1: note: 'LLONG_MAX' is defined in header '<climits>'; this is probably fixable by adding '#include <climits>'
10 | #include <stack>
+++ |+#include <climits>
11 | using namesp... |
s305982943 | p03719 | C++ | #include <stdio.h>
void main(){
int a,b,c;
scanf("%d%d%d", &a, &b, &c);
if(a <= b && b <= c){
printf("Yes\n");
}else{
printf("No\n");
}
}
| a.cc:3:1: error: '::main' must return 'int'
3 | void main(){
| ^~~~
|
s635460568 | p03719 | C++ | #include<iostream>
using namespace std;
int main(){
int a,b,c;
if(a<b){
}
else{
} | a.cc: In function 'int main()':
a.cc:11:2: error: expected '}' at end of input
11 | }
| ^
a.cc:4:11: note: to match this '{'
4 | int main(){
| ^
|
s096040077 | p03719 | C++ | #include<iostream>
using namespace std;
int main(){
int a,b,c;
if(a<b){
}
else{
} | a.cc: In function 'int main()':
a.cc:11:2: error: expected '}' at end of input
11 | }
| ^
a.cc:4:11: note: to match this '{'
4 | int main(){
| ^
|
s022066332 | p03719 | C | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
int main() {
int a, b, c;
scanf("%d %d %d", &a, &b, &c);
if ( c >= a && c <=∑ b)
printf("Yes");
else
printf("No");
return 0;
} | main.c: In function 'main':
main.c:9:22: error: stray '\342' in program
9 | if ( c >= a && c <=<U+2211> b)
| ^~~~~~~~
|
s016809937 | p03719 | Java | import java.util.Scanner;
public class AtCoder {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int a = sc.nextInt();
int b = sc.nextInt();
int c = sc.nextInt();
// String s = sc.next();
if (c >= a && c <= b){
System.out.println("Yes");
}
else {
System.out... | Main.java:3: error: class AtCoder is public, should be declared in a file named AtCoder.java
public class AtCoder {
^
1 error
|
s378701094 | p03719 | C++ | #include<iostream>
#include<string>
#include<algorithm>
using namespace std;
int main() {
int a, b; c; cin >> a >> b >> c;
if (a <= c&&c <= b)cout << "Yes\n";
else cout << "No\n";
} | a.cc: In function 'int main()':
a.cc:6:19: error: 'c' was not declared in this scope
6 | int a, b; c; cin >> a >> b >> c;
| ^
|
s873385227 | p03719 | C++ | int main(void){
long long a, b, c;
cin >> a >> b >> c;
if( a<=c && c<=b){
cout << "Yes" << endl;
} else {
cout << "No" << endl;
}
return 0;
} | a.cc: In function 'int main()':
a.cc:3:5: error: 'cin' was not declared in this scope
3 | cin >> a >> b >> c;
| ^~~
a.cc:5:9: error: 'cout' was not declared in this scope
5 | cout << "Yes" << endl;
| ^~~~
a.cc:5:26: error: 'endl' was not declared in this scope
5 | ... |
s889609497 | p03719 | C++ | #include "<iostream>
using namespace std;
int main() {
int a, b, c;
if (c >= a && c <= b)cout << "Yes" << endl;
else cout << "No" << endl;
return 0;
} | a.cc:1:10: warning: missing terminating " character
1 | #include "<iostream>
| ^
a.cc:1:10: error: #include expects "FILENAME" or <FILENAME>
1 | #include "<iostream>
| ^~~~~~~~~~~
a.cc: In function 'int main()':
a.cc:6:30: error: 'cout' was not declared in this scope
6 | ... |
s002152112 | p03719 | C++ | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
#define ist istream_iterator
#define ost ostream_iterator
ll const inf = 100 * 1000;
int const N = (1 << 17) + 16;
int main() {
cin.tie(0);
cin.sync_with_stdio(0);
int a, b, c;
cin >> a >> b >> c;
cout << ((c >= a && c <= b) > "Yes" : ... | a.cc: In function 'int main()':
a.cc:20:31: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
20 | cout << ((c >= a && c <= b) > "Yes" : "No") << endl;
| ~~~~~~~~~~~~~~~~~~~^~~~~~~
a.cc:20:38: error: expected ')' before ':' token
20 | cout << ((c >= a && c <= b) > "... |
s553531157 | p03719 | C++ | #include <iostream>
#include <queue>
using namespace std;
int N;
long long W;
long long w[100], v[100];
long double va[100];
long long sumw = 0, sumv = 0, strsw=0, strsv=0;
struct VAR
{
long long w, v;
double va;
};
VAR str, str_pop;
queue<VAR> que;
queue<VAR> sum;
long long sumw = 0;
int main()
{
cin.tie(0);
io... | a.cc:20:11: error: redefinition of 'long long int sumw'
20 | long long sumw = 0;
| ^~~~
a.cc:10:11: note: 'long long int sumw' previously defined here
10 | long long sumw = 0, sumv = 0, strsw=0, strsv=0;
| ^~~~
|
s335248957 | p03719 | C++ | #include <bits\stdc++.h>
using namespace std;
int main() {
int a, b, c;
if (c >= a && c <= b)cout << "Yes" << endl;
else cout << "No" << endl;
return 0;
} | a.cc:1:10: fatal error: bits\stdc++.h: No such file or directory
1 | #include <bits\stdc++.h>
| ^~~~~~~~~~~~~~~
compilation terminated.
|
s990066010 | p03719 | C++ | import java.util.Scanner;
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();
if(c>=a&&c<=b) System.out.println("Yes");
else System.out.println("No");
}
} | a.cc:1:1: error: 'import' does not name a type
1 | import java.util.Scanner;
| ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:3:1: error: expected unqualified-id before 'public'
3 | public class Main {
| ^~~~~~
|
s125399252 | p03719 | C++ | #include <iostream>
#include <tuple>
#include <string>
#include <map>
#include <algorithm>
#include <list>
#include <vector>
#include <set>
#include <stdio.h>
#include <queue>
#include <stack>
#include <deque>
#include <math.h>
#include <sstream>
#include <stdlib.h>
#include <functional>
using namespace std;
#define ... | a.cc:174:12: error: extended character ↲ is not valid in an identifier
174 | ll n, m, Q;↲
| ^
a.cc:173:1: error: expected initializer before 'int'
173 | int lst[120000];
| ^~~
a.cc:174:12: error: '\U000021b2' does not name a type
174 | ll n, m, Q;↲
| ^
|
s177563424 | p03719 | C++ | #include<bits./stdc++.h>
using namespace std;
int main()
{
int A,B,C;
scanf("%d%d%d",&A,&B,&C);
if(A <= C && C <= B)printf("Yes\n");
else printf("No\n");
return 0;
}
| a.cc:1:9: fatal error: bits./stdc++.h: No such file or directory
1 | #include<bits./stdc++.h>
| ^~~~~~~~~~~~~~~~
compilation terminated.
|
s814744714 | p03719 | C++ | #include <stdio.h>
int main(){
int A,B,C;
scanf("%d %d %d",&A,&B,&C);
if(A<C && B>C){
printf("Yes\n");
}
else{
printf("No\n");
}
return 0
} | a.cc: In function 'int main()':
a.cc:12:12: error: expected ';' before '}' token
12 | return 0
| ^
| ;
13 | }
| ~
|
s324257721 | p03719 | C++ | #include <bits/stdc++.h>
#define lli long long int
#define pb push_back
#define pii pair <int, int>
#define pll pair <lli, lli>
#define _F first
#define _S second
#define mset(x) memset(x, 0, sizeof(x))
#define fastio() ios_base::sync_with_stdio(0)
using namespace std;
int main()
{
int a, b, c;
cin >> a >> b >> c;... | a.cc: In function 'int main()':
a.cc:22:39: error: expected ';' before numeric constant
22 | cout << "No" << endl;1 3 2
| ^~
| ;
|
s317590941 | p03719 | Java | import java.util.*;
public class ABC061A {
public static int solve() {
return 0;
}
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int a, b, c;
a = sc.nextInt();
b = sc.nextInt();
c = sc.nextInt();
if (c >= a && c <= b)... | Main.java:3: error: class ABC061A is public, should be declared in a file named ABC061A.java
public class ABC061A {
^
1 error
|
s378648782 | p03719 | C++ | #include<bits./stdc++.h>
using namespace std;
int main()
{
int A,B,C;
scanf("%d%d%d",&A,&B,&C);
if(A <= C && C <= B)printf("Yes\n");
else printf("No\n");
}
| a.cc:1:9: fatal error: bits./stdc++.h: No such file or directory
1 | #include<bits./stdc++.h>
| ^~~~~~~~~~~~~~~~
compilation terminated.
|
s248806378 | p03719 | C++ | #include<iostream>
#include<fstream>
#include<cmath>
#include<string>
#include<set>
#include <map>
#include<algorithm>
#include<vector>
#include <queue>
#include <stack>
using namespace std;
typedef long long ll;
typedef pair<int, int> ii;
const double PI = acos(-1.0);
const ll INF = LLONG_MAX;
const int A = 1234567;
d... | a.cc:15:16: error: 'LLONG_MAX' was not declared in this scope
15 | const ll INF = LLONG_MAX;
| ^~~~~~~~~
a.cc:11:1: note: 'LLONG_MAX' is defined in header '<climits>'; this is probably fixable by adding '#include <climits>'
10 | #include <stack>
+++ |+#include <climits>
11 | using namesp... |
s963574961 | p03719 | C++ | #include "bits\stdc++.h"
using namespace std;
int main() {
int a, b, c;
if (c >= a && c <= b)cout << "Yes" << endl;
else cout << "No" << endl;
return 0;
} | a.cc:1:10: fatal error: bits\stdc++.h: No such file or directory
1 | #include "bits\stdc++.h"
| ^~~~~~~~~~~~~~~
compilation terminated.
|
s773020613 | p03719 | C++ | #include <bits/stdc++.h>
using namespace std;
#define INF 1001000100010001000
#define MOD 1000000007
#define EPS 1e-10
#define int long long
#define rep(i, N) for (int i = 0; i < N; i++)
#define Rep(i, N) for (int i = 1; i < N; i++)
#define For(i, a, b) for (int i = (a); i < (b); i++)
#define pb push_back
#define e... | a.cc: In function 'int main()':
a.cc:38:2: error: expected '}' at end of input
38 | }
| ^
a.cc:29:1: note: to match this '{'
29 | {
| ^
|
s257251228 | p03719 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, c;
scanf("%d %d %d", &a, &b, &c);
if (c >= A && c <= B) printf("Yes");
else printf("No");
} | a.cc: In function 'int main()':
a.cc:7:18: error: 'A' was not declared in this scope
7 | if (c >= A && c <= B) printf("Yes");
| ^
a.cc:7:28: error: 'B' was not declared in this scope
7 | if (c >= A && c <= B) printf("Yes");
| ^
|
s044213666 | p03719 | C++ | #include <string>
#include <queue>
#include <stack>
#include <vector>
#include <sstream>
#include <algorithm>
#include <deque>
#include <set>
#include <map>
#include <unordered_set>
#include <unordered_map>
#include <list>
#include <cstdio>
#include <iostream>
#include <cmath>
#include <climits>
#include <bitset>
#incl... | a.cc: In function 'int main()':
a.cc:34:48: error: invalid operands of types 'const char*' and '<unresolved overloaded function type>' to binary 'operator<<'
34 | cout < ((a <= c && c <= b) ? "Yes" : "No") << endl;
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~
|
s338342948 | p03720 | C++ | 8 8
1 2
3 4
1 5
2 8
3 7
5 2
4 1
6 8 | a.cc:1:1: error: expected unqualified-id before numeric constant
1 | 8 8
| ^
|
s350851686 | p03720 | Java | import java.util.*;
import java.io.*;
public class A{
public static void main(String[] args) throws IOException,NumberFormatException{
try {
FastScanner sc=new FastScanner();
int n=sc.nextInt(),m=sc.nextInt();
int a[][]=new int[m][2];
for(int i=0;i<m;i++) {
a[i][0]=sc.nextInt();
a[i][1]=sc.nextInt();... | Main.java:4: error: class A is public, should be declared in a file named A.java
public class A{
^
1 error
|
s642069612 | p03720 | C | n, m = gets.chomp.split(" ").map(&:to_i)
arr = Array.new(n).map{Array.new}
m.times do |i|
a, b = gets.chomp.split(" ").map(&:to_i)
arr[a-1] << b
arr[b-1] << a
end
arr.each do |i|
puts i.size
end
| main.c:1:1: warning: data definition has no type or storage class
1 | n, m = gets.chomp.split(" ").map(&:to_i)
| ^
main.c:1:1: error: type defaults to 'int' in declaration of 'n' [-Wimplicit-int]
main.c:1:4: error: type defaults to 'int' in declaration of 'm' [-Wimplicit-int]
1 | n, m = gets.chomp.split("... |
s302084499 | p03720 | C++ | #include <bits/stdc++.h>
using namespace std;
typedef long long int ll;
typedef vector<int> vi;
typedef pair<int, int> pi;
#define txt \
freopen("ip.txt", "r", stdin); \
freopen("op.txt", "w", stdout)
#define a3 INT_MAX
#define i3 INT_MIN
#define a6 INT64_MAX
#define i6 INT64_MIN
#define ... | a.cc:165:2: error: unterminated argument list invoking macro "fo"
165 | }
| ^
a.cc: In function 'void solve()':
a.cc:140:5: error: 'fo' was not declared in this scope
140 | fo(i,n{
| ^~
a.cc:140:7: error: expected '}' at end of input
140 | fo(i,n{
| ^
a.cc:137:1: note: to matc... |
s836739833 | p03720 | C++ | using namespace std;
int main() {
int N, M;
cin >> N >> M;
vector<int> A(N, 0);
for (int i = 0; i < M; i++) {
int a, b;
cin >> a >> b;
A.at(a-1) += 1;
A.at(b-1) += 1;
}
for (int i = 0; i < N; i++) {
cout << A.at(i) << endl;
}
} | a.cc: In function 'int main()':
a.cc:5:3: error: 'cin' was not declared in this scope
5 | cin >> N >> M;
| ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
+++ |+#include <iostream>
1 | using namespace std;
a.cc:7:3: error: 'v... |
s774223634 | p03720 | C++ | #include <bits/stdc++.h>
using namespace std;
int main (){
int N,M,city;
cin>>N>>M;
vector<int> road(N,0);
for (int i=0;i<2*M;i++){
cin>>city;
for(int k=0;k<N;k++){
if(k==city){
road.at(k)+=1;
}
}
}
for (int i=0;i<N;i++){
cout<<road.at(k)<<endl;
}
}
| a.cc: In function 'int main()':
a.cc:16:19: error: 'k' was not declared in this scope
16 | cout<<road.at(k)<<endl;
| ^
|
s978170586 | p03720 | C++ | #include <bits/stdc++.h>
using namespace std;
int main (){
int N,M,city;
cin>>N>>M;
vector<int> road(N,0);
for (i=0;i<2*M;i++){
cin>>city;
for(k=0;k<N;k++){
if(k==city){
road.at(k)+=1;
}
}
}
for (i=0;i<N;i++){
cout<<road.at(k)<<endl;
}
}
| a.cc: In function 'int main()':
a.cc:7:8: error: 'i' was not declared in this scope
7 | for (i=0;i<2*M;i++){
| ^
a.cc:9:9: error: 'k' was not declared in this scope
9 | for(k=0;k<N;k++){
| ^
a.cc:15:8: error: 'i' was not declared in this scope
15 | for (i=0;i<N;i++){
... |
s574277185 | p03720 | C++ | #include <bits/stdc++.h>
using namespace std;
int main (){
int N,M,city;
cin>>N>>M;
vector<int> road(N,0);
for (i=0;i<2*M;i++){
cin>>city;
for(k=0;k<N;k++){
if(k==city){
road.at(k)+=1;
}
}
}
for (i=0;i<N;i++){
cout<<road.at(k)<<endl;
}
}
| a.cc: In function 'int main()':
a.cc:7:8: error: 'i' was not declared in this scope
7 | for (i=0;i<2*M;i++){
| ^
a.cc:9:9: error: 'k' was not declared in this scope
9 | for(k=0;k<N;k++){
| ^
a.cc:15:8: error: 'i' was not declared in this scope
15 | for (i=0;i<N;i++){
... |
s294856054 | p03720 | C++ | /*
このコード、と~おれ!
Be accepted!
∧_∧
(。・ω・。)つ━☆・*。
⊂ ノ ・゜+.
しーJ °。+ *´¨)
.· ´¸.·*´¨) ¸.·*¨)
(¸.·´ (¸.·'* ☆
*/
#include <cstdio>
#include <algorithm>
#include <string>
#include <cmath>
#include <cstring>
#include <vector>
#include <numeric>
#include <iostream>
#include <random>
#include <map... | a.cc:116:1: error: '\U0000feff' does not name a type
116 | /*
|
a.cc:136:23: error: 'edge' was not declared in this scope
136 | vector<vector<edge<T>>> g;
| ^~~~
a.cc:136:28: error: template argument 1 is invalid
136 | vector<vector<edge<T>>> g;
| ... |
s749849902 | p03720 | C++ | /*
このコード、と~おれ!
Be accepted!
∧_∧
(。・ω・。)つ━☆・*。
⊂ ノ ・゜+.
しーJ °。+ *´¨)
.· ´¸.·*´¨) ¸.·*¨)
(¸.·´ (¸.·'* ☆
*/
#include <cstdio>
#include <algorithm>
#include <string>
#include <cmath>
#include <cstring>
#include <vector>
#include <numeric>
#include <iostream>
#include <random>
#include <map... | a.cc:116:1: error: '\U0000feff' does not name a type
116 | /*
|
a.cc:136:23: error: 'edge' was not declared in this scope
136 | vector<vector<edge<T>>> g;
| ^~~~
a.cc:136:28: error: template argument 1 is invalid
136 | vector<vector<edge<T>>> g;
| ... |
s959567778 | p03720 | C++ | #include <iostream>
#include <unordered_map>
using namespace std;
int main() {
int n, m;
cin >> n >> m;
unordered_map<int> cities;
int a, b;
for (int i = 0; i < m; i++) {
cin >> a >> b;
cities[a]++;
cities[b]++;
}
for (int i = 0; i < n; i++) {
cout << cities[i]++ << endl;;
}
return 0... | a.cc: In function 'int main()':
a.cc:9:20: error: wrong number of template arguments (1, should be at least 2)
9 | unordered_map<int> cities;
| ^
In file included from /usr/include/c++/14/unordered_map:41,
from a.cc:2:
/usr/include/c++/14/bits/unordered_map.h:109:11: note... |
s959961359 | p03720 | Java | import java.util.*;
public class Main {
public static void main(String[] args) throws Exception{
Scanner scn = new Scanner(System.in);
int n = scn.nextInt();
int m = scn.nextInt();
int[] x = new int[n];
int a = 0;
int b = 0;
for(int i=0; i<n; i++){
a = scn.nextInt()-1;
b = s... | Main.java:14: error: cannot find symbol
ans[a]++;
^
symbol: variable ans
location: class Main
Main.java:15: error: cannot find symbol
ans[b]++;
^
symbol: variable ans
location: class Main
Main.java:18: error: cannot find symbol
System.out.println(A[i]);
... |
s104833760 | p03720 | C++ | #include<bits/stdc++.h>
using namespace std;
typedef long long ll ;
typedef double db;
const double pi = 3.141592654;
#define pb push_back
#define forab(i,a,b) for(int i=(a);i<=(b);i++)
#define CIN ios_base::sync_with_stdio(0); cin.tie(0)
#define pcase(z,x) printf("Case %ld: %lld\n",z,x)
#define nw ... | a.cc: In function 'int main()':
a.cc:20:22: error: lvalue required as increment operand
20 | arr[x]++;
| ~~~~~^
a.cc:21:22: error: lvalue required as increment operand
21 | arr[y]++;
| ~~~~~^
|
s418362456 | p03720 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
int N, M;
cin >> N >> M;
int a;
vector<int> towns(N);
for (int i = 0; i < 2*M; i++){
cin >> a;
towns.at(a-1)++;
}
for (int i = 0; i < N; i++){
cout << towns.at(i) << endl;
}
| a.cc: In function 'int main()':
a.cc:17:2: error: expected '}' at end of input
17 | }
| ^
a.cc:4:12: note: to match this '{'
4 | int main() {
| ^
|
s989110371 | p03720 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(void) { int N, M; cin >> N >> M; const int NMMAX = 50; int A[NMMAX], B[NMMAX]; for (int i = 0; i < M; ++i) { cin >> A[i] >> B[i];
}
int road[NMMAX]; for (int i = 0; i < N; ++i) { road[i] = 0; } for (int i = 0; i < M; ++i) { road[A[i] - 1] += 1;
road[B[i] - 1] += 1... | a.cc: In function 'int main()':
a.cc:6:81: error: return-statement with no value, in function returning 'int' [-fpermissive]
6 | road[B[i] - 1] += 1; } for (int i = 0; i < N; ++i) { cout << road[i] << endl; } return; }
| ^~~~~~
|
s461550876 | p03720 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(void) { int N, M; cin >> N >> M; const int NMMAX = 50; int A[NMMAX], B[NMMAX]; for (int i = 0; i < M; ++i) { cin >> A[i] >> B[i];
}
int road[NMMAX]; for (int i = 0; i < N; ++i) { road[i] = 0; } for (int i = 0; i < M; ++i) { road[A[i] - 1] += 1;
road[B[i] - 1] += 1... | a.cc: In function 'int main()':
a.cc:6:77: error: expected ';' before '}' token
6 | road[B[i] - 1] += 1; } for (int i = 0; i < N; ++i) { cout << road[i] << endl } return }
| ^~
| ... |
s091150088 | p03720 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(){
int n, m;
cin >> n >> m;
vector<int> city(n);
for(int i = 0;i < m;i++){
int a, b;
cin >> a >> b;
city.at(a-1)++;
city.at(b-1)++;
}
for(int i = 0;i < n;i++){
cout << a.at(i) << endl;
}
}
| a.cc: In function 'int main()':
a.cc:15:13: error: 'a' was not declared in this scope
15 | cout << a.at(i) << endl;
| ^
|
s210686391 | p03720 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(){
int n, m;
cin >> n >> m;
vector<int> city(n);
for(int i = 0;i < m;i++){
int a, b;
cin >> a - 1 >> b - 1;
city.at(a)++;
city.at(b)++;
}
for(int i = 0;i < n;i++){
cout << a.at(i) << endl;
}
} | a.cc: In function 'int main()':
a.cc:10:9: error: no match for 'operator>>' (operand types are 'std::istream' {aka 'std::basic_istream<char>'} and 'int')
10 | cin >> a - 1 >> b - 1;
| ~~~ ^~ ~~~~~
| | |
| | int
| std::istream {aka std::basic_istream<char>}
In... |
s086969863 | p03720 | C++ | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
int64_t MOD=1000000007;
const long long INF = 1LL<<60;
int main() {
int N,M; cin>N>>M;
vector<int> S(N,0);
rep(i,M){
int a,b; cin>>a>>b;
S.at(a-1)++;
S.at(b-1)++;
}
rep(i,N){
cout<<S.at(i)<<endl... | a.cc: In function 'int main()':
a.cc:8:15: error: no match for 'operator>' (operand types are 'std::istream' {aka 'std::basic_istream<char>'} and 'int')
8 | int N,M; cin>N>>M;
| ~~~^~~~~
| | |
| | int
| std::istream {aka std::basic_istream<... |
s625181327 | p03720 | C++ | // ConsoleApplication2.cpp : このファイルには 'main' 関数が含まれています。プログラム実行の開始と終了がそこで行われます。
//
#include "pch.h"
#include <iostream>
#include <string>
#include <vector>
#include <stdio.h>
#include <map>
#include <algorithm>
using namespace std;
int main()
{
int n, m;
cin >> n >> m;
vector<int> mati(n+1 , 0);
for (int i = 0;... | a.cc:4:10: fatal error: pch.h: No such file or directory
4 | #include "pch.h"
| ^~~~~~~
compilation terminated.
|
s821463589 | p03720 | C++ | #include <bits/stdc++.h>
using namespace std;
#ifdef LOCAL
#include "debug.h"
#else
#define dump(...)
#endif
#define endl "\n"
#define ll long long
#define FOR(i, a, b) for (int i = (int)(a); i < (int)(b); i++)
#define REP(i, x) for (int i = 0; i < (int)(x); i++)
#define REPS(i, x) for (int i = 1; i <= (int)(x); i++)
#... | a.cc:208:2: error: expected ';' after class definition
208 | }
| ^
| ;
|
s996439385 | p03720 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
int N, M;
cin >> N >> M;
for (int j = 0; j < M; j++) {
int a, b;
cin >> a >> b;
vector<int> count(N);
count.at(a - 1) += 1;
count.at(b - 1) += 1;
}
for (int i = 0; i < count.size(); i++) {
cout << count.at(i) << endl;
}
} | a.cc: In function 'int main()':
a.cc:15:29: error: overloaded function with no contextual type information
15 | for (int i = 0; i < count.size(); i++) {
| ^~~~
a.cc:16:19: error: overloaded function with no contextual type information
16 | cout << count.at(i) << endl;
... |
s366410522 | p03720 | C | #include<stdio.h>
int main()
{
int n,m,i;
scanf("%d %d",&n,&m);
int road[n+1],point[2m];
for(i=0;i<n;++i)
{
road[n]=0;
}
for(i=0;i<m;++i)
{
scanf("%d %d",&point[2i],&point[2i+1]);
road[point[2i]]++;
road[point[2i+1]]++;
}
for(i=1;i<n+1;++i)
{ printf("%d\n",road[i]);
}
return 0;
} | main.c: In function 'main':
main.c:6:21: error: invalid suffix "m" on integer constant
6 | int road[n+1],point[2m];
| ^~
|
s904039114 | p03720 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
int N, M;
cin >> N >> M;
vector<int> vec(M * 2);
for (int i = 0; i < M; i++) {
cin << vec.at(i) << vec.at(i+1);
i++;
}
vector<int> result(M * 2);
for (int i = 0; i < vec.size(); i++) {
result.at(vec.at(i) - 1)++;
}
for (... | 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<int>, int>::value_type' {aka 'int'})
9 | cin << vec.at(i) << vec.at(i+1);
| ~~~ ^~ ~~~~~~~~~
| | ... |
s101507015 | p03720 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
int N,M;
cin >> N >> M ;
int A[M] ,B[M];
for ( int i=0 ; i < M ;i++){
cin >> A[i] >> B[i] ;
}
int road[N] ;
for ( int i=0 ; i<N ; i++ ){
road[i]=0
}
for ( int i=0 ; i < M ; i++){
road[A[i]-1]++;
road[B[i]-1]++;
}
for ( ... | a.cc: In function 'int main()':
a.cc:13:14: error: expected ';' before '}' token
13 | road[i]=0
| ^
| ;
14 | }
| ~
|
s423669334 | p03720 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
int N,M;
cin >> N >> M ;
int A[M] ,B[M];
for ( int i=0 ; i < M ;i++){
cin >> A[i] >> B[i] ;
}
int road[N] = 0;
for ( int i=0 ; i < M ; i++){
road[A[i]-1]++;
road[B[i]-1]++;
}
for ( int i=0 ; i< N ; i++){
cout << road[i] << ... | a.cc: In function 'int main()':
a.cc:11:17: error: array must be initialized with a brace-enclosed initializer
11 | int road[N] = 0;
| ^
|
s357444348 | p03720 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
int N,M;
cin >> N >> M ;
int A[M] ,B[M];
for ( int i=0 ; i < M ;i++){
cin >> A[i] >> B[i] ;
}
int road[N] ;
for ( int i=0 ; i < M ; i++){
road(A[i]-1)++;
road(B[i]-1)++;
}
for ( int i=0 ; i< N ; i++){
cout << road[i] << end... | a.cc: In function 'int main()':
a.cc:13:9: error: 'road' cannot be used as a function
13 | road(A[i]-1)++;
| ~~~~^~~~~~~~
a.cc:14:9: error: 'road' cannot be used as a function
14 | road(B[i]-1)++;
| ~~~~^~~~~~~~
|
s909766031 | p03720 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
int N,M;
cin >> N >> M ;
int A[M] ,B[M];
for ( int i=0 ; i < M ;i++){
cin >> A(i) >> B(i) ;
}
int road[N] ;
for ( int i=0 ; i < M ; i++){
road(A(i)-1)++;
road(B(i)-1)++;
}
for ( int i=0 ; i< N ; i++){
cout << road(i) << end... | a.cc: In function 'int main()':
a.cc:9:13: error: 'A' cannot be used as a function
9 | cin >> A(i) >> B(i) ;
| ~^~~
a.cc:9:21: error: 'B' cannot be used as a function
9 | cin >> A(i) >> B(i) ;
| ~^~~
a.cc:13:11: error: 'A' cannot be used as a function
13 | ... |
s462199379 | p03720 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
int N,M;
cin >> N >> M ;
int A(M) ,B(M);
for ( int i=0 ; i < M ;i++){
cin >> A(i) >> B(i) ;
}
int road(N) ;
for ( int i=0 ; i < M ; i++){
road(A(i)-1)++;
road(B(i)-1)++;
}
for ( int i=0 ; i< N ; i++){
cout << road(i) << end... | a.cc: In function 'int main()':
a.cc:9:13: error: 'A' cannot be used as a function
9 | cin >> A(i) >> B(i) ;
| ~^~~
a.cc:9:21: error: 'B' cannot be used as a function
9 | cin >> A(i) >> B(i) ;
| ~^~~
a.cc:13:11: error: 'A' cannot be used as a function
13 | ... |
s765403525 | p03720 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
int N,M;
cin >> N >> M
int A(M) ,B(M);
for ( int i=0 ; i < M ;i++){
cin >> A(i) >> B(i) ;
}
int road(N) ;
for ( int i=0 ; i < M ; i++){
road(A(i)-1)++;
road(B(i)-1)++;
}
for ( int i=0 ; i< N ; i++){
cout << road(i) << endl... | a.cc: In function 'int main()':
a.cc:6:16: error: expected ';' before 'int'
6 | cin >> N >> M
| ^
| ;
7 | int A(M) ,B(M);
| ~~~
a.cc:9:12: error: 'A' was not declared in this scope
9 | cin >> A(i) >> B(i) ;
| ^
a.cc:9:20... |
s031381959 | p03720 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
int N,M;
cin >> N >> M ;
for (int j=0 ; j < 2*M ; j++){
int s[j] ;
cin >> s[j] ;
}
for (int i=0 ; i<N ; i++){
int count = 0;
for (int j=0 ; j< 2*M ; j++){
if ( s[j]==i+1){
count++;
}
}
cout << count << end... | a.cc: In function 'int main()':
a.cc:14:10: error: 's' was not declared in this scope
14 | if ( s[j]==i+1){
| ^
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.