submission_id stringlengths 10 10 | problem_id stringlengths 6 6 | language stringclasses 3
values | code stringlengths 1 522k | compiler_output stringlengths 43 10.2k |
|---|---|---|---|---|
s320636340 | p01103 | C++ | /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
| |
s708120734 | p01103 | C++ | #include<iostream>
int e[100][100]={0};
int min=10;
int Pond(int a,int b,int c,int d){
int x=0;
for(int i=a+1;i<c+a-1;i++){
for(int j=b+1;j<d+b-1;j++){
int f=e[j][i];
x+=(min-f);
}
}
return f;
}
int area(int a,int b,int c,int d){
int max=0;
min=10;
for(int i=b;i<d+b;i+;){
int x1... | a.cc: In function 'int Pond(int, int, int, int)':
a.cc:14:10: error: 'f' was not declared in this scope
14 | return f;
| ^
a.cc: In function 'int area(int, int, int, int)':
a.cc:20:23: error: expected primary-expression before ';' token
20 | for(int i=b;i<d+b;i+;){
| ... |
s708053139 | p01103 | C++ | import java.util.*;
class C {
public static void main(String arg[]){
while(true){
Scanner cs=new Scanner(System.in);
int ans=0;
int n=cs.nextInt();
int m=cs.nextInt();
if (n==0)break;
int a[][]=new int[n+1][m+1];
int s[][]=new int[n+1][m+1];
for (int i=1;i<=n;i++)
for(int j=1;j<=m;j++){
... | 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:15: error: expected ':' before 'static'
3 | public static void main(String arg[]){
| ^~~~~~~
| :
a.cc:3:3... |
s599876046 | p01104 | Java | import java.util.*;
public class D {
static int[] mrk=new int[5000000];
static int[][] stk=new int[4000000][2];
static int[] a=new int[1000];
static int l[]=new int[2];
static int fl=0;
static int bdf(int x,int l,int n){
int y=0;
for(int i=0;i<l;i++)
for (int j=1;j<=n;j++)
if (mrk[stk[i][fl%2]^a[j]]==0... | Main.java:2: error: class D is public, should be declared in a file named D.java
public class D {
^
1 error
|
s116516931 | p01104 | C | /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
| |
s260801928 | p01104 | C | #include <stdio.h>
int main(void){
return 0
}
| main.c: In function 'main':
main.c:4:9: error: expected ';' before '}' token
4 | return 0
| ^
| ;
5 | }
| ~
|
s382995492 | p01104 | C | #include<iostream>
int source[500][500] = {};
void copy_array(int a[],int b[],int m){
for(int i=0;i<m;i++){
b[i] = a[i];
}
}
bool check(int n,int m,int sum[]){
for(int j=0;j<m;j++){
if(sum[j] %2 == 1) return false;
}
//std::cout << " ";
/*for(int j=0;j<m;j++){
std... | main.c:1:9: fatal error: iostream: No such file or directory
1 | #include<iostream>
| ^~~~~~~~~~
compilation terminated.
|
s261663524 | p01104 | C | #include <stdio.h>
#include <string.h>
#include <limits.h>
int b[501][501];
int B[501];
int sum[501];
int dp[30][1<<22];
int main(void){
int n, m, ans, count;
bool flag;
while(1){
scanf("%d %d", &n, &m);
if(n == 0 && m== 0) break;
if(n<22){
for(int i=0; i<n; i++){
for(int j=0; j<m; j++){
scanf... | main.c: In function 'main':
main.c:13:9: error: unknown type name 'bool'
13 | bool flag;
| ^~~~
main.c:4:1: note: 'bool' is defined in header '<stdbool.h>'; this is probably fixable by adding '#include <stdbool.h>'
3 | #include <limits.h>
+++ |+#include <stdbool.h>
4 |
main.c:38:40: ... |
s088509605 | p01104 | C | #include <stdio.h>
#include <string.h>
int b[501][501];
int B[501];
int sum[501];
int dp[30][1<<22];
int main(void){
int n, m, ans, count;
bool flag;
while(1){
scanf("%d %d", &n, &m);
if(n == 0 && m== 0) break;
if(n<22){
for(int i=0; i<n; i++){
for(int j=0; j<m; j++){
scanf(" %c", &b[i][j]);
... | main.c: In function 'main':
main.c:12:9: error: unknown type name 'bool'
12 | bool flag;
| ^~~~
main.c:3:1: note: 'bool' is defined in header '<stdbool.h>'; this is probably fixable by adding '#include <stdbool.h>'
2 | #include <string.h>
+++ |+#include <stdbool.h>
3 |
main.c:37:40: ... |
s440516641 | p01104 | C++ | a
| a.cc:1:1: error: 'a' does not name a type
1 | a
| ^
|
s627453499 | p01104 | C++ | /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
| |
s210803417 | p01104 | C++ | #include <iostream>
#include <algorithm>
using namespace std;
int dp[2][1 << 22];
int main(void){
while(1){
int n, m; cin >> n >> m;
if(!n && !m) break;
int b[505][505]={0};
for(int i=1; i<=n; i++){
for(int j=0; j<m; j++){
char c; cin >> c;
b[i][j] = c - '0';
}
}
int ans = 0;
if(n <= 2... | a.cc: In function 'int main()':
a.cc:50:70: error: 'INT_MIN' was not declared in this scope
50 | for(int i=0; i<S; i++) dp[0][i] = dp[1][i] = INT_MIN;
| ^~~~~~~
a.cc:3:1: note: 'INT_MIN' is defined in header '<climits>... |
s903560386 | p01104 | C++ | #include <iostream>
#include <algorithm>
#include <limits>
using namespace std;
int dp[2][1 << 22];
int main(void){
while(1){
int n, m; cin >> n >> m;
if(!n && !m) break;
int b[505][505]={0};
for(int i=1; i<=n; i++){
for(int j=0; j<m; j++){
char c; cin >> c;
b[i][j] = c - '0';
}
}
int an... | a.cc: In function 'int main()':
a.cc:51:70: error: 'INT_MIN' was not declared in this scope
51 | for(int i=0; i<S; i++) dp[0][i] = dp[1][i] = INT_MIN;
| ^~~~~~~
a.cc:4:1: note: 'INT_MIN' is defined in header '<climits>... |
s296275150 | p01104 | C++ | #include <iostream>
#include <algorithm>
#include <climits>
using namespace std;
int dp[2][1 << 22];
int main(v1){
int n, m; cin >> n >> m;
if(!n && !m) break;
int b[505][505]={0};
for(int i=1; i<=n; i++){
for(int j=0; j<m; j++){
char c; cin >> c;
b[i][j] = c - '0';
}
}
int ans = 0;
if(... | a.cc:9:5: error: cannot declare '::main' to be a global variable
9 | int main(v1){
| ^~~~
a.cc:9:10: error: 'v1' was not declared in this scope; did you mean '__pstl::execution::v1'?
9 | int main(v1){
| ^~
| __pstl::execution::v1
In file included from /usr/include/c++/14/... |
s591171636 | p01104 | C++ | #pragma GCC optimize("O3")
#pragma GCC target("avx")
#include <iostream>
#include <string>
#include <vector>
#include <algorithm>
using namespace std;
typedef unsigned long long parallel_type;
const int bit_width=8*sizeof(parallel_type);
int main(){
int H,W;
for(;~scanf("%d%d",&H,&W)&&H&&W;){
vector<string>m(H);
... | In file included from /usr/include/c++/14/string:43,
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... |
s489969029 | p01104 | C++ | #include<iostream>
#include<string>
#include<algorithm>
#include<vector>
using namespace std;
int n,m;
string s[1000];
int dp[2][1<<25];
//t=100?????????0????????¨,
//t=101?????????0??¨2????????¨
int N=-1;
vector<bool>tmp(0);
int dfs(int h,string t){//h????????±???,t????????¨????????¬??????
if(h==n){
int cnt=0;
... | a.cc: In lambda function:
a.cc:17:40: error: expected '{' before '=' token
17 | for(int i=0;i<n;i++)[i]=0;
| ^
a.cc: In function 'int dfs(int, std::string)':
a.cc:17:41: error: no match for 'operator=' (operand types are 'dfs(int, std::string)::<lambda()>'... |
s499718493 | p01104 | C++ | #include<iostream>
#include<string>
#include<algorithm>
#include<vector>
using namespace std;
int n,m;
string s[1000];
int dp[2][1<<23];
//t=100?????????0????????¨,
//t=101?????????0??¨2????????¨
int N=-1;
bool tmp[1000];
int dfs(int h,string t){//h????????±???,t????????¨????????¬??????
if(h==n){
//cout<<h<<endl;
... | a.cc: In function 'int twoToTen(std::string)':
a.cc:42:14: error: expected initializer before '.' token
42 | int x.size()=xs;
| ^
a.cc:43:19: error: 'xs' was not declared in this scope; did you mean 'x'?
43 | for(int i=xs;i>=0;i--){
| ^~
| ... |
s132982369 | p01104 | C++ | #include<iostream>
#include<string>
#include<algorithm>
#include<vector>
using namespace std;
int n,m;
string s[1000];
int dp[2][1<<23];
//t=100?????????0????????¨,
//t=101?????????0??¨2????????¨
int N=-1;
bool tmp[1000];
int dfs(int h,string t){//h????????±???,t????????¨????????¬??????
if(h==n){
int cnt=0;
//fo... | a.cc: In function 'int dfs(int, std::string)':
a.cc:19:17: error: 'memset' was not declared in this scope
19 | memset(tmp,0,sizeof tmp);
| ^~~~~~
a.cc:5:1: note: 'memset' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
4 | #include<v... |
s729964395 | p01104 | C++ | #include<iostream>
#include<string>
#include<algorithm>
#include<vector>
#include<cstdio>
using namespace std;
int n,m;
string s[1000];
int dp[2][1<<23];
//t=100?????????0????????¨,
//t=101?????????0??¨2????????¨
int N=-1;
bool tmp[1000];
int dfs(int h,string t){//h????????±???,t????????¨????????¬??????
if(h==n){
... | a.cc: In function 'int dfs(int, std::string)':
a.cc:20:17: error: 'memset' was not declared in this scope
20 | memset(tmp,0,sizeof tmp);
| ^~~~~~
a.cc:6:1: note: 'memset' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
5 | #include<c... |
s006267785 | p01104 | C++ | #include<iostream>
#include<string>
#include<algorithm>
#include<vector>
#include<cstdio>
#include<stdio.h>
using namespace std;
int n,m;
string s[1000];
int dp[2][1<<23];
//t=100?????????0????????¨,
//t=101?????????0??¨2????????¨
int N=-1;
bool tmp[1000];
bool s2[501][501];
int dfs(int h,string t){//h????????±???,t??... | a.cc: In function 'int dfs(int, std::string)':
a.cc:22:17: error: 'memset' was not declared in this scope
22 | memset(tmp,0,sizeof tmp);
| ^~~~~~
a.cc:6:1: note: 'memset' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
5 | #include<c... |
s174440182 | p01104 | C++ | #include<iostream>
#include<string>
#include<algorithm>
#include<vector>
#include<cstdio>
#include<bitset>
#include<stdio.h>
using namespace std;
int n,m;
string s[1000];
int dp[2][1<<23];
//t=100?????????0????????¨,
//t=101?????????0??¨2????????¨
int N=-1;
bool tmp[1000];
bool s2[501][501];
int dfs(int h,string t){//... | a.cc: In function 'int dfs(int, std::string)':
a.cc:23:17: error: 'memset' was not declared in this scope
23 | memset(tmp,0,sizeof tmp);
| ^~~~~~
a.cc:7:1: note: 'memset' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
6 | #include<b... |
s710679631 | p01104 | C++ | #include<iostream>
#include<string>
#include<algorithm>
#include<vector>
#include<cstdio>
#include<bitset>
#include<cassert>
#include<climits>
#include<stdio.h>
using namespace std;
int n,m;
string s[1000];
int dp[2][1<<23];
//t=100?????????0????????¨,
//t=101?????????0??¨2????????¨
int N=-1;
bool tmp[1000];
bool s2[50... | a.cc: In function 'int dfs(int, std::string)':
a.cc:25:17: error: 'memset' was not declared in this scope
25 | memset(tmp,0,sizeof tmp);
| ^~~~~~
a.cc:9:1: note: 'memset' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
8 | #include<c... |
s341817029 | p01104 | C++ | #include<iostream>
#include<cstdio>
#include<vector>
#include<algorithm>
#include<bitset>
#include<deque>
#include<cstring>
#include<cassert>
#include<climits>
using namespace std;
int n,m;
string s[501];
int dp[2][1<<23];
//t=100?????????0????????¨,
//t=101?????????0??¨2????????¨
int N=-1;
bool tmp[501];
bool s2[501]... | a.cc: In function 'int dfs(int, std::string)':
a.cc:33:28: error: invalid operands of types 'bool [501]' and 'bool*' to binary 'operator^'
33 | tmp^=s2[i];
| ~~~^~~~~~~
a.cc:33:28: note: in evaluation of 'operator^=(bool [501], bool*)'
|
s011844940 | p01104 | C++ | #include<bits/stdc++.h>
using namespace std;
int n,m,b[510][510];
int pc[1<<24],dp[2][1<<24],bits[510];
void compute() {
int maxi = 0;
if( n <= m ) {
for(int i=0;i<(1<<n);i++) {
if( maxi >= pc[i] ) continue;
bool ok = true;
for(int x=0;x<m;x++) {
int cnt = 0;
for(int y=0;y<n;y++)... | a.cc: In function 'void compute()':
a.cc:28:14: error: 'a' was not declared in this scope
28 | if(a[i][j]){
| ^
|
s202246655 | p01104 | C++ | #include<bits/stdc++.h>
typedef long long int;
typedef unsigned long long ull;
using namespace std;
#define pb push_back
int dy[]={0, 0, 1, -1, 1, 1, -1, -1};
int dx[]={1, -1, 0, 0, 1, -1, -1, 1};
#define FOR(i,a,b) for (int i=(a);i<(b);i++)
#define RFOR(i,a,b) for (int i=(b)-1;i>=(a);i--)
#define REP(i,n) for (int i=... | a.cc:2:19: error: declaration does not declare anything [-fpermissive]
2 | typedef long long int;
| ^~~
a.cc:17:1: error: 'll' does not name a type; did you mean 'ull'?
17 | ll n,m;
| ^~
| ull
a.cc:21:1: error: 'll' does not name a type; did you mean 'ull'?
21 | ll dp[251][... |
s912845682 | p01104 | C++ | #include<bits/stdc++.h>
#define INF 1e9
#define llINF 1e18
#define MOD 1e9+7
#define pb push_back
#define mp make_pair
#define F first
#define S second
#define ll long long
using namespace std;
int ans;
ll bits = (ll)((1<<31)-1);
void dfs(int depth,string str[],int m,int bit,int cnt){
if(depth==m){
int num[555/... | a.cc:13:23: warning: integer overflow in expression of type 'int' results in '2147483647' [-Woverflow]
13 | ll bits = (ll)((1<<31)-1);
| ~~~~~~~^~
a.cc: In function 'void dfs3(int, std::string*, int, int, int, int)':
a.cc:79:7: error: too few arguments to function 'void dfs3(int, std::string*, i... |
s098744935 | p01104 | C++ | #include<stdio.h>
int mod(int max,int m);
int del_R(int num,int I,int n,int m,int max,int R[]);
int main()
{
int n,m,R[500],MAX,max_R,c;
while(1)
{
scanf("%d",&n);
scanf("%d",&m);
if(n==0&&m==0) break;
MAX=0;
max_R=0;
for(int i=0;i<n;i++)
{
scanf("%d",&R[i]);
MAX+=R[i];
}
if(mod(MAX,m)) ma... | a.cc: In function 'int del_R(int, int, int, int, int, int*)':
a.cc:52:57: error: expected primary-expression before ')' token
52 | else if(del_R(num-1,i+1,n,m,max-R[i],R);) return num;
| ^
|
s429014967 | p01104 | C++ | #include<stdio.h>
int del_R(int num,int I,int n,int m,int max,int R[]);
int mod(int max,int m);
int main()
{
int n,m,R[500],MAX,max_R,c;
while(1)
{
scanf("%d",&n);
scanf("%d",&m);
if(n==0&&m==0) break;
MAX=0;
max_R=0;
for(int i=0;i<n;i++)
{
scanf("%d",&R[i]);
MAX+=R[i];
}
if(mod(MAX,m)) ... | a.cc: In function 'int del_R(int, int, int, int, int, int*)':
a.cc:54:57: error: expected primary-expression before ')' token
54 | else if(del_R(num-1,i+1,n,m,max-R[i],R);) return num;
| ^
|
s779056341 | p01106 | C++ | #include <iostream>
#include <vector>
#include <cstdio>
using namespace std;
#define rep(i,a,n) for(int i=a; i<n; i++)
#define repq(i,a,n) for(int i=a; i<=n; i++)
typedef long long int ll;
typedef pair<int, int> pii;
int main() {
long long int N, I, J;
while(cin >> N >> I >> J, N){
vector<ll> height;
--I;
... | a.cc: In function 'int main()':
a.cc:24:5: error: 'reverse' was not declared in this scope
24 | reverse(height.begin(),height.end());
| ^~~~~~~
|
s957465153 | p01106 | C++ | 59 471605241352156968 431565444592236940
| a.cc:1:1: error: expected unqualified-id before numeric constant
1 | 59 471605241352156968 431565444592236940
| ^~
|
s740877381 | p01107 | C++ | #include<bits/stdc++.h>
using namespace std;
int INF = 1e8;
struct edge{ int to,cap,rev; };
vector<edge> G[5000];
bool used[5000];
void init_edge(){
for(int i=0;i<5000;i++){
G[i].clear();
}
}
void add_edge(int from,int to,int cap){
G[from].push_back((edge){to,cap,(int)G[to].size()});
G[to].push_back((edge... | a.cc:115:5: error: redefinition of 'int INF'
115 | int INF = 1e8;
| ^~~
a.cc:3:5: note: 'int INF' previously defined here
3 | int INF = 1e8;
| ^~~
a.cc:116:8: error: redefinition of 'struct edge'
116 | struct edge{ int to,cap,rev; };
| ^~~~
a.cc:4:8: note: previous definition of... |
s915504187 | p01108 | C++ | #include <stdio.h>
int main()
return
| a.cc: In function 'int main()':
a.cc:5:7: error: expected identifier at end of input
5 | return
| ^
a.cc:5:1: error: named return values are no longer supported
5 | return
| ^~~~~~
a.cc:5:7: error: expected '{' at end of input
5 | return
| ^
|
s312826058 | p01109 | Java | import java.util.*;
public class main{
public static void main(String [] args)throws Exception{
int x = 0;
while(x < 100){
x++;
System.out.println('rank up!!');
}
}
}
| Main.java:8: error: unclosed character literal
System.out.println('rank up!!');
^
Main.java:8: error: ';' expected
System.out.println('rank up!!');
^
Main.java:8: error: unclosed character l... |
s822628541 | p01109 | Java | import java.util.*;
public class main{
public static void main(String [] args)throws Exception{
int n = 0;
while(n < 10){
x++;
System.out.println('kedarui');
}
}
}
| Main.java:8: error: unclosed character literal
System.out.println('kedarui');
^
Main.java:8: error: unclosed character literal
System.out.println('kedarui');
^
Main.java:8: error: not a stat... |
s848089208 | p01109 | C | #include<stdio.h>
#include<algorithm>
using namespace std;
int main()
{
int n, a[10000+5];
while(1)
{
scanf("%d",&n);
if(n==0) return 0;
int i, j, sum=0;
for(i=1;i<=n;i++)
{
scanf("%d",&a[i]);
sum+=a[i];
}
float t=float(sum)/n;... | main.c:2:9: fatal error: algorithm: No such file or directory
2 | #include<algorithm>
| ^~~~~~~~~~~
compilation terminated.
|
s318611319 | p01109 | C | #include<iostream>
#include<cstdio>
#include<cstdlib>
#include<cstring>
#include<cmath>
#include<string>
#include<algorithm>
#include<vector>
#include<queue>
#include<set>
#include<map>
#include<stack>
#define MOD 10000000
using namespace std;
typedef long long LL;
long long quickpow(long long n, long long base) {
... | main.c:1:9: fatal error: iostream: No such file or directory
1 | #include<iostream>
| ^~~~~~~~~~
compilation terminated.
|
s668189532 | p01109 | C | #include <bits/stdc++.h>
#define test(a) printf("(%3d)", a)
typedef long long ll;
typedef unsigned long long ull;
using namespace std;
const int MAXN = 5e4 + 10;
int n, a[MAXN];
int main (void) {
while (~scanf("%d", &n) & n) {
ll sum = 0, ans = 0;
for (int i = 1; i <= n; i++) {
scanf(... | main.c:1:10: fatal error: bits/stdc++.h: No such file or directory
1 | #include <bits/stdc++.h>
| ^~~~~~~~~~~~~~~
compilation terminated.
|
s041927043 | p01109 | C | //#include<bits/stdc++.h>
#include<iostream>
#include<stdio.h>
#include<conio.h>
#define pi 3.141592653897932384626
#define abs(x) ((x)>0?(x):(-(x)))
#define eps (double)(0.0000001)
#define fs first
#define se second
//freopen("in.txt","r",stdin);freopen("out.txt","w",stdout);
using namespace std;
long a[1000];
int mai... | main.c:2:9: fatal error: iostream: No such file or directory
2 | #include<iostream>
| ^~~~~~~~~~
compilation terminated.
|
s872827404 | p01109 | C++ | #include<bits/stdc++.h>
#define rep(i,a,b) for(int i=a;i<b;i++)
#define rrep(i,a,b) for(int i=a;i>=b;i--)
#define fore(i,a) for(auto &i:a)
#define all(x) (x).begin(),(x).end()
using namespace std; void _main(); int main() { cin.tie(0); ios::sync_with_stdio(false); _main(); }
typedef long long ll; const int inf = INT_MA... | a.cc: In function 'void _main()':
a.cc:24:10: error: expected '}' at end of input
24 | }
| ^
a.cc:13:14: note: to match this '{'
13 | void _main() {
| ^
|
s294398747 | p01109 | C++ |
//---------------------------------------------------------------------------------------------------
void _main() {
while (cin >> N) {
if (N == 0) return;
rep(i, 0, N) cin >> A[i];
int sm = 0;
rep(i, 0, N) sm += A[i];
int ans = 0;
rep(i, 0, N) if (A[i] * N <= sm) ans++;
printf("%d\n", ans);
}
}
| a.cc: In function 'void _main()':
a.cc:4:16: error: 'cin' was not declared in this scope
4 | while (cin >> N) {
| ^~~
a.cc:4:23: error: 'N' was not declared in this scope
4 | while (cin >> N) {
| ^
a.cc:6:21: error: 'i' was not declared in this sc... |
s180305853 | p01109 | C++ | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define P pair<ll,ll>
#define FOR(I,A,B) for(ll I = (A); I < (B); ++I)
#define FORR(I,A,B) for(ll I = ((B)-1); I >= (A); --I)
#define TO(x,t,f) ((x)?(t):(f))
#define SORT(x) (sort(x.begin(),x.end())) // 0 2 2 3 4 5 8 9
#define REV(x) (reverse(x.begin()... | a.cc: In function 'int main()':
a.cc:27:28: error: no match for 'operator>>' (operand types are 'std::istream' {aka 'std::basic_istream<char>'} and 'std::vector<long long int>')
27 | cin>>A[i];
| ~~~^~~~~~
| | |
| ... |
s672553920 | p01110 | C | #include <stdio.h>
#define MAX 500 //配列の大きさは500*500で十分です。
using namespace std;
int main(void){
while(1){
//問題ではn, m, t, pとして与えられますが、
//nはw、mはhとして変数を用意します。
int w, h, t, p;
scanf(" %d %d %d %d", &w, &h, &t, &p);
if(!w && !h && !t && !p) break;
//2次元配列は行列のように、i行j列(kami[i][j])として考えます。
//そのため、座標(x, y)は k... | main.c:5:1: error: unknown type name 'using'
5 | using namespace std;
| ^~~~~
main.c:5:17: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'std'
5 | using namespace std;
| ^~~
|
s797429627 | p01110 | C++ | //#include <bits/stdc++.h>
#include <cstdio>
#include <algorithm>
#include <cstring>
using namespace std;
int sum[600][600] = {};
int solve(){
int h, w, n, m;
memset(sum, 0, sizeof(sum));
scanf("%d%d%d%d", &w, &h, &n, &m);
if(!h)return false;
for(int i=0;i<h;i++)
for(int j=0;j<w;j++)
sum[... | a.cc: In function 'int solve()':
a.cc:63:3: error: 'assert' was not declared in this scope
63 | assert(l != -1);
| ^~~~~~
a.cc:5:1: note: 'assert' is defined in header '<cassert>'; this is probably fixable by adding '#include <cassert>'
4 | #include <cstring>
+++ |+#include <cassert>
5 |
|
s278099104 | p01110 | C++ | #include <iostream>
//#include <bits/stdc++.h>
#include <vector>
#include <algorithm>
#include <Cstdio>
using namespace std;
typedef long long ll;
int n,m,t,p;
int type,c;
int main()
{
while(~scanf("%d%d%d%d",&m,&n,&t,&p)&&(m+n+t+p))
{
vector<vector<ll> >q(50);
for(int i=0; i<n; i++)
{
... | a.cc:5:10: fatal error: Cstdio: No such file or directory
5 | #include <Cstdio>
| ^~~~~~~~
compilation terminated.
|
s934301251 | p01111 | C | #include<std/c++.h>
using namespace std;
#define ll long long
ll n;
int main()
{
while (1) {
scanf("%d", &n);
if (n == 0)break;
ll st = min(n, (ll)1e5);
for (ll i = st; i >= 1; i--)
{
if ((n * 2 - (1 + i)*i>=0)&&(n * 2 - (1 + i)*i + 2 * i) % (2 * i) == 0)
{
printf("%lld %lld\n", ((n*2 - (1 + i)*i) ... | main.c:1:9: fatal error: std/c++.h: No such file or directory
1 | #include<std/c++.h>
| ^~~~~~~~~~~
compilation terminated.
|
s158516440 | p01111 | C++ | v#include <bits/stdc++.h>
using namespace std;
using ll = long long;
ll b;
vector<ll> A;
pair<ll, ll> ans;
ll f(ll n) { return n*(n+1)/2; }
void solve() {
for (ll i = 0; i < sqrt(1e10); i++) { // 右側を決める
ll key = f(i) - b;
auto p = lower_bound(A.begin(), A.end(), key);
if (p == A.end()) continue... | a.cc:1:2: error: stray '#' in program
1 | v#include <bits/stdc++.h>
| ^
a.cc:1:1: error: 'v' does not name a type
1 | v#include <bits/stdc++.h>
| ^
a.cc:7:1: error: 'vector' does not name a type
7 | vector<ll> A;
| ^~~~~~
a.cc:8:1: error: 'pair' does not name a type
8 | pair<ll, ll> a... |
s128049221 | p01112 | C | #include <iostream>
using namespace std;
int n, m, ans, table[9][9];
int chack(){
for(int i=0; i<n; i++){
int tmp=0;
for(int j=0; j<n; j++) tmp += table[i][j];
if(tmp) return 0;
}
return 1;
}
void dfs(int x, int y){
if(x < n-1) x++;
else if(y < n-1){
x=0;
y++;
} else{
ans += chack();
return;
}... | main.c:1:10: fatal error: iostream: No such file or directory
1 | #include <iostream>
| ^~~~~~~~~~
compilation terminated.
|
s747024617 | p01112 | C++ | #include<bits/stdc++.h>
#define REP(i,s,n) for(int i=s;i<n;++i)
#define rep(i,n) REP(i,0,n)
using namespace std;
int n,m,mp[9][9],win[9],border,cnt;
int dfs(int x,int y) {
if( y >= n ) return ++cnt;
int nx = x + 1, ny = y;
if( nx >= ny ) nx = 0, ++ny;
if( mp[x][y] != -1 ) return dfs(nx,ny);
int c[2]... | a.cc: In function 'int main()':
a.cc:41:6: error: expected '}' at end of input
41 | }
| ^
a.cc:30:24: note: to match this '{'
30 | while( cin >> n, n ) {
| ^
a.cc:41:6: error: expected '}' at end of input
41 | }
| ^
a.cc:29:12: note: to match this '{... |
s045919633 | p01112 | C++ | #include<bits/stdc++.h>
#define REP(i,s,n) for(int i=s;i<n;++i)
#define rep(i,n) REP(i,0,n)
using namespace std;
int n,m,mp[9][9],win[9],border,cnt;
int dfs(int x,int y) {
if( y >= n ) return ++cnt;
int nx = x + 1, ny = y;
if( nx >= ny ) nx = 0, ++ny;
if( mp[x][y] != -1 ) return dfs(nx,ny);
int c[2]... | a.cc: In function 'int main()':
a.cc:41:6: error: expected '}' at end of input
41 | }
| ^
a.cc:30:24: note: to match this '{'
30 | while( cin >> n, n ) {
| ^
a.cc:41:6: error: expected '}' at end of input
41 | }
| ^
a.cc:29:12: note: to match this '{... |
s132095960 | p01112 | C++ | #include <bits/stdc++.h>
using namespace std;
#ifdef DEBUG_MODE
#define DBG(n) n;
#else
#define DBG(n) ;
#endif
#define REP(i,n) for(ll (i) = (0);(i) < (n);++i)
#define PB push_back
#define MP make_pair
#define FI first
#define SE second
#define SHOW1d(v,n) {for(int W = 0;W < (n);W++)cerr << v[W] << ' ';cerr << end... | a.cc: In function 'void dfs(int, int)':
a.cc:42:9: error: 'else' without a previous 'if'
42 | else{
| ^~~~
|
s647153632 | p01112 | C++ | #include <bits/stdc++.h>
using namespace std;
int memo[10][10] = {0};
int wl[10][3] = {0};
int n, m, x, y, ans = 0, hal;
void solve(int now, int riv);
void check();
int main() {
int i, j;
while(1) {
cin >> n;
if(n == 0) break;
for(i = 1; i <= n; i++)
for(j = 0; j < 2; j++) wl[i][j] = 0;
for(... | a.cc: In function 'void check()':
a.cc:79:25: error: expected primary-expression before '/' token
79 | cout << endl << endl;*/
| ^
a.cc:80:3: error: expected primary-expression before 'for'
80 | for(i = 1; i <= n; ++i)
| ^~~
a.cc:80:25: error: expected ';' before ')' toke... |
s505187341 | p01112 | C++ | #include<bits/stdc++.h>
#define rep(i,a,b) for(int i=a;i<b;i++)
#define rrep(i,a,b) for(int i=a;i>=b;i--)
#define fore(i,a) for(auto &i:a)
#define all(x) (x).begin(),(x).end()
using namespace std; void _main(); int main() { cin.tie(0); ios::sync_with_stdio(false); _main(); }
typedef long long ll; const int inf = INT_MA... | a.cc: In function 'void dfs(int)':
a.cc:25:13: error: 'check' was not declared in this scope
25 | if (check(y)) dfs(cu + 1);
| ^~~~~
a.cc:30:8: error: 'check' was not declared in this scope
30 | if(check(y)) dfs(cu + 1);
| ^~~~~
a.cc:33:9: error: 'check' was not declared... |
s111610685 | p01114 | C++ | #include<bits/stdc++.h>
#define ll long long
#define fornum(A,B,C) for(A=B;A<C;A++)
#define mp make_pair
#define pii pair<int,int>
#define pll pair<ll,ll>
using namespace std;
/////////////////////////////////////////////////////
#define r3 0.57735026918962576450914878050196
//#define s3 1.73205080756887729352744634... | a.cc: In function 'int main()':
a.cc:37:21: error: no match for 'operator+' (operand types are 'std::vector<std::pair<double, long long int> >' and 'long long int')
37 | sort(av, av + n);
| ~~ ^ ~
| | |
| | long long int
| ... |
s053594369 | p01125 | Java | import java.io.InputStream;
import java.io.IOException;
import java.io.PrintWriter;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Comparator;
import java.util.InputMismatchException;
import java.util.NoSuchElementException;
import java.math.BigDecimal;
import java.math.BigInteger;
public cl... | Main.java:20: error: cannot find symbol
HashMap<String,Pair> dir=new HashMap<>();
^
symbol: class HashMap
location: class Main
Main.java:20: error: cannot find symbol
HashMap<String,Pair> dir=new HashMap<>();
^
symbol: class HashMap
location: class Main
Main.java:30: error: ... |
s039068076 | p01125 | Java | import java.io.InputStream;
import java.io.IOException;
import java.io.PrintWriter;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Comparator;
import java.util.HashMap;
import java.util.InputMismatchException;
import java.util.NoSuchElementException;
import java.math.BigDecimal;
import java.math.... | Main.java:31: error: cannot find symbol
visted[10][10]=true;
^
symbol: variable visted
location: class Main
1 error
|
s346844526 | p01125 | Java |
public class Main {
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
int n;
while ((n = in.nextInt()) != 0) {
int[][] map = new int[21][21];
for (int i = 0; i < n; i++) {
map[in.nextInt()][in.nextInt()] = 1;
}
int m = in.nextInt();
int x = 10;
int y =... | Main.java:4: error: cannot find symbol
Scanner in = new Scanner(System.in);
^
symbol: class Scanner
location: class Main
Main.java:4: error: cannot find symbol
Scanner in = new Scanner(System.in);
^
symbol: class Scanner
location: class Main
2 errors
|
s159954866 | p01125 | Java | package volume_20;
import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;
public class No_2000 {
public static void main(String[] args) {
// TODO ?????????????????????????????????????????????
Scanner sc = new Scanner(System.in);
while (true) {
String line = sc.nextLine();
int n = I... | Main.java:7: error: class No_2000 is public, should be declared in a file named No_2000.java
public class No_2000 {
^
1 error
|
s807899083 | p01125 | Java | public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
while(true){
int N =sc.nextInt();
if(N == 0){
break;
}
// ???????????????
boolean[][] map = new boolean[21][21];
for (int n = 0; n<N; n++){
int x = sc.nextInt();
int y = sc.nextInt();
// ??\??????????????????
... | Main.java:1: error: unnamed classes are a preview feature and are disabled by default.
public static void main(String[] args) {
^
(use --enable-preview to enable unnamed classes)
1 error
|
s786654366 | p01125 | Java | import java.util.Scanner;
public class MAIN {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
while(true){
int N =sc.nextInt();
if(N == 0){
break;
}
// ???????????????
boolean[][] map = new boolean[21][21];
for (int n = 0; n<N; n++){
// int x = sc.nextIn... | Main.java:3: error: class MAIN is public, should be declared in a file named MAIN.java
public class MAIN {
^
1 error
|
s297807886 | p01125 | Java | import java.util.Scanner;
public class solve2000 {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
while(true){
int N =sc.nextInt();//??????????????°
if(N == 0){
break;
}
// ???????????????
boolean[][] map = new boolean[21][21];
for (int n = 0; n<N; n++){
... | Main.java:3: error: class solve2000 is public, should be declared in a file named solve2000.java
public class solve2000 {
^
1 error
|
s601219049 | p01125 | Java | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
int numOfGemsCollected = 0;
Robo robo = new Robo();
Scanner scan = new Scanner(System.in);
int numOfGems = scan.nextInt();
while (numOfGems != 0) {
Gem[] gemArray = new Gem[numOfGems];
for (int i = 0; i < numOf... | Main.java:8: error: cannot find symbol
Robo robo = new Robo();
^
symbol: class Robo
location: class Main
Main.java:8: error: cannot find symbol
Robo robo = new Robo();
^
symbol: class Robo
location: class Main
Main.java:14: error: cannot find symbol
Gem[] gemArray = new Gem[numOfG... |
s359581970 | p01125 | Java | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
int numOfGemsCollected = 0;
Robo robo = new Robo();
Scanner scan = new Scanner(System.in);
int numOfGems = scan.nextInt();
while (numOfGems != 0) {
Gem[] gemArray = new Gem[numOfGems];
for (int i = 0; i < numOf... | Main.java:8: error: cannot find symbol
Robo robo = new Robo();
^
symbol: class Robo
location: class Main
Main.java:8: error: cannot find symbol
Robo robo = new Robo();
^
symbol: class Robo
location: class Main
Main.java:14: error: cannot find symbol
Gem[] gemArray = new Gem[numOfG... |
s640198796 | p01125 | Java | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
int numOfGemsCollected = 0;
Robo robo = new Robo();
Scanner scan = new Scanner(System.in);
int numOfGems = scan.nextInt();
while (numOfGems != 0) {
Gem[] gemArray = new Gem[numOfGems];
for (int i = 0; i < numOf... | Main.java:8: error: cannot find symbol
Robo robo = new Robo();
^
symbol: class Robo
location: class Main
Main.java:8: error: cannot find symbol
Robo robo = new Robo();
^
symbol: class Robo
location: class Main
Main.java:14: error: cannot find symbol
Gem[] gemArray = new Gem[numOfG... |
s451677223 | p01125 | Java |
import java.util.Scanner;
class Robo {
int coordinateX;
int coordinateY;
Robo() {
this.coordinateX = 10;
this.coordinateY = 10;
}
public void forwardX() {
this.coordinateX = (this.getX() + 1);
}
public void forwardY() {
this.coordinateY = (this.getY() + 1);
}
public void backwardX() {
this.coor... | Main.java:82: error: constructor Gem in class Gem cannot be applied to given types;
Gem gem = new Gem();
^
required: int,int
found: no arguments
reason: actual and formal argument lists differ in length
1 error
|
s098078822 | p01125 | Java | import java.util.Scanner;
public class Main{
class Treasure
{
int x;
int y;
boolean isTreasure;
public Treasure(int x,int y)
{
this.x = x;
this.y = y;
this.isTreasure = false;
}
public void isTreasure(Robot pri_r,Robot aft_r)
{
if(pri_r.x == aft_r.x)
{
if(pri_r.y < aft_r.y... | Main.java:155: error: cannot find symbol
Main.run.run();
^
symbol: variable run
location: class Main
1 error
|
s037431270 | p01125 | Java | import java.util.Scanner;
public class vaa {
public static void main(String[] args){
int[][] field = new int[21][21];
Scanner sc = new Scanner(System.in);
while(true){
int nowx = 10;
int nowy = 10;
for(int i=0;i<21;i++){
for(int j=0;j<21;j++){
field[i][j] = 0;
}
}
int n = sc.nextInt()... | Main.java:2: error: class vaa is public, should be declared in a file named vaa.java
public class vaa {
^
1 error
|
s362958170 | p01125 | C | #include <stdio.h>
#include <string.h>
int main() {
int x[21][21] = {2};
int r[21][21] = {3};
int m, n,i,j,k,l;
int a,b,c,d,e;
char ch[5];
while (1) {
k = 0;
c = d = 9;
for(j=0; j<20 ; j++) {
for(i=0; i<20 ; i++) {
x[i][j] = 2;
r[i][j] =3;
}
}
scanf("%d",&n);
if(n... | main.c: In function 'main':
main.c:79:7: error: expected declaration or statement at end of input
79 | }
| ^
main.c:79:7: error: expected declaration or statement at end of input
main.c:79:7: error: expected declaration or statement at end of input
|
s528984289 | p01125 | C | #include <stdio.h>
int main(){
int s=0,n,m,k,i,j,rx=10,ry=10,tx,ty,ta[21][21],z;
char d;
while(1){
scanf("%d",&n);
if(n==0){
break;
}
for(i=0;i<=20;i++){
for(j=0;j<=20;j++){
ta[i][j]=0;
}
}
テ」ツ??」ツ??or(i=0;i<n;i++){
scanf("%d%d",&tx,&ty);
ta[tx][ty]... | main.c: In function 'main':
main.c:18:7: error: stray '\343' in program
18 | <U+30C6><U+300D><U+30C4>??<U+300D><U+30C4>??or(i=0;i<n;i++){
| ^~~~~~~~
main.c:18:5: error: unknown type name '\U000030c6'
18 | テ」ツ??」ツ??or(i=0;i<n;i++){
| ^~
main.c:18:11: error: expected '=', ',', ';... |
s614107192 | p01125 | C | #include <stdio.h>
int main(){
int s=0,n,m,k,i,j,rx=10,ry=10,tx,ty,ta[21][21],z;
char d;
while(1){
scanf("%d",&n);
if(n==0){
break;
}
for(i=0;i<=20;i++){
for(j=0;j<=20;j++){
ta[i][j]=0;
}
}
テ」ツ??」ツ??or(i=0;i<n;i++){
scanf("%d%d",&tx,&ty);
ta[tx][ty]... | main.c: In function 'main':
main.c:18:7: error: stray '\343' in program
18 | <U+30C6><U+300D><U+30C4>??<U+300D><U+30C4>??or(i=0;i<n;i++){
| ^~~~~~~~
main.c:18:5: error: unknown type name '\U000030c6'
18 | テ」ツ??」ツ??or(i=0;i<n;i++){
| ^~
main.c:18:11: error: expected '=', ',', ';... |
s408566472 | p01125 | C | #include <stdio.h>
int main(){
int s=0,n,m,k,i,j,rx=10,ry=10,tx,ty,ta[21][21],z;
char d;
while(1){
scanf("%d",&n);
if(n==0){
break;
}
for(i=0;i<=20;i++){
for(j=0;j<=20;j++){
ta[i][j]=0;
}
}
??????for(i=0;i<n;i++){
scanf("%d%d",&tx,&ty);
ta[tx][ty]=1... | main.c: In function 'main':
main.c:18:5: error: expected expression before '?' token
18 | ??????for(i=0;i<n;i++){
| ^
main.c:25:5: error: expected expression before '?' token
25 | ??????for(i=0;i<m;i++){
| ^
|
s693104245 | p01125 | C | #include <iostream>
using namespace std;
#include <stdio.h>
typedef struct {
int fst, snd;
} taple;
int main() {
int i,j,k,n,m,score;
char c;
taple gems[20], robot, prog;
while(1) {
scanf("%d", &n); if(n==0) break;
for(i=0;i<n;i++)
scanf("%d %d", &gems[i].fst, &gems[i].snd);
robot.fst ... | main.c:1:10: fatal error: iostream: No such file or directory
1 | #include <iostream>
| ^~~~~~~~~~
compilation terminated.
|
s578018674 | p01125 | C | #pragma warning( disable : 4996 )
#include <stdio.h>
#include <map>
#include <vector>
typedef unsigned int DWORD; //DWORD
//2次元ベクトルクラス
class Vector2{
public:
Vector2(){
x = y = 0;
}
Vector2( int _x , int _y ){
x = _x;
y = _y;
}
int x;
int y;
Vector2 operator +( Vector2 &_Arg ){
Vector2 ret;
... | main.c:3:10: fatal error: map: No such file or directory
3 | #include <map>
| ^~~~~
compilation terminated.
|
s751493252 | p01125 | C++ | #include <iostream>
using namespace std;
int main() {
int N, M, x, y, g;
char D[2];
while (1) {
int jewelry[20][20] = { 0 };
int a[20][20] = { 0 };
cin >> N;
if (N == 0)
break;
for (int i = 0; i < N; i++) {
cin >> x >> y;
jewelry[x][y] = 1;
}
cin >> M;
int x2 = 10;
int y2 = 10;
for (i... | a.cc: In function 'int main()':
a.cc:22:29: error: 'strcmp' was not declared in this scope
22 | if (strcmp(D, "N") == 0) {
| ^~~~~~
a.cc:2:1: note: 'strcmp' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
1 | #inc... |
s923124063 | p01125 | C++ | #include <iostream>
using namespace std;
int main() {
int N, M, x, y, g;
char D[2];
while (1) {
int jewelry[20][20] = { 0 };
int a[20][20] = { 0 };
cin >> N;
if (N == 0)
break;
for (int i = 0; i < N; i++) {
cin >> x >> y;
jewelry[x][y] = 1;
}
cin >> M;
int x2 = 10;
int y2 = 10;
for (i... | a.cc: In function 'int main()':
a.cc:22:30: error: 'strcmp' was not declared in this scope
22 | if (!strcmp(D, "N")) {
| ^~~~~~
a.cc:2:1: note: 'strcmp' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
1 | #includ... |
s096586030 | p01125 | C++ | #include <iostream>
using namespace std;
int main(void) {
int N, M, x, y, g;
char D[2];
while (1) {
int jewelry[20][20] = { 0 };
int a[20][20] = { 0 };
cin >> N;
if (N == 0)
break;
for (int i = 0; i < N; i++) {
cin >> x >> y;
jewelry[x][y] = 1;
}
cin >> M;
int x2 = 10;
int y2 = 10;
fo... | a.cc: In function 'int main()':
a.cc:22:30: error: 'strcmp' was not declared in this scope
22 | if (!strcmp(D, "N")) {
| ^~~~~~
a.cc:2:1: note: 'strcmp' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
1 | #includ... |
s711284940 | p01125 | C++ | #include <iostream>
using namespace std;
int main(void) {
int N, M, x, y, g;
char D[2];
while (1) {
int jewelry[20][20] = { 0 };
int a[20][20] = { 0 };
cin >> N;
if (N == 0)
break;
for (int i = 0; i < N; i++) {
cin >> x >> y;
jewelry[x][y] = 1;
}
cin >> M;
int x2 = 10;
int y2 = 10;
fo... | a.cc: In function 'int main()':
a.cc:22:30: error: 'strcmp' was not declared in this scope
22 | if (!strcmp(D, "N")) {
| ^~~~~~
a.cc:2:1: note: 'strcmp' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
1 | #includ... |
s731295221 | p01125 | C++ | #include <iostream>
using namespace std;
int main(void) {
int N, M, x, y, g;
char D[2];
while (1) {
int jewelry[20][20] = { 0 };
int a[20][20] = { 0 };
cin >> N;
if (N == 0)
break;
for (int i = 0; i < N; i++) {
cin >> x >> y;
jewelry[x][y] = 1;
}
cin >> M;
int x2 = 10;
int y2 = 10;
for ... | a.cc: In function 'int main()':
a.cc:22:30: error: 'strcmp' was not declared in this scope
22 | if (!strcmp(D, "N"))
| ^~~~~~
a.cc:2:1: note: 'strcmp' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
1 | #include ... |
s609565821 | p01125 | C++ | #include <cstdio>
using namespace std;
inline int my_popcount(unsigned x)
{
x=(x&0x55555555)+(x>>1&0x55555555);
x=(x&0x33333333)+(x>>2&0x33333333);
x=(x&0x0f0f0f0f)+(x>>4&0x0f0f0f0f);
x=(x&0x00ff00ff)+(x>>8&0x00ff00ff);
return (x&0x0000ffff)+(x>>16&0x0000ffff);
}
int main()
{
constexpr LOOP=1000000000;
int sum... | a.cc: In function 'int main()':
a.cc:15:19: error: 'LOOP' does not name a type
15 | constexpr LOOP=1000000000;
| ^~~~
a.cc:17:23: error: 'LOOP' was not declared in this scope
17 | for(int i=0;i<LOOP;i++)
| ^~~~
|
s866578941 | p01125 | C++ | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using sc = Scanner;
class Program
{
static void Main(string[] args)
{
var q = new AnswerCollecter<string>();
while (true)
{
int n, m;
int[][] jem, move;
int x, y;
... | a.cc:1:7: error: expected nested-name-specifier before 'System'
1 | using System;
| ^~~~~~
a.cc:2:7: error: expected nested-name-specifier before 'System'
2 | using System.Collections.Generic;
| ^~~~~~
a.cc:3:7: error: expected nested-name-specifier before 'System'
3 | using System.L... |
s387424663 | p01125 | C++ | #include <iostream>
#include <algorithm>
#include <vector>
#include <stack>
#include <queue>
#include <map>
#include <cmath>
#include <string>
#include <sstream>
#include <iomanip>
#include <complex>
using namespace std;
#define ll long long
#define vvi vector< vector<int> >
#define All(X) X.begin(),X.end()
#define F... | a.cc: In function 'int main()':
a.cc:31:23: error: array must be initialized with a brace-enclosed initializer
31 | int gem[25][25] = 1;
| ^
a.cc:47:17: error: 'N' was not declared in this scope
47 | if (d[j]==N){
| ^
a.cc:49:30: error: expected ';' befo... |
s747700635 | p01125 | C++ | //#include<cstdio>
//#include<iostream>
//
//#include<algorithm>
//#include<cstdlib>
//#include<queue>
//#include<stack>
#include<iostream>
#include<vector>
#include<stdlib.h>
#include<iomanip>
using namespace std;
int pos[22][22];
int main(){
while(true){
int N;
cin>>N;
if(N==0)
... | a.cc: In function 'int main()':
a.cc:21:9: error: 'memset' was not declared in this scope
21 | memset (pos,0,sizeof(pos));
| ^~~~~~
a.cc:12:1: note: 'memset' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
11 | #include<iomanip>
+++ |+#include <cst... |
s845433615 | p01125 | C++ | #include <iostream>
#include <vector>
#include <string>
#include <cstring>
#include <algorithm>
#include <sstream>
#include <map>
#include <set>
#include <cstdio>
using namespace std;
#define REP(i,a,b) for(i=a;i<b;i++)
#define rep(i,n) REP(i,0,n)
typedef long long ll;
typedef unsigned long long ull;
typedef long dou... | a.cc: In function 'int main()':
a.cc:58:22: error: cannot convert 'int (*)[30]' to 'int (*)[21]'
58 | syori(a,i,j,r,&n);
| ^
| |
| int (*)[30]
a.cc:23:16: note: initializing argument 1 of 'void syori(int (*)[21], int, i... |
s770262532 | p01125 | C++ | #include<iostream>
#include<vector>
#include<utility>
using namespace std;
int main(){
while (1){
int n;
cin >> n;
if (n == 0){
break;
}
vector<pair<int, int> > gems(n);
for (auto itr = gems.begin(); itr != gems.end(); ++itr){
int x, y;
... | a.cc: In function 'int main()':
a.cc:35:39: error: no matching function for call to 'find(std::vector<std::pair<int, int> >::const_iterator, std::vector<std::pair<int, int> >::const_iterator, std::pair<int, int>&)'
35 | auto isGems = find(gems.cbegin(), gems.cend(), pos);
| ... |
s900396179 | p01125 | C++ | #include<iostream>
#include<vector>
#include<utility>
using namespace std;
int main(){
while (1){
int n;
cin >> n;
if (n == 0){
break;
}
vector<pair<int, int> > gems(n);
for (auto itr = gems.begin(); itr != gems.end(); ++itr){
int x, y;
... | a.cc: In function 'int main()':
a.cc:35:39: error: no matching function for call to 'find(std::vector<std::pair<int, int> >::const_iterator, std::vector<std::pair<int, int> >::const_iterator, std::pair<int, int>&)'
35 | auto isGems = find(gems.cbegin(), gems.cend(), pos);
| ... |
s237067026 | p01125 | C++ | #include<iostream>
using namespace std;
int main(){
int x[100],y[100],t[100],s[100],cx,cy,sum;
char d[100];
int n,m;
while(true){
cin>>n;
memset(t,0,sizeof(t));
if(n==0){
break;
}
for(int i=1;i<=n;i++){
cin>>x[i]>>y[i];
t[i]=1;
}
cx=10;
cy=10;
sum=0;
cin>>m;
for(int i=1;i<=m;i++){... | a.cc: In function 'int main()':
a.cc:10:17: error: 'memset' was not declared in this scope
10 | memset(t,0,sizeof(t));
| ^~~~~~
a.cc:2:1: note: 'memset' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
1 | #include<iostream>
+++ |+#... |
s358638130 | p01125 | C++ | ffffffffffff | a.cc:1:1: error: 'ffffffffffff' does not name a type
1 | ffffffffffff
| ^~~~~~~~~~~~
|
s589873369 | p01125 | C++ | #include <iostream>
#pragma warning(disable: 4996)
int dx[4] = { 0, 1, 0, -1 };
int dy[4] = { 1, 0, -1, 0 };
char dir[5] = "NESW";
int N, M, D, X, Y, A, i, j, k, C[20], R[20], P[21][21];
char c;
int main()
{
while (true)
{
scanf("%d", &N);
if (N == 0) { break; }
memset(P, 0, sizeof(P));
X = Y = 10; A... | a.cc: In function 'int main()':
a.cc:22:17: error: 'memset' was not declared in this scope
22 | memset(P, 0, sizeof(P));
| ^~~~~~
a.cc:2:1: note: 'memset' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
1 | #include <iostream>
+++ ... |
s703037767 | p01125 | C++ | 2
10 11
11 12
2
N 2
E 1
2
10 11
11 12
2
N 2
W 1
3
0 15
5 10
5 15
5
W 10
S 10
N 20
E 10
S 10
0 | a.cc:1:1: error: expected unqualified-id before numeric constant
1 | 2
| ^
|
s592468123 | p01125 | C++ | #include <iostream>
using namespace std;
int main(){
int N,M;
while(cin >> N,N){
int map[21][21]={0},num = 0,l;
int x,y;
for(int i = 0;i < N;i++,num++) {
cin >> x >> y;
map[x][y] = 1;
}
x = 10;
y = 10;
cin >> M;
char d;
for(int i = 0;i < M;i++){
cin >> d >> l;
for(;l > 0;l--){
if(... | a.cc: In function 'int main()':
a.cc:32:2: error: expected '}' at end of input
32 | }
| ^
a.cc:6:11: note: to match this '{'
6 | int main(){
| ^
|
s231194333 | p01125 | C++ | #include <iostream>
#include <string>
#include <algorithm>
using namespace std;
int main(){
int n;
while(cin>>n){
if(n==0)
break;
int da[22][22]={};
int x,y;
for(int i=0;i<n;i++){
cin>>x>>y;
da[y][x]=1;
}
int m;
cin>>m;
char v;
int l;
int nx=10,ny=10;
for(int i=0;i<m;i++){
cin>>v;
... | a.cc: In function 'int main()':
a.cc:52:34: error: expected '}' at end of input
52 | }
| ^
a.cc:46:46: note: to match this '{'
46 | for(int j=0;j<22;j++){
| ^
a.cc:52:3... |
s510330171 | p01125 | C++ | #include <iostream>
#include <cstring>
using namespace std;
bool square[21][21];
int main() {
int N;
while (true) {
cin >> N;
if (N == 0) break;
memset(square, false, sizeof(square));
for (int i = 0; i < N; i++) {
int x, y;
cin >> x >> y;
square[x][y] = true;
}
int x = 1... | a.cc: In function 'int main()':
a.cc:53:2: error: expected '}' at end of input
53 | }
| ^
a.cc:8:12: note: to match this '{'
8 | int main() {
| ^
|
s202352101 | p01125 | C++ | #include <iostream>
using namespace std;
#define MAX 21
int main()
{
int n, m, x, y, i, j, dis, res;
int gems[MAX][MAX];
char dir;
while (cin >> n, n) {
for (i = 0; i < MAX; ++i)
for (j = 0; j < MAX; ++j)
gems[i][j] = 0;
for (i = 0; i < n; ++i) {
... | a.cc: In function 'int main()':
a.cc:40:6: error: expected '}' at end of input
40 | }
| ^
a.cc:6:1: note: to match this '{'
6 | {
| ^
|
s585018764 | p01125 | C++ | #include <cstdio>
#include <cmath>
#include <cstring>
#include <ctime>
#include <iostream>
#include <algorithm>
#include <set>
#include <vector>
#include <sstream>
#include <typeinfo>
#include <map>
using namespace std;
typedef long long LL;
#define REP(i,N) for(int i = 0; i < (int)N; i++)
int dy[4] = {1,0,-1,0};
int ... | a.cc: In function 'int main()':
a.cc:74:2: error: expected '}' at end of input
74 | }
| ^
a.cc:19:11: note: to match this '{'
19 | int main(){
| ^
|
s745380780 | p01125 | C++ | Yes
Yes
No
No
No
Yes
Yes
No
No
No
No
No
Yes
Yes
No
No
Yes
No
Yes
Yes
No
Yes
No
Yes
Yes
No
No
No
Yes
Yes
Yes
No
No
Yes
No
No
Yes
Yes
Yes
Yes
No
No
Yes
No
Yes
Yes
Yes
No
Yes
No
No
Yes
No
Yes
Yes
No
No
Yes
No
Yes
Yes
No
Yes
Yes
No
Yes
No
No
No
Yes
No
No
No
No
No
Yes
Yes
No
No
No
No
No
No
Yes
Yes
No
Yes
No
Yes
Yes
Yes
Yes
... | a.cc:1:1: error: 'Yes' does not name a type
1 | Yes
| ^~~
|
s070166743 | p01125 | C++ | #include <stdio.h>
int main()
{
char sute,h;
int scood[21][2],i,j,m,rx,ry,t,cou,k,s;
while(1){
scanf("%d",&s);
if(s==0)break;
for(i=0;i<s;i++){
scanf("%d %d",&scood[i][0],&scood[i][1]);
}
scanf("%d%c",&m,&sute);
rx=10;
ry=10;
cou=0;
// printf("%d",m);
for(i=0;i<m;i... | a.cc: In function 'int main()':
a.cc:42:2: error: expected '}' at end of input
42 | }
| ^
a.cc:3:1: note: to match this '{'
3 | {
| ^
|
s127820159 | p01125 | C++ | for(int i=0;i<21;i++){
for(int j=0;j<21;j++){ | a.cc:1:1: error: expected unqualified-id before 'for'
1 | for(int i=0;i<21;i++){
| ^~~
a.cc:1:13: error: 'i' does not name a type
1 | for(int i=0;i<21;i++){
| ^
a.cc:1:18: error: 'i' does not name a type
1 | for(int i=0;i<21;i++){
| ^
|
s306709254 | p01125 | C++ | #define _CRT_SECURE_NO_WARNINGS // #pragma warning(disable:4996)
#include <iostream>
#include <cstdio>
#include <algorithm>
#include <vector>
#include <string>
#include <queue>
#include <functional>
#include <sstream>
#include <cmath>
#include <set>
#include <map>
using namespace std;
#define rep(i,a,b) for(int i=(a)... | a.cc: In function 'int main()':
a.cc:43:17: error: 'memset' was not declared in this scope
43 | memset(g, 0, sizeof(g));
| ^~~~~~
a.cc:13:1: note: 'memset' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
12 | #include <map>
+++ |+#i... |
s554979508 | p01125 | C++ | #include <iostream>
#include <queue>
#include <complex>
#include <functional>
#include <cmath>
#include <cstdio>
#include <algorithm>
#include <vector>
#include <string>
#include <map>
using namespace std;
typedef complex<double> P;
#define EPS (1e-10)
#define EQ(a,b) (abs((a)-(b)) < EPS)
#define EQV(a,b) ( EQ( a.real... | a.cc: In function 'int main()':
a.cc:37:17: error: 'memset' was not declared in this scope
37 | memset(check, false, sizeof(check));
| ^~~~~~
a.cc:11:1: note: 'memset' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
10 | #include <map... |
s978526224 | p01125 | C++ | #include <iostream>
#include <queue>
#include <complex>
#include <functional>
#include <cmath>
#include <cstdio>
#include <algorithm>
#include <vector>
#include <string>
#include <map>
using namespace std;
typedef complex<double> P;
#define EPS (1e-10)
#define EQ(a,b) (abs((a)-(b)) < EPS)
#define EQV(a,b) ( EQ( a.real... | a.cc: In function 'int main()':
a.cc:37:17: error: 'memset' was not declared in this scope
37 | memset(check, false, sizeof(check));
| ^~~~~~
a.cc:11:1: note: 'memset' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
10 | #include <map... |
s066924667 | p01125 | C++ | #include <iostream>
#include <queue>
#include <complex>
#include <functional>
#include <cmath>
#include <cstdio>
#include <algorithm>
#include <vector>
#include <string>
#include <map>
using namespace std;
typedef complex<double> P;
#define EPS (1e-10)
#define EQ(a,b) (abs((a)-(b)) < EPS)
#define EQV(a,b) ( EQ( a.real... | a.cc: In function 'int main()':
a.cc:37:17: error: 'memset' was not declared in this scope
37 | memset(check, false, sizeof(check));
| ^~~~~~
a.cc:11:1: note: 'memset' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
10 | #include <map... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.