submission_id stringlengths 10 10 | problem_id stringlengths 6 6 | language stringclasses 3
values | code stringlengths 1 522k | compiler_output stringlengths 43 10.2k |
|---|---|---|---|---|
s494606518 | p03671 | C++ | int main(){
int a,b,c;
scanf("%d %d %d", &a, &b, &c);
int max = a;
if(b>max) max=b;
if(c>max)max=c;
printf("%d\n",a+b+c-max);
return 0;
} | a.cc: In function 'int main()':
a.cc:3:1: error: 'scanf' was not declared in this scope
3 | scanf("%d %d %d", &a, &b, &c);
| ^~~~~
a.cc:7:1: error: 'printf' was not declared in this scope
7 | printf("%d\n",a+b+c-max);
| ^~~~~~
a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probabl... |
s823887976 | p03671 | C++ |
int main(){
int a,b,c;
int max = a;
if (a
| a.cc: In function 'int main()':
a.cc:6:6: error: expected ')' at end of input
6 | if (a
| ~ ^
| )
a.cc:6:6: error: expected statement at end of input
a.cc:6:6: error: expected '}' at end of input
a.cc:3:11: note: to match this '{'
3 | int main(){
| ^
|
s000413682 | p03671 | C | #include <stdio.h>
int main(void){
int a;
int b;
int c;
while(1<=a<=10000){
scanf("%d" , &a);}
while(1<=b<=10000){
scanf("%d" , &b)};
while(1<=c<=10000){
scanf("%d" , &c)};
if(a > b && c > b)
{printf("%d",a+c)}
if(a > c && b > c)
{printf("%d",a+b)}
if(b > a ... | main.c: In function 'main':
main.c:10:25: error: expected ';' before '}' token
10 | scanf("%d" , &b)};
| ^
| ;
main.c:12:25: error: expected ';' before '}' token
12 | scanf("%d" , &c)};
| ^
| ... |
s608365828 | p03671 | C | #include <stdio.h>
int main(void){
int a;
int b;
int c;
while(1<=a<=10000){
scanf("%d" , &a);}
while(1<=b<=10000){
scanf("%d" , &b)};
while(1<=c<=10000){
scanf("%d" , &c)};
if(a > b && c > b)
{printf("%d",a+c)}
if(a > c && b > c)
{printf("%d",a+b)}
if(b > a ... | main.c: In function 'main':
main.c:10:25: error: expected ';' before '}' token
10 | scanf("%d" , &b)};
| ^
| ;
main.c:12:25: error: expected ';' before '}' token
12 | scanf("%d" , &c)};
| ^
| ... |
s928756722 | p03671 | C | #include <stdio.h>
int main(void){
char str[201];
int i,j;
scanf("%s",str);
i=0;
while(str[i]!='\0') i++;
str[i-1]='\0';
while(1){
if(i%2==0){
str[i-2]='\0';
}
i=0;
while(str[i]!='\0') i++;
for(j=0;j<i/2;j++){
if(str[j]!=str[i/2+j]){
break;
}
}
if(j=... | main.c: In function 'main':
main.c:34:3: error: expected declaration or statement at end of input
34 | }
| ^
|
s265959444 | p03671 | Java | Loading subst-jis...done
import java.io.*;
import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int sum = 0;
int a = sc.nextInt();
int b = sc.nextInt();
int c = sc.nextInt();
if (a >= b && a >= c) {
... | Main.java:1: error: class, interface, enum, or record expected
Loading subst-jis...done
^
Main.java:3: error: class, interface, enum, or record expected
import java.util.*;
^
2 errors
|
s018944638 | p03671 | C++ | Loading subst-jis...done
import java.io.*;
import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int sum = 0;
int a = sc.nextInt();
int b = sc.nextInt();
int c = sc.nextInt();
if (a >= b && a >= c) {
... | a.cc:1:1: error: 'Loading' does not name a type
1 | Loading subst-jis...done
| ^~~~~~~
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:5:1: error: expected unqualified-id before 'public'
5 | pu... |
s750991349 | p03671 | C++ | #include <cstdio>
#define min(a,b) a>b ? b : a
int main(){
int a,b,c;
scanf("%d %d %d",&a,&b,&c);
int A,B,C;
A = a+b;
B = b+c;
C = a+c;
int ans = min(A,B);
printf("%d\n",min(ans,C));
return 0;
| a.cc: In function 'int main()':
a.cc:18:11: error: expected '}' at end of input
18 | return 0;
| ^
a.cc:3:11: note: to match this '{'
3 | int main(){
| ^
|
s617103482 | p03671 | C++ | #include <cstdio>
#define min(a,b) a>b ? b : a;
int main(){
int a,b,c;
scanf("%d %d %d",&a,&b,&c);
int A,B,C;
A = a+b;
B = b+c;
C = a+c;
int ans = min(A,B);
printf("%d\n",min(ans,C));
return 0;
} | a.cc: In function 'int main()':
a.cc:2:29: error: expected ')' before ';' token
2 | #define min(a,b) a>b ? b : a;
| ^
a.cc:16:15: note: in expansion of macro 'min'
16 | printf("%d\n",min(ans,C));
| ^~~
a.cc:16:7: note: to match this '('
16 | printf("%d\n",... |
s567384055 | p03671 | C++ | # include < stdio .h >
int main () {
int a, b, c;
scanf ("%d␣%d␣%d", &a, &b, &c);
int max =a;
if(b> max ) max =b;
if(c> max ) max =c;
printf ("%d\n", a+b+c-max );
return 0;
} | a.cc:1:11: fatal error: stdio .h : No such file or directory
1 | # include < stdio .h >
| ^~~~~~~~~~~~
compilation terminated.
|
s922964331 | p03671 | C++ |
/** || By The Name of Allah, Who Created Me. || **/
/**
* Author : Farid ul Islam Chy.
* Batch : 38th.
* Semester : 7C(E).
* Leading University, Sylhet.
* Online Judge: Atcoder
**/
#include <bits/stdc++.h>
using namespace std;
#define gc getchar unlocked
#define gc getchar
#defin... | a.cc:16:9: warning: "gc" redefined
16 | #define gc getchar
| ^~
a.cc:15:9: note: this is the location of the previous definition
15 | #define gc getchar unlocked
| ^~
a.cc:18:9: warning: "pc" redefined
18 | #define pc putchar
| ^~... |
s987589902 | p03671 | Java | import java.util.*;
public class ringing {
public static void main(String[] args) {
// TODO Auto-generated method stub
Scanner sc = new Scanner(System.in);
// 整数の入力
int a = sc.nextInt();
int b = sc.nextInt();
int c = sc.nextInt();
if(a<=b){
if(b <= c){
System.out.println(a+b);
}else{
S... | Main.java:3: error: class ringing is public, should be declared in a file named ringing.java
public class ringing {
^
1 error
|
s412220510 | p03671 | Java | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class abc066 {
public static void main(String[] args) {
// TODO 自動生成されたメソッド・スタブ
InputStreamReader is = new InputStreamReader(System.in);
BufferedReader br = new BufferedReader(is);
String input;
String[] inp... | Main.java:5: error: class abc066 is public, should be declared in a file named abc066.java
public class abc066 {
^
1 error
|
s784142750 | p03671 | C++ | #include<iostream>
using namespace std;
int main() {
int a, b, c, sum;
cin >> a >> b >> c;
if (a<c && b<c) {
sum = a + b;
} else if (a<b && c<b) {
sum = a + c;
} else {
sum = b + c;
} | a.cc: In function 'int main()':
a.cc:12:3: error: expected '}' at end of input
12 | }
| ^
a.cc:3:12: note: to match this '{'
3 | int main() {
| ^
|
s901207823 | p03671 | C++ | #include <stdio>
using namespace std;
int max(int a, int b) {
return a > b ? a : b;
}
int main() {
int a, b, c;
cin >> a >> b >> c;
cout << a + b + c - max(a, max(b, c)) << endl;
return 0;
} | a.cc:1:10: fatal error: stdio: No such file or directory
1 | #include <stdio>
| ^~~~~~~
compilation terminated.
|
s197153735 | p03671 | C++ | a,b,c = map(int, input().split())
print(min(a+b,b+c,a+c))
| a.cc:1:1: error: 'a' does not name a type
1 | a,b,c = map(int, input().split())
| ^
|
s249754016 | p03671 | C++ | #include <iostream>
#include <stdio.h>
#include <cstring>
#include <math.h>
#include <algorithm>
#include <vector>
#define rep(i,n) for(int i=0;i<n;i++)
#define FOR(i,a,b) for(int i=a;i<b;i++)
using namespace std;
int show (int *,int,int);
int ch (int *,int,int,int);
int zero(int *,int,int);
int sum(int *,int,int);
in... | In file included from /usr/include/c++/14/string:51,
from /usr/include/c++/14/bits/locale_classes.h:40,
from /usr/include/c++/14/bits/ios_base.h:41,
from /usr/include/c++/14/ios:44,
from /usr/include/c++/14/ostream:40,
from /usr/includ... |
s483380738 | p03671 | C++ | inport sys
arglist = sys.arg
best = arglist[0] + arglist[1]
if (arglist[1] + argilst[2] < best) :
| a.cc:1:1: error: 'inport' does not name a type
1 | inport sys
| ^~~~~~
|
s221561020 | p03671 | C | #include <stdio.h>
int main() {
int a, b, c;
int ans;
scanf("%d", &a);
scanf("%d", &b);
scanf("%d", &c);
int max;
max = a;
if (max < b) max = b
if (max < c) max = c
printf("%d", a+b+c-max);
return 0;
}
| main.c: In function 'main':
main.c:13:29: error: expected ';' before 'if'
13 | if (max < b) max = b
| ^
| ;
14 | if (max < c) max = c
| ~~
|
s998834032 | p03671 | C++ | #include <cstdio>
#include <iostream>
#include <vector>
using namespace std;
int main() {
vector<int> tab(3, 0);
cin >> tab[0] >> tab[1] >> tab[2];
sort(tab.begin(), tab.end());
cout << tab[0] + tab[1] << endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:10:3: error: 'sort' was not declared in this scope; did you mean 'short'?
10 | sort(tab.begin(), tab.end());
| ^~~~
| short
|
s477045563 | p03671 | C++ | lis=input().split()
lis.sort()
print(int(lis[0])+int(lis[1])) | a.cc:1:1: error: 'lis' does not name a type
1 | lis=input().split()
| ^~~
|
s237559180 | p03671 | C++ | #include <iostream>
#include <vector>
// #include <map>
#include <algorithm>
// #include <numeric>
// #include <limits>
using namespace std;
int main() {
vector<int> data(3);
cin >> data[0] >> data[1] >> data[2];
int max_val = *std::max_element(data.begin(), data.end());
int sum = accumulate(data.begin(), data.en... | a.cc: In function 'int main()':
a.cc:14:19: error: 'accumulate' was not declared in this scope
14 | int sum = accumulate(data.begin(), data.end(), 0);
| ^~~~~~~~~~
|
s669958729 | p03671 | Java | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.Collection;
public class Main {
public static void main(String[] args) throws IOException {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
String x =... | Main.java:21: error: cannot find symbol
Collections.sort(array);
^
symbol: variable Collections
location: class Main
1 error
|
s183478771 | p03671 | C | #include <stdio.h>
int main(void)
{
int a,b,c;
scanf("%d %d %d",&a,&b,&c);
if( (a >= b)&&(a >= c) )
{
printf("%d\n",b + c);
return 0;
}
if( (b >= a)&&(b >= c) )
{
printf("%d/n",a + c);
return 0;
}
if( (c>= a)&&(c >= b)
printf("%d\n",a + b);
return 0;
}
... | main.c: In function 'main':
main.c:19:24: error: expected ')' before 'printf'
19 | if( (c>= a)&&(c >= b)
| ~ ^
| )
20 | printf("%d\n",a + b);
| ~~~~~~
main.c:23:1: error: expected expression before '}' token
23 | }
| ... |
s153633947 | p03671 | C++ | #include<iostream>
using namespace std;
int A,B,C;
int main(){
cin>>A>>B>>C;
cout<<A+B+C-max({A,B,C});
return 0;
}
| a.cc: In function 'int main()':
a.cc:6:20: error: no matching function for call to 'max(<brace-enclosed initializer list>)'
6 | cout<<A+B+C-max({A,B,C});
| ~~~^~~~~~~~~
In file included from /usr/include/c++/14/string:51,
from /usr/include/c++/14/bits/locale_classes.h:40,
... |
s068451057 | p03671 | C++ | #include<iostream>
using namespace std;
int main(){
int n,temp,d,e;
int a[200000];
int b[200000];
cin >> n;
for (int i = 0; i < n; i++) cin >> a[i]; cin;
for (int i = 0; i < n; i++) {
b[i] = a[i];//末尾に追加
//bを逆向きに並び替える
d = 0;
e = i;
while(d < e)
{
temp = b[d];
b[d] = b[e];
b[e] = te... | a.cc:10:1: error: extended character is not valid in an identifier
10 |
| ^
a.cc:12:1: error: extended character is not valid in an identifier
12 |
| ^
a.cc:15:1: error: extended character is not valid in an identifier
15 |
| ^
a.cc:27:1: error: extended character is not valid i... |
s083801997 | p03671 | C++ | #include <iostream>
#include <array>
int main(){
array <int,200000> a;
int n;
std::cin>>n;
for (int i;i<n;i++){
std::cin>>a.at(i);
}
bool flag = true;
while(flag){
flag = true;
n -=2;
for(int i;i<n/2;i++){
if(a.at(i)!=a.at(i+n/2){
flag=false;
}
}
}
std::cout<<n<<std::en... | a.cc: In function 'int main()':
a.cc:5:3: error: 'array' was not declared in this scope; did you mean 'std::array'?
5 | array <int,200000> a;
| ^~~~~
| std::array
In file included from /usr/include/c++/14/bits/stl_algobase.h:64,
from /usr/include/c++/14/string:51,
... |
s388222233 | p03671 | C++ | #include <iostream>
int main() {
int a,b,c,d;
std::cin >> a >> b >> c;
d = std::max({a,b,c});
std::cout << (a + b + c) - d<< std::endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:5:13: error: no matching function for call to 'max(<brace-enclosed initializer list>)'
5 | d = std::max({a,b,c});
| ~~~~~~~~^~~~~~~~~
In file included from /usr/include/c++/14/string:51,
from /usr/include/c++/14/bits/locale_classes.h:40,
... |
s163651440 | p03671 | C++ | #include <iostream>
int main() {
int a,b,c;
std::cin >> a >> b >> c;
std::cout << (a + b + c) - std::max({a, b, c}) << std::endl;
return 0;
}
| a.cc: In function 'int main()':
a.cc:5:38: error: no matching function for call to 'max(<brace-enclosed initializer list>)'
5 | std::cout << (a + b + c) - std::max({a, b, c}) << std::endl;
| ~~~~~~~~^~~~~~~~~~~
In file included from /usr/include/c++/14/string:51,
... |
s620893694 | p03671 | C++ | #include <iostream>
int main() {
std::cin >> a >> b >> c;
std::cout << (a + b + c) - std::max({a, b, c}) << std::endl;
return 0;
}
| a.cc: In function 'int main()':
a.cc:3:15: error: 'a' was not declared in this scope
3 | std::cin >> a >> b >> c;
| ^
a.cc:3:20: error: 'b' was not declared in this scope
3 | std::cin >> a >> b >> c;
| ^
a.cc:3:25: error: 'c' was not declared in this scope
3 ... |
s098335595 | p03671 | C++ | #include <iostream>
#include <fstream>
#include <cstdio>
#include <cmath>
#include <vector>
#include <cstring>
#include <string>
#include <set>
#include <map>
#include <stack>
#include <queue>
#include <algorithm>
using namespace std;
#define REP(i,n) for(int i=0; i<n; ++i)
#define FOR(i,a,b) for(int i=a; i<=b; ++i)
#... | a.cc: In function 'int main()':
a.cc:18:20: error: request for member 'begin' in 'a', which is of non-class type 'int [3]'
18 | #define ALL(c) (c).begin(), (c).end()
| ^~~~~
a.cc:31:14: note: in expansion of macro 'ALL'
31 | sort(ALL(a));
| ^~~
a.cc:18:33: error... |
s400744828 | p03671 | C++ | #include<iostream>
#include<algorithm>
#include<cstdio>
#include<map>
#include<list>
#include<vector>
#include<unordered_map>
using namespace std;
signed main() {
int a, b,c; cin >> a >> b>>c;
cout << min({a + b, b + c, a + c}) << endl;
} | a.cc:9:1: error: extended character is not valid in an identifier
9 |
| ^
a.cc:9:1: error: '\U000000a0' does not name a type
9 |
| ^
|
s305838156 | p03671 | C++ | #include<iostream>
#include<algorithm>
#include<cstdio>
#include<map>
#include<list>
#include<vector>
#include<unordered_map>
#define int long long
using namespace std;
signed main() {
int a, b,c; cin >> a >> b>>c;
cout << min(a + b, b + c, a + c) << endl;
} | In file included from /usr/include/c++/14/string:51,
from /usr/include/c++/14/bits/locale_classes.h:40,
from /usr/include/c++/14/bits/ios_base.h:41,
from /usr/include/c++/14/ios:44,
from /usr/include/c++/14/ostream:40,
from /usr/includ... |
s400159931 | p03671 | C++ | #include <iostream>
#include <vector>
#define MAX_NUM 1000000000
using namespace std;
int n;
int a[MAX_NUM];
int b[MAX_NUM];
int main()
{
cin >> n;
for (int i = 0; i < n; ++i) {
cin >> a[i];
}
for (int i = 0; i < n; ++i) {
b[i] = a[i];
for (int j = 0; j < n / 2; ++j) {
... | /tmp/cctImY2l.o: in function `main':
a.cc:(.text+0x96): relocation truncated to fit: R_X86_64_PC32 against symbol `b' defined in .bss section in /tmp/cctImY2l.o
a.cc:(.text+0xb6): relocation truncated to fit: R_X86_64_PC32 against symbol `b' defined in .bss section in /tmp/cctImY2l.o
a.cc:(.text+0xd9): relocation trunc... |
s046252521 | p03671 | Java | import java.util.Scanner;
public class Main {
public static void main(String args[]){
//B問題
Scanner scan = new Scanner(System.in);
//文字列格納用
String S;
S = scan.next();
while(S.length() >= 2){
//1文字削除
if(S != null && S.length() > 0){
S = S.sub... | Main.java:31: error: reached end of file while parsing
}
^
1 error
|
s611889380 | p03671 | 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 sum = 0;
if(a >= b){
if(a >= c) {
if(b >= c){
sum = a + b;
} else {
sum = a + c;
}
} else... | Main.java:31: error: <identifier> expected
System.out.println(sum);
^
Main.java:31: error: <identifier> expected
System.out.println(sum);
^
Main.java:34: error: class, interface, enum, or record expected
}
^
3 errors
|
s326302889 | p03671 | C++ | /* package whatever; // don't place package name! */
import java.util.*;
import java.lang.*;
import java.io.*;
/* Name of the class has to be "Main" only if the class is public. */
class Main
{
public static void main (String[] args) throws java.lang.Exception
{
Scanner s = new Scanner(System.in);
int a... | 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: error: 'import' does not name a type
4 | import java.lang.*;
| ^~~~~~
a.cc:4:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:5:1... |
s875742684 | p03671 | C++ | #include <bits/stdc++.h>
#define rep(i, first, to) for(int i = first; i < to; ++i)
#define REP(i, first, to) for(int i = first; i <= to; ++i)
#define MyDebug
#ifdef MyDebug
#define debug(x) cout << #x << " : " << x << endl
#define debugP(x) cout << x << endl
#else
#define debug(x)
#define debugP(x)
#endif
using ... | a.cc: In function 'void solve()':
a.cc:40:35: error: incompatible types in assignment of 'int' to 'int [100000]'
40 | twoLength = n - i;
| ~~~~~~~~~~^~~~~~~
a.cc:61:64: error: expected ';' before ')' token
61 | cout << (MOD + nLength[i] - twoLe... |
s017899293 | p03671 | C | #include <stdio.h>
/* run this program using the console pauser or add your own getch, system("pause") or input loop */
int main(int argc, char** argv) {
long long n=0;
int t=1;
long long flag=n;
long long a[n]={0};
scanf("%d",&n);
while(n--){
scanf("%d",&a[t]);
if(t>=2){
int temp1=t;
if(t%2==0){
int i=... | main.c: In function 'main':
main.c:10:17: error: variable-sized object may not be initialized except with an empty initializer
10 | long long a[n]={0};
| ^
|
s795397795 | p03671 | C++ | #include <cstdio>
#include <cstring>
#include <cmath>
#include <algorithm>
using namespace std;
char s[205], t1[205], t2[205];
int main()
{
gets(s);
int len = strlen(s);
int w = len;
for (int j = 1; j <= 200; j++){
int tot = -1;
for (int i = 0; i <= (len - 3) / 2; i++) t1[i] = s[i];
for (int i = (len - 3) /... | a.cc: In function 'int main()':
a.cc:11:9: error: 'gets' was not declared in this scope; did you mean 'getw'?
11 | gets(s);
| ^~~~
| getw
|
s879886790 | p03671 | C++ | 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 sum = 0;
if(a >= b){
if(a >= c) {
if(b >= c){
sum = a + b;
} else {
sum = a + c;
}
} else... | a.cc:1:1: error: 'import' does not name a type
1 | import java.util.*;
| ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:3:1: error: expected unqualified-id before 'public'
3 | public class Main{
| ^~~~~~
a.cc:34:1: error: expected declaration before '}' token
34 | }... |
s393626154 | p03671 | C++ | #include <algorithm>
#include <iostream>
using namespace std;
long long int n,b,c;
long long int a[200001];
int main(){
b=n/2;
c=(n+1)/2;
cin>>n;
for(int z=0;z<n;z++){
cin>>a[z];
}
if(n%2=1){
for(int i=1;i<=c;i++){
a[i]=a[n+2-2*i];
}
for(int j=n;j>c;j--){
a[j]=a[-n-1+2*j];
}
}
if(n%2=0){
for(int i=1;i<=b;i++){
a[i... | a.cc: In function 'int main()':
a.cc:14:5: error: lvalue required as left operand of assignment
14 | if(n%2=1){
| ~^~
a.cc:22:5: error: lvalue required as left operand of assignment
22 | if(n%2=0){
| ~^~
|
s384261225 | p03671 | C++ | #include <cstdio>
using namespace std;
int main(){
int a,b,c;
int ans=0;
scanf("%d %d %d",&a,&b,&c);
ans=a+b;
ans=min(ans,a+c);
ans=min(ans,b+c);
printf("%d\n",ans);
return 0;
}
| a.cc: In function 'int main()':
a.cc:9:21: error: 'min' was not declared in this scope; did you mean 'main'?
9 | ans=min(ans,a+c);
| ^~~
| main
|
s196308433 | p03671 | Java | import java.util.Scanner;
import java.util.Arrays;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int a[] = new int[3];
for(int i = 0;i < 3; i++) {
int a[i] = sc.nextInt();
}
Arrays.sort(a);
System.out.println(a[0] + a[1]);
}
} | Main.java:12: error: ']' expected
int a[i] = sc.nextInt();
^
Main.java:12: error: ';' expected
int a[i] = sc.nextInt();
^
2 errors
|
s509560041 | p03671 | Java | import java.util.Scanner;
import java.util.Arrays;
public class atcoder {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int a[] = new int[3];
for(int i = 0;i < 3; i++) {
a[i] = sc.nextInt();
}
Arrays.sort(a);
System.out.println(a[0] + a[1]);
}
} | Main.java:4: error: class atcoder is public, should be declared in a file named atcoder.java
public class atcoder {
^
1 error
|
s214231605 | p03671 | Java | import java.util.Scanner;
import java.util.Arrays;
public class atcoder {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int a[] = new int[3];
for(int i = 0;i < 3; i++) {
int a[i] = sc.nextInt();
}
Arrays.sort(a);
System.out.println(a[0] + a[1]);
}
}
| Main.java:12: error: ']' expected
int a[i] = sc.nextInt();
^
Main.java:12: error: ';' expected
int a[i] = sc.nextInt();
^
2 errors
|
s272962528 | p03671 | C++ | #include<iostream>
#include<algorithm>
#include<iomanip>
#include<utility>
#include<cmath>
#include<string>
using namespace std;
int main(){
int a[3];
for(int i=0;i<3;i++){
cin >> a[i];
}
sort(s.size(),3);
cout << a[0]+a[1] << endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:15:6: error: 's' was not declared in this scope
15 | sort(s.size(),3);
| ^
|
s374240210 | p03671 | C++ | #include<iostream>
#include<algorithm>
#include<iomanip>
#include<utility>
#include<cmath>
#include<string>
using namespace std;
int main(){
int a[3];
for(int i=0;i<3;i++){
cin >> a[i];
}
sort(a[3],3);
cout << a[0]+a[1] << endl;
return 0;
} | In file included from /usr/include/c++/14/algorithm:61,
from a.cc:2:
/usr/include/c++/14/bits/stl_algo.h: In instantiation of 'void std::__insertion_sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = int; _Compare = __gnu_cxx::__ops::_Iter_less_iter]':
/usr/inclu... |
s602480187 | p03671 | C | #include <stdio.h>
int main(void){
int k,l,m;
scanf("%d%d%d",&k,&l,&m);
int min = k + l;
if(min > (l + m)){
min = l + m;
}
if(min > k + m){
min = k + m;
}
printf("%d",max);
return 0;
}
| main.c: In function 'main':
main.c:12:15: error: 'max' undeclared (first use in this function)
12 | printf("%d",max);
| ^~~
main.c:12:15: note: each undeclared identifier is reported only once for each function it appears in
|
s004303702 | p03671 | C++ | include<iostream>
include<algorithm>
int main(){
int a,b,c;
std::cin>>a>>b>>c;
std::cout<<"std::min(a+b,std::min(b+c,a+c))"<<srd::endl;
return 0;
} | a.cc:1:1: error: 'include' does not name a type
1 | include<iostream>
| ^~~~~~~
|
s306953219 | p03671 | Java | import java.util.Scanner;
public class At001 {
private static int ptn = 3;
public static void main(String[] args) {
@SuppressWarnings("resource")
Scanner sc = new Scanner(System.in);
int[] price= new int[ptn];
for(int i=0; ptn > i; i++) {
price[i] = sc.nextInt();
}
int min = 0;
for(int i=0; ptn-1 >... | Main.java:3: error: class At001 is public, should be declared in a file named At001.java
public class At001 {
^
1 error
|
s251654287 | p03671 | C++ | #include <iostream>
#include <stdio.h>
#include <string>
#include <cstdlib>
#include <cmath>
#include <algorithm>
#include <string.h>
#include <Windows.h>
#define _USE_MATH_DEFINES
#define LL long long
#define MAX(a, b) ((a) > (b) ? (a) : (b))
#define MIN(a, b) ((a) < (b) ? (a) : (b))
using namespace std;
int smax(int... | a.cc:8:10: fatal error: Windows.h: No such file or directory
8 | #include <Windows.h>
| ^~~~~~~~~~~
compilation terminated.
|
s645526008 | p03671 | Java | import java.util.Scanner;
public class Main{
public static void main(String[] args){
int a,b,c,rtn;
Scanner sc=new scanner(System.in);
a=sc.nextInt();
b=sc.nextInt();
c=sc.nextInt();
if(a>b){
if(a>c)rtn=b+c;
else rtn=a+b;
}else{
if(b>c)rtn=a+c;
else rtn=a+b;
}
System.out.println(rtn);
}
} | Main.java:5: error: cannot find symbol
Scanner sc=new scanner(System.in);
^
symbol: class scanner
location: class Main
1 error
|
s795113024 | p03671 | Java | import java.util.*;
public class Main{
public static void main(String[] args){
int a,b,c,rtn;
Scanner sc=new scanner(System.in);
a=sc.nextInt();
b=sc.nextInt();
c=sc.nextInt();
if(a>b){
if(a>c)rtn=b+c;
else rtn=a+b;
}else{
if(b>c)rtn=a+c;
else rtn=a+b;
}
System.out.println(rtn);
}
} | Main.java:5: error: cannot find symbol
Scanner sc=new scanner(System.in);
^
symbol: class scanner
location: class Main
1 error
|
s135887818 | p03671 | Java | import java.util.*;
public class Main{
public static void main(String[] args){
int a,b,c,rtn;
Scanner sc=new scanner(System.in);
a=sc.nextInt();
b=sc.nextInt();
c=sc.nextInt();
if(a>b){
if(a>c)rtn=b+c;
else rtn=a+b;
}else{
if(b>c)rtn=a+c;
else rtn=a+b
}
System.out.println(rtn);
}
} | Main.java:14: error: ';' expected
else rtn=a+b
^
1 error
|
s553906328 | p03671 | C | #include<stdio.h>
int main(void){
int a,b,c;
scanf("%d %d %d", &a, $b, &c);
int min=a+b;
if(min>b+c){
min=b+c;
}
if(min>a+c){
min=a+c;
}
printf("%d\n",min);
return 0;
} | main.c: In function 'main':
main.c:4:23: error: '$b' undeclared (first use in this function); did you mean 'b'?
4 | scanf("%d %d %d", &a, $b, &c);
| ^~
| b
main.c:4:23: note: each undeclared identifier is reported only once for each function it appears in
|
s036782144 | p03671 | C++ | abc = input().split(' ')
abc =[ int(x) for x in abc]
s= 0
if abc[0] == abc[1] == abc[2] :
print(abc[0] + abc[1])
elif abc[0] == abc[1] or abc[2] == abc[1] or abc[2] == abc[0]:
else:
for i in abc:
if i != min(abc):
s += i
print(s)
| a.cc:1:1: error: 'abc' does not name a type
1 | abc = input().split(' ')
| ^~~
|
s808927463 | p03671 | C++ | abc = input().split(' ')
abc =[ int(x) for x in abc]
s= 0
if abc[0] == abc[1] == abc[2] :
print(abc[0] + abc[1])
elif abc[0] == abc[1] or abc[2] == abc[1] or abc[2] == abc[0]:
else:
for i in abc:
if i != min(abc):
s += i
print(s)
| a.cc:1:1: error: 'abc' does not name a type
1 | abc = input().split(' ')
| ^~~
|
s817994071 | p03671 | C++ | include<iostream>
include<algorithm>
using namespace std;
int main(){
int a,b,c;
cin>>a>>b>>c;
cout<<"min(a+b,min(b+c,a+c))"<<endl;
return 0;
} | a.cc:1:1: error: 'include' does not name a type
1 | include<iostream>
| ^~~~~~~
a.cc: In function 'int main()':
a.cc:6:2: error: 'cin' was not declared in this scope
6 | cin>>a>>b>>c;
| ^~~
a.cc:7:2: error: 'cout' was not declared in this scope
7 | cout<<"min(a+b,min(b+c,a+c))"<<endl;
|... |
s766222760 | p03671 | C++ | #include<iostream>
using namespace std;
int main(){
int a[3];
cin>>a[0]>>a[1]>>a[2];
sort(a,a+3);
cout<<a[0]+a[1]<<endl;
} | a.cc: In function 'int main()':
a.cc:6:5: error: 'sort' was not declared in this scope; did you mean 'short'?
6 | sort(a,a+3);
| ^~~~
| short
|
s280987310 | p03671 | C | #include<stdio.h>
int Ring[3];
int main(void){
int i, max, sum;
for(i = 0; i < 3; i++) scanf("%d", &Ring[i]);
sum = max = Ring[0];
for( i=1; i < 3; i++){
if(max <= Ring[i]) min = Ring[i];
sum += Ring[i];
}
sum -= max;
printf("%d", sum);
} | main.c: In function 'main':
main.c:11:28: error: 'min' undeclared (first use in this function); did you mean 'main'?
11 | if(max <= Ring[i]) min = Ring[i];
| ^~~
| main
main.c:11:28: note: each undeclared identifier is reported only once for e... |
s061043239 | p03671 | C++ | a = list(map(int, input().split()))
a.remove(max(a))
print(sum(a))
| a.cc:1:1: error: 'a' does not name a type
1 | a = list(map(int, input().split()))
| ^
|
s655695622 | p03671 | C++ | int main(void){
int a,b,c,d;
scanf("%d %d %d",&a,&b,&c);
d = a+b;
if(d >=a+c){
d = a+c;
}
if(d>=a+b){
d = b+c;
}
printf("%d",d);
}
| a.cc: In function 'int main()':
a.cc:3:1: error: 'scanf' was not declared in this scope
3 | scanf("%d %d %d",&a,&b,&c);
| ^~~~~
a.cc:11:1: error: 'printf' was not declared in this scope
11 | printf("%d",d);
| ^~~~~~
a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by... |
s352733014 | p03671 | C++ |
#include <iostream>
using namespace std;
int main(void){
int a, b, c;
cin >> a >> b >> c;
int ans;
ans = min(min(a + b, b + c), c + a);
cout << ans << endl;
return 0;
} | a.cc:4:1: error: extended character is not valid in an identifier
4 |
| ^
a.cc:8:1: error: extended character is not valid in an identifier
8 |
| ^
a.cc:11:1: error: extended character is not valid in an identifier
11 |
| ^
a.cc:4:1: error: '\U000000a0' does not name a type
... |
s436079247 | p03671 | C | #include <stdio.h>
#include <math.h>
int main(void){
short a,b,c;
scanf("%d",a);
scanf("%d",b);
scanf("%d",c);
short sum=min(a+b,b+c,c+a);
printf("%d",sum);
return 0;
} | main.c: In function 'main':
main.c:10:19: error: implicit declaration of function 'min'; did you mean 'main'? [-Wimplicit-function-declaration]
10 | short sum=min(a+b,b+c,c+a);
| ^~~
| main
|
s926921895 | p03671 | C | #include<stdio.h>
int Ring[3]
int main(void){
int i, min, sum;
for(i = 0; i < 3; i++) scanf("%d", &Ring[i]);
sum = min = Ring[0];
for( i=1; i < 3; i++){
if(min >= Ring[i]) min = Ring[i];
sum += Ring[i];
}
sum -= min;
printf("%d", sum);
} | main.c:3:12: error: expected ';' before 'int'
3 | int Ring[3]
| ^
| ;
4 |
5 | int main(void){
| ~~~
main.c: In function 'main':
main.c:8:41: error: 'Ring' undeclared (first use in this function)
8 | for(i = 0; i < 3; i++) scanf("%d", &Ring[i]);
... |
s001210565 | p03671 | C++ | #include <iostream>
#include <string>
#include <algorithm>
#include <map>
using namespace std;
int main()
{
int a, b, c;
cin >> a >> b >> c;
int temp = 0;
temp = (a < b) ? ((b < c)? c : b) : ((a < c)? c : a);
if (temp == a) {
cout << b + c << endl;
}
else if (temp == b) {
cout << a + c << endl;
}
else if ... | a.cc: In function 'int main()':
a.cc:22:18: error: expected '}' at end of input
22 | return 0;
| ^
a.cc:8:1: note: to match this '{'
8 | {
| ^
|
s575112263 | p03671 | C++ |
#include <bits/stdc++.h>
using namespace std;
#define FOR(i,f,t) for(int i=(int)f; i<(int)t; i++)
#define FORR(i,f,t) for(int i=(int)f; i>(int)t; i--)
#define ms(obj, val) memset(obj, val, sizeof(obj))
#define pb push_back
#define SYNC ios_base::sync_with_stdio(false)
#define inf 100248012
#define mp make_pair
#defin... | a.cc:67:25: error: expected unqualified-id before 'return'
67 | return Point(inf,inf);
| ^~~~~~
a.cc:68:26: error: expected ';' after struct definition
68 | }
| ^
| ;
a.cc:69... |
s580389945 | p03671 | Java |
import java.util.Arrays;
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
// TODO 自動生成されたメソッド・スタブ
new A().start();
}
void start(){
Scanner in = new Scanner(System.in);
int[] a = new int[3];
for(int i = 0; i < 3; i++){
a[i] = in.nextInt();
}
Array... | Main.java:9: error: cannot find symbol
new A().start();
^
symbol: class A
location: class Main
1 error
|
s442061234 | p03671 | C++ |
#include <bits/stdc++.h>
using namespace std;
#define FOR(i,f,t) for(int i=(int)f; i<(int)t; i++)
#define FORR(i,f,t) for(int i=(int)f; i>(int)t; i--)
#define ms(obj, val) memset(obj, val, sizeof(obj))
#define pb push_back
#define SYNC ios_base::sync_with_stdio(false)
#define inf 100248012
#define mp make_pair
#defin... | a.cc: In function 'int main()':
a.cc:111:25: error: 'b' was not declared in this scope
111 | printf("%d\n",a+b);
| ^
|
s145438908 | p03671 | C++ | #include <cstdio>
using namespace std;
int main(){
int a,b,c;
int ans=0;
scanf("%d %d %d",&a,&b,&c);
ans=a+b;
ans=min(ans,a+c);
ans=min(ans,b+c);
printf("%d\n",ans);
return 0;
}
| a.cc: In function 'int main()':
a.cc:9:21: error: 'min' was not declared in this scope; did you mean 'main'?
9 | ans=min(ans,a+c);
| ^~~
| main
|
s291478726 | p03671 | Java | public class Main {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
int a = scanner.nextInt();
int b = scanner.nextInt();
int c = scanner.nextInt();
if (a > b && a > c) {
System.out.println(b + c);
} else if (b > a && b > c) {
System.out.println(a + c);
} else ... | Main.java:3: error: cannot find symbol
Scanner scanner = new Scanner(System.in);
^
symbol: class Scanner
location: class Main
Main.java:3: error: cannot find symbol
Scanner scanner = new Scanner(System.in);
^
symbol: class Scanner
location: class Main
2 errors
|
s205383119 | p03671 | C++ | #include <bits/stdc++.h>
#define lson l,mid,o<<1
#define rson mid+1,r,o<<1|1
using namespace std;
typedef long long LL;
typedef unsigned long long uLL;
typedef pair<int,int> PII;
const int INF=0x3f3f3f3f;
const LL MAX_N=2e5 + 10;
const LL mod=1e9+7;
const double PI=acos(-1);
int main()
{
int a , b, c;
cin >> ... | a.cc: In function 'int main()':
a.cc:18:5: error: 'ans' was not declared in this scope; did you mean 'abs'?
18 | ans = min(a + b, a + c);
| ^~~
| abs
|
s373594640 | p03671 | C++ | #include <bits/stdc++.h>
#define lson l,mid,o<<1
#define rson mid+1,r,o<<1|1
using namespace std;
typedef long long LL;
typedef unsigned long long uLL;
typedef pair<int,int> PII;
const int INF=0x3f3f3f3f;
const LL MAX_N=2e5 + 10;
const LL mod=1e9+7;
const double PI=acos(-1);
int main()
{
int a , b, c;
cin >> ... | a.cc: In function 'int main()':
a.cc:18:5: error: 'ans' was not declared in this scope; did you mean 'abs'?
18 | ans = min(a + b, a + c);
| ^~~
| abs
|
s427179829 | p03671 | C++ | #include <iostream>
using namespace std;
int main()
{
int a[2];
cin >> a[0] >> a[1] >> a[2];
sort(a,a+2);
cout << a[0]+a[1];
return 0;
} | a.cc: In function 'int main()':
a.cc:8:3: error: 'sort' was not declared in this scope; did you mean 'short'?
8 | sort(a,a+2);
| ^~~~
| short
|
s204880181 | p03671 | C++ | # -*- coding:utf-8 -*-
a = [int(i) for i in input().split()]
a = sorted(a)
print(a[0] + a[1])
| a.cc:1:3: error: invalid preprocessing directive #-
1 | # -*- coding:utf-8 -*-
| ^
a.cc:2:1: error: 'a' does not name a type
2 | a = [int(i) for i in input().split()]
| ^
|
s746696540 | p03671 | C++ | a = list(map(int, input().split()))
sorted(a)
print(a[0] + a[1]) | a.cc:1:1: error: 'a' does not name a type
1 | a = list(map(int, input().split()))
| ^
|
s322051348 | p03671 | C++ | 700 600 780 | a.cc:1:1: error: expected unqualified-id before numeric constant
1 | 700 600 780
| ^~~
|
s557510332 | p03672 | C++ | #include <iostream>
#include<algorithm>
using namespace std;
int main()
{
char S[201];
cin>>S;
int len = strlen(S);
int k = 0;
for(int i = 1; i < len; i++){
if((len-i) % 2 == 0){
int f = 0;
for(int j = 0; j < (len-i)/2; j++)
{
if(S[j] != S[j+(len-i)/2]... | a.cc: In function 'int main()':
a.cc:10:19: error: 'strlen' was not declared in this scope
10 | int len = strlen(S);
| ^~~~~~
a.cc:3:1: note: 'strlen' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
2 | #include<algorithm>
+++ |+#include... |
s488314352 | p03672 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string s;
cin >>s;
s.pop_back();
for(int i=0;i<200;i++){
int n=s.size();
if(n%2){
s.pop_back;
continue;
}
string a=s.substr(0,n/2) , b = s.substr(n/2,n/2);
if(a==b){
... | a.cc: In function 'int main()':
a.cc:11:15: error: invalid use of non-static member function 'void std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::pop_back() [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]'
11 | s.pop_back;
| ~~^~~~~~~~
In file... |
s064070313 | p03672 | C++ | #include <iostream>
#include <string>
using namespace std;
int main()
{
string S;
cin >> S;
int len = S.length();
for (int i = 1; i < len; i++) {
int len1 = (len-i)/2;
int len2 = len-i-len1;
if (len1!=len2) continue;
string s1 = S.substr(0, len1);
string s2 = S.substr(len1, len2);
if (s... | a.cc: In function 'int main()':
a.cc:18:7: error: 'retrun' was not declared in this scope
18 | retrun 0;
| ^~~~~~
|
s282253273 | p03672 | C++ | #include <iostream>
#include <algorithm>
#include <cmath>
#include <vector>
#include <stack>
#include <queue>
#include <map>
#include <string>
using namespace std;
int main()
{
char str[222];
cin >> str;
int n = strlen(str);
for (int i = n - 2; i; i -= 2) {
if (strncmp(str, str + i / 2, i / 2) == 0) {
cout <<... | a.cc: In function 'int main()':
a.cc:15:17: error: 'strlen' was not declared in this scope
15 | int n = strlen(str);
| ^~~~~~
a.cc:8:1: note: 'strlen' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
7 | #include <map>
+++ |+#include <cstri... |
s661659376 | p03672 | C++ | #include <iostream>
#include <algorithm>
#include <cmath>
#include <vector>
#include <stack>
#include <queue>
#include <map>
#include <string>
using namespace std;
int main()
{
int ans,n, m;
char str[222];
cin >> str;
int n = strlen(str);
for (int i = n - 2; i; i -= 2) {
if (strncmp(str, str + i / 2, i / 2) == ... | a.cc: In function 'int main()':
a.cc:16:13: error: redeclaration of 'int n'
16 | int n = strlen(str);
| ^
a.cc:13:17: note: 'int n' previously declared here
13 | int ans,n, m;
| ^
a.cc:16:17: error: 'strlen' was not declared in this scope
16 | int... |
s033558180 | p03672 | C++ | #include <iostream>
#include <algorithm>
#include <cmath>
#include <vector>
#include <stack>
#include <queue>
#include <map>
#include <string>
using namespace std;
int main()
{
int ans,n, m;
string a;
cin >> a;
for (int i = 0;i< a.length;i++) {
string ma = a.substr(0, a.length/2-i);
string usi = a.substr(a.le... | a.cc: In function 'int main()':
a.cc:17:29: error: invalid use of member function 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size_type std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::length() const [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; size_type = long uns... |
s021551057 | p03672 | C++ | #include <bits/stdc++.h>
#include <regex>
using namespace std;
//type
typedef long long int ll;
typedef pair<int, int> P;
//定数
#define INF 1000000000000 //10^12:∞
#define MOD 1000000007 //10^9+7:合同式の法
#define MAXR 100000 //10^5:配列の最大のrange
//略記
#define PB push_back //挿入
#define MP make_pair //pairのコンストラクタ
#de... | a.cc: In function 'int main()':
a.cc:16:11: error: 'second' was not declared in this scope
16 | #define S second //pairの二つ目の要素
| ^~~~~~
a.cc:173:12: note: in expansion of macro 'S'
173 | while (S.length() != 0) {
| ^
|
s977892722 | p03672 | C++ | #include <bits/stdc++.h>
#include <regex>
using namespace std;
//type
typedef long long int ll;
typedef pair<int, int> P;
//定数
#define INF 1000000000000 //10^12:∞
#define MOD 1000000007 //10^9+7:合同式の法
#define MAXR 100000 //10^5:配列の最大のrange
//略記
#define PB push_back //挿入
#define MP make_pair //pairのコンストラクタ
#de... | a.cc: In function 'int main()':
a.cc:173:20: error: cannot convert 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'const char*'
173 | int n = strlen(str);
| ^~~
| |
| std::string {aka std::__cxx11::basic_string<char>}
In file in... |
s286177122 | p03672 | C++ | #include <bits/stdc++.h>
#include <regex>
using namespace std;
//type
typedef long long int ll;
typedef pair<int, int> P;
//定数
#define INF 1000000000000 //10^12:∞
#define MOD 1000000007 //10^9+7:合同式の法
#define MAXR 100000 //10^5:配列の最大のrange
//略記
#define PB push_back //挿入
#define MP make_pair //pairのコンストラクタ
#de... | a.cc:166:8: error: cannot declare '::main' to be a global variable
166 | signed main
| ^~~~
a.cc:169:17: error: expected primary-expression before 's'
169 | VAR(string, s);
| ^
a.cc:24:10: note: in definition of macro 'VAR'
24 | type __VA_ARGS__; \
| ^~~... |
s620883646 | p03672 | C++ | #include <bits/stdc++.h>
using namespace std;
#define inf 1072114514
#define llinf 4154118101919364364
#define mod 1000000007
#define pi 3.1415926535897932384
int round(int a,int b){if((a%b)*2 >= b){return (a/b)+1;}return a/b;}
int gcd(int a,int b){int c;while(b!=0){c=a%b;a=b;b=c;}return a;} //最大公約数
int lcm(int ... | a.cc: In function 'std::string split(std::string, ll, char)':
a.cc:86:9: error: expected ';' before 'if'
86 | b = s
| ^
| ;
87 | if ( x == 'f'){
| ~~
a.cc:89:5: error: 'else' without a previous 'if'
89 | }else if ( x == 'l'){
| ^~~~
a.cc:92:2: warning... |
s719005494 | p03672 | C++ | #include <bits/stdc++.h>
using namespace std;
#define inf 1072114514
#define llinf 4154118101919364364
#define mod 1000000007
#define pi 3.1415926535897932384
int round(int a,int b){if((a%b)*2 >= b){return (a/b)+1;}return a/b;}
int gcd(int a,int b){int c;while(b!=0){c=a%b;a=b;b=c;}return a;} //最大公約数
int lcm(int ... | a.cc: In function 'int main()':
a.cc:101:5: error: expected ',' or ';' before 'string'
101 | string a = split ( s ,x/2,'f');
| ^~~~~~
a.cc:103:10: error: 'a' was not declared in this scope
103 | if ( a == b){
| ^
a.cc: In function 'std::string split(std::string, ll, char)':
a.cc:90:... |
s992177507 | p03672 | C++ | #include <bits/stdc++.h>
using namespace std;
#define inf 1072114514
#define llinf 4154118101919364364
#define mod 1000000007
#define pi 3.1415926535897932384
int round(int a,int b){if((a%b)*2 >= b){return (a/b)+1;}return a/b;}
int gcd(int a,int b){int c;while(b!=0){c=a%b;a=b;b=c;}return a;} //最大公約数
int lcm(int ... | a.cc: In function 'int main()':
a.cc:100:40: error: 'f' was not declared in this scope
100 | string a = split ( s ,s.size()/2-1,f);
| ^
a.cc: In function 'std::string split(std::string, int, char)':
a.cc:90:2: warning: control reaches end of non-void function [-Wreturn... |
s372782053 | p03672 | C++ | #include <bits/stdc++.h>
using namespace std;
#define inf 1072114514
#define llinf 4154118101919364364
#define mod 1000000007
#define pi 3.1415926535897932384
int round(int a,int b){if((a%b)*2 >= b){return (a/b)+1;}return a/b;}
int gcd(int a,int b){int c;while(b!=0){c=a%b;a=b;b=c;}return a;} //最大公約数
int lcm(int ... | a.cc: In function 'int main()':
a.cc:95:10: error: 'n' was not declared in this scope
95 | forn(i,n){
| ^
a.cc:47:41: note: in definition of macro 'forr'
47 | #define forr(i,a,b) ; for(int i=(a); i<(b); i++)
| ^
a.cc:95:3: note: in expansion of macro ... |
s947605006 | p03672 | C++ | #include <bits/stdc++.h>
using namespace std;
#define inf 1072114514
#define llinf 4154118101919364364
#define mod 1000000007
#define pi 3.1415926535897932384
int round(int a,int b){if((a%b)*2 >= b){return (a/b)+1;}return a/b;}
int gcd(int a,int b){int c;while(b!=0){c=a%b;a=b;b=c;}return a;} //最大公約数
int lcm(int ... | a.cc: In function 'std::string split(std::string, int, char)':
a.cc:87:21: error: expected ';' before '{' token
87 | }else ( x == 'l'){
| ^
| ;
a.cc: In function 'int main()':
a.cc:95:10: error: 'n' was not declared in this scope
95 | forn(i,n){
| ... |
s505426496 | p03672 | C++ | #include <bits/stdc++.h>
using namespace std;
#define inf 1072114514
#define llinf 4154118101919364364
#define mod 1000000007
#define pi 3.1415926535897932384
int round(int a,int b){if((a%b)*2 >= b){return (a/b)+1;}return a/b;}
int gcd(int a,int b){int c;while(b!=0){c=a%b;a=b;b=c;}return a;} //最大公約数
int lcm(int ... | a.cc: In function 'std::string split(std::string, int, char)':
a.cc:87:21: error: expected ';' before '{' token
87 | }else ( x == 'l'){
| ^
| ;
a.cc: In function 'int main()':
a.cc:95:10: error: 'n' was not declared in this scope
95 | forn(i,n){
| ... |
s119588076 | p03672 | C++ | #include <bits/stdc++.h>
using namespace std;
#define inf 1072114514
#define llinf 4154118101919364364
#define mod 1000000007
#define pi 3.1415926535897932384
int round(int a,int b){if((a%b)*2 >= b){return (a/b)+1;}return a/b;}
int gcd(int a,int b){int c;while(b!=0){c=a%b;a=b;b=c;}return a;} //最大公約数
int lcm(int ... | a.cc: In function 'std::string split(std::string, int, char)':
a.cc:86:20: error: 'std::string' {aka 'class std::__cxx11::basic_string<char>'} has no member named 'erace'; did you mean 'erase'?
86 | return a = s.erace(n) ;
| ^~~~~
| erase
a.cc:87:21: error: exp... |
s367758614 | p03672 | C++ | #include <bits/stdc++.h>
using namespace std;
#define inf 1072114514
#define llinf 4154118101919364364
#define mod 1000000007
#define pi 3.1415926535897932384
int round(int a,int b){if((a%b)*2 >= b){return (a/b)+1;}return a/b;}
int gcd(int a,int b){int c;while(b!=0){c=a%b;a=b;b=c;}return a;} //最大公約数
int lcm(int ... | a.cc: In function 'std::string split(std::string, int, char)':
a.cc:86:24: error: no matching function for call to 'std::__cxx11::basic_string<char>::back(int&)'
86 | return a = s.back(n) ;
| ~~~~~~^~~
In file included from /usr/include/c++/14/string:54,
from /usr/includ... |
s625159552 | p03672 | C++ | #include <bits/stdc++.h>
using namespace std;
#define inf 1072114514
#define llinf 4154118101919364364
#define mod 1000000007
#define pi 3.1415926535897932384
int round(int a,int b){if((a%b)*2 >= b){return (a/b)+1;}return a/b;}
int gcd(int a,int b){int c;while(b!=0){c=a%b;a=b;b=c;}return a;} //最大公約数
int lcm(int ... | a.cc: In function 'std::string split(std::string, int, char)':
a.cc:89:24: error: no matching function for call to 'std::__cxx11::basic_string<char>::back(int&)'
89 | return a = s.back(n) ;
| ~~~~~~^~~
In file included from /usr/include/c++/14/string:54,
from /usr/includ... |
s276073973 | p03672 | C++ | #include <bits/stdc++.h>
using namespace std;
#define inf 1072114514
#define llinf 4154118101919364364
#define mod 1000000007
#define pi 3.1415926535897932384
int round(int a,int b){if((a%b)*2 >= b){return (a/b)+1;}return a/b;}
int gcd(int a,int b){int c;while(b!=0){c=a%b;a=b;b=c;}return a;} //最大公約数
int lcm(int ... | a.cc: In function 'std::string split(std::string, ll, char)':
a.cc:89:24: error: no matching function for call to 'std::__cxx11::basic_string<char>::back(ll&)'
89 | return a = s.back(n) ;
| ~~~~~~^~~
In file included from /usr/include/c++/14/string:54,
from /usr/include/... |
s464016970 | p03672 | C++ | #include <bits/stdc++.h>
using namespace std;
#define inf 1072114514
#define llinf 4154118101919364364
#define mod 1000000007
#define pi 3.1415926535897932384
int round(int a,int b){if((a%b)*2 >= b){return (a/b)+1;}return a/b;}
int gcd(int a,int b){int c;while(b!=0){c=a%b;a=b;b=c;}return a;} //最大公約数
int lcm(int ... | a.cc: In function 'std::string split(std::string, ll, char)':
a.cc:88:4: error: expected initializer before 'if'
88 | if ( x == 'f'){
| ^~
a.cc:90:5: error: 'else' without a previous 'if'
90 | }else ( x == 'l'){
| ^~~~
a.cc:90:21: error: expected ';' before '{' token
90 | }else ( x ... |
s243075277 | p03672 | C++ | #include <bits/stdc++.h>
using namespace std;
#define inf 1072114514
#define llinf 4154118101919364364
#define mod 1000000007
#define pi 3.1415926535897932384
int round(int a,int b){if((a%b)*2 >= b){return (a/b)+1;}return a/b;}
int gcd(int a,int b){int c;while(b!=0){c=a%b;a=b;b=c;}return a;} //最大公約数
int lcm(int ... | a.cc:82:24: error: expected ')' before ';' token
82 | string split (string s ; ll n ; char x){
| ~ ^~
| )
a.cc:82:40: error: expected initializer before ')' token
82 | string split (string s ; ll n ; char x){
| ... |
s011988672 | p03672 | Java | import java.util.*;
class Main {
public static int main(String[] args){
Scanner sc = new Scanner(System.in);
String s = sc.nextLine();
sc.close();
Map<Character,Integer> chars = new LinkedHashMap<>();
for (int i=0; i<s.length(); i++){
if (chars.containsKey(s.char... | Main.java:31: error: missing return statement
}
^
1 error
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.