submission_id
stringlengths
10
10
problem_id
stringlengths
6
6
language
stringclasses
3 values
code
stringlengths
1
522k
compiler_output
stringlengths
43
10.2k
s236554317
p00723
C++
#include <cstdio> #include <iostream> #include <string> #include <set> #include <vector> #include <list> #include <algorithm> #include <cstring> using namespace std; #define rev(s) (vector<char>((s).rbegin(), (s).rend())) #define HASH_SIZE 2011 #define a 1049 int hash(vector<char> str) { int n = 0; int pow = 1; ...
a.cc: In member function 'bool hash_table::operator[](std::vector<char>)': a.cc:32:15: error: reference to 'hash' is ambiguous 32 | int key = hash(str); | ^~~~ In file included from /usr/include/c++/14/string_view:50, from /usr/include/c++/14/bits/basic_string.h:47, ...
s458542626
p00723
C++
#include <cstdio> #include <iostream> #include <string> #include <set> #include <vector> #include <list> #include <algorithm> using namespace std; #define rev(s) (vector<char>((s).rbegin(), (s).rend())) #define HASH_SIZE 2011 #define a 1049 int hash(vector<char> str) { int n = 0; int pow = 1; for (unsigned int...
a.cc: In member function 'bool hash_table::operator[](std::vector<char>)': a.cc:31:15: error: reference to 'hash' is ambiguous 31 | int key = hash(str); | ^~~~ In file included from /usr/include/c++/14/string_view:50, from /usr/include/c++/14/bits/basic_string.h:47, ...
s064071527
p00723
C++
#include<iostream> #include<string> #include<set> using namespace std; int main(){ int m;cin>>m; string train; for(;cin>>train;){ set<string>st; for(int i=1;i<train.size();i++){ string t1=train.substr(0,i),t2=train.substr(i); st.insert(t1+t2);st.insert(t2+t1); reverse(t1.begin(),t1.end()); st.insert(...
a.cc: In function 'int main()': a.cc:13:25: error: 'reverse' was not declared in this scope 13 | reverse(t1.begin(),t1.end()); | ^~~~~~~
s628478319
p00723
C++
// 2006‘“à—\‘IB —ñŽÔ‚̕Ґ¬ƒp[ƒgII #include <iostream> #include <string> #include <set> using namespace std; inline string reverse(string s){ reverse(s.begin(), s.end()); return s; } int main(){ int t; cin >> t; while(t--){ string s; cin >> s; set<string> S; S.insert(s); S.insert(reverse(s)); int n = ...
a.cc: In function 'std::string reverse(std::string)': a.cc:9:24: error: could not convert 's.std::__cxx11::basic_string<char>::begin()' from 'std::__cxx11::basic_string<char>::iterator' to 'std::string' {aka 'std::__cxx11::basic_string<char>'} 9 | reverse(s.begin(), s.end()); | ~~~~~~~...
s445862466
p00723
C++
#include <iostream> #include <set> #include <string> using namespace std; #define rep(i,n) rep2(i,0,n) #define rep2(i,m,n) for(int i=m;i<n;i++) #define sz size() int m; string s; int main(){ cin>>m; while(cin>>s){ set<string> S; rep(i,s.sz-1){ string t=s.substr(0,i+1),u=s.substr(i+1); rep(j,2){ rep(k...
a.cc: In function 'int main()': a.cc:23:41: error: 'reverse' was not declared in this scope 23 | reverse(t.begin(),t.end()); | ^~~~~~~ a.cc:25:33: error: 'reverse' was not declared in this scope 25 | ...
s120053882
p00723
C++
#include<iostream> #include<cstdio> #include<cmath> #include<map> #include<string> #include<cstring> using namespace std; int main(){ int n; string s; string s1,s2; map<string,bool> Index; cin >> n; while(n-- > 0){ cin >> s; for(int i=1;i<s.length();i++){ s1 = s.substr(0,i); s2 = s.s...
a.cc: In function 'int main()': a.cc:24:10: error: 'reverse' was not declared in this scope 24 | reverse(s1.begin(),s1.end()) ; | ^~~~~~~
s055672570
p00723
C++
#include <iostream> #include <algorithm> #include <map> #include <string> using namespace std; int main(){ int i,j=0,n; for(cin>>n;j<n;j++){ string s;cin>>s;map<string> m; for(i=1;i<s.length();i++){ string s1=s.substr(0,i),s2=s.substr(i),r1=s1,r2=s2; reverse(r1.begin(),r1.end()); reverse(r2.begin(),r2.en...
a.cc: In function 'int main()': a.cc:9:43: error: wrong number of template arguments (1, should be at least 2) 9 | string s;cin>>s;map<string> m; | ^ In file included from /usr/include/c++/14/map:63, from a.cc:3: /usr/include/c++/14/bi...
s274334159
p00723
C++
#include<iostream> #include<set> #include<vector> #include<string> using namespace std; vector<string> solve(string s,int st){ vector<string> ans; string s1 = s.substr(0,st); string s2 = s.substr(st,s.size()-st); // 両方正 ans.push_back(s1+s2); ans.push_back(s2+s1); reverse(s1.begin(),s1.end()); //s1が逆 an...
a.cc: In function 'std::vector<std::__cxx11::basic_string<char> > solve(std::string, int)': a.cc:18:9: error: 'reverse' was not declared in this scope 18 | reverse(s1.begin(),s1.end()); | ^~~~~~~
s098513796
p00723
C++
// AOJ 1142 #include <iostream> #include <map> #include <string> using namespace std; int main(void) { int m; cin >> m; while (m--){ string str; map <string, int> mydata; cin >> str; for (int i = 1; i < (int)str.length(); i++){ string first = str.substr(0, i); string second = str.substr(i, (int)str....
a.cc: In function 'int main()': a.cc:20:46: error: 'reverse' was not declared in this scope 20 | string frev = first; reverse(frev.begin(), frev.end()); | ^~~~~~~
s816648391
p00723
C++
include <iostream> #include <algorithm> #include <set> using namespace std; int main(){ int n; cin >> n; while(n--){ string s; cin >> s; set<string> ans; string a, b; for(int i = 0 ; i < s.size() ; i++){ a = s.substr(0, i); b = s.substr(i); ans.insert(a+b); ans.insert(...
a.cc:1:1: error: 'include' does not name a type 1 | include <iostream> | ^~~~~~~ In file included from /usr/include/c++/14/bits/stl_algobase.h:62, from /usr/include/c++/14/algorithm:60, from a.cc:2: /usr/include/c++/14/ext/type_traits.h:164:35: error: 'constexpr const bool __...
s395378582
p00723
C++
#include <iostream> #include <string> #include <set> using namespace std; int main(void){ int n; string str,sub1,sub2; cin >> n; for(int i=0;i<n;i++){ set<string> val; cin >> str; for(int j=1;j<str.length();j++){ sub2=str.substr(j); sub1=str.substr(0,j); val.insert(sub1+sub2); val.insert(sub...
a.cc: In function 'int main()': a.cc:23:25: error: 'reverse' was not declared in this scope 23 | reverse(sub2.begin(),sub2.end()); | ^~~~~~~
s691275675
p00723
C++
#include <stdio.h> #include <algorithm> #include <string> #include <set> #include <iostream> int main( void ) { int M; char S[73]; typedef set<string> set_t; scanf( "%d", &M ); while ( M-- ) { scanf( "%s", S ); set_t all; all.insert( S ); for ( size_t i = 1; i < S.size(); i++ ) { s...
a.cc: In function 'int main()': a.cc:12:17: error: 'set' does not name a type 12 | typedef set<string> set_t; | ^~~ a.cc:20:17: error: 'set_t' was not declared in this scope 20 | set_t all; | ^~~~~ a.cc:21:17: error: 'all' was not declared in thi...
s215675148
p00724
C++
//Tue Dec 22 22:01:34 JST 2009 #include<set> #include<iostream> #include<queue> using namespace std; #define REP(i,b,n) for(int i=b;i<n;i++) #define rep(i,n) REP(i,0,n) #define mp make_pair int dx[]={0,1,1,0,-1,-1}; int dy[]={-1,-1,0,1,1,0}; #define CONNECT true #define UNCONNECT false #define CANMOVE true #define CA...
a.cc: In function 'int bfs(state, int, int, std::set<std::pair<int, int> >&)': a.cc:97:8: error: 'cnt' was not declared in this scope; did you mean 'int'? 97 | if (20<cnt+(max(now.x[0],dx)-min(now.x[0],dy)+ | ^~~ | int a.cc: At global scope: a.cc:108:1: warning: ISO C++ forbids declaration ...
s460342830
p00724
C++
#include <iostream> #include <set> #include <vector> using namespace std; char dx[] = {0,1,1,0,-1,-1}; char dy[] = {-1,-1,0,1,1,0}; set< vector<int> > prev; vector< vector<int> > cur, next; int x[8], y[8], u[100], v[100], n, k, X, Y, ans; void move(int step, int pos){ if(ans != 20) return; if(pos >= n) { for(i...
a.cc: In function 'void move(int, int)': a.cc:24:20: error: reference to 'prev' is ambiguous 24 | if(prev.find(v) == prev.end()){ | ^~~~ In file included from /usr/include/c++/14/string:47, from /usr/include/c++/14/bits/locale_classes.h:40, f...
s502945986
p00724
C++
#include <iostream> #include <set> #include <vector> using namespace std; char dx[] = {0,1,1,0,-1,-1}; char dy[] = {-1,-1,0,1,1,0}; set< vector<int> > prev; vector< vector<int> > cur, next; int x[8], y[8], u[100], v[100], n, k, X, Y, ans; void move(int step, int pos){ if(ans != 20) return; if(pos >= n) { for(i...
a.cc: In function 'void move(int, int)': a.cc:24:21: error: reference to 'prev' is ambiguous 24 | if(!prev.count(v)){ | ^~~~ In file included from /usr/include/c++/14/string:47, from /usr/include/c++/14/bits/locale_classes.h:40, from /usr/in...
s621536293
p00724
C++
#include<queue> using namespace std; int vx[]={ 1, 1, 0, 0,-1,-1}; int vy[]={ 0,-1, 1,-1, 1, 0}; struct P{ int x,y; }; int n,k; struct Snake{ int step; P body[8]; bool operator<(const Snake&b)const{ for(int i=0;i<n;i++){ if(body[i].x!=b.body[i].x)return body[i].x<b.body[i].x; if(body[i].y!=b.body[i].y)retur...
a.cc:28:1: error: 'set' does not name a type 28 | set<Snake> s; | ^~~ a.cc: In function 'int distance()': a.cc:31:25: error: 'abs' was not declared in this scope; did you mean 'ans'? 31 | if(dx*dy<0)dis= abs(dx)<abs(dy)? abs(dy):abs(dx); | ^~~ | ...
s239805803
p00724
C++
#include<cstdio> #include<iostream> #include<vector> #include<string> #include<map> #include<algorithm> #include<queue> #include<complex> #include<set> using namespace std; #define reps(i,f,n) for(int i=f;i<int(n);i++) #define rep(i,n) reps(i,0,n) const int INF = 1000000000; typedef complex<int> pii; typedef vector...
a.cc: In function 'void setmove()': a.cc:38:9: error: reference to 'move' is ambiguous 38 | move[mk(0,0,1,0,1,1)]=pii(0,1); | ^~~~ In file included from /usr/include/c++/14/algorithm:86, from a.cc:6: /usr/include/c++/14/pstl/glue_algorithm_defs.h:353:1: note: candidates are: 't...
s056267730
p00724
C++
#include <iostream> #include <vector> #include <map> #include <utility> #include <exception> #include <queue> #include <set> #include <cmath> using namespace std; struct coordinate { coordinate() { x = 0; y = 0; } coordinate(int X, int Y) { x = X; y = Y; } coordinate operator+(const int & a) const { // {{{ c...
a.cc: In constructor 'coordinate::coordinate()': a.cc:13:24: error: 'x' was not declared in this scope 13 | coordinate() { x = 0; y = 0; } | ^ a.cc:13:31: error: 'y' was not declared in this scope; did you mean 'yn'? 13 | coordinate() { x = 0; y = 0; } | ...
s476976053
p00724
C++
#include <bits/stdc++.h> #define REP(i,n) for(int i=0; i<(int)(n); ++i) using namespace std; struct Solver{ int n; static const int dx[6] = { 0, 1, 1, 0, -1, -1}; static const int dy[6] = {-1, -1, 0, 1, 1, 0}; int get_r(int fx, int fy, int tx, int ty){ // return r such that fx + dx[r] == t...
a.cc:9:22: error: 'constexpr' needed for in-class initialization of static data member 'const int Solver::dx [6]' of non-integral type [-fpermissive] 9 | static const int dx[6] = { 0, 1, 1, 0, -1, -1}; | ^~ a.cc:10:22: error: 'constexpr' needed for in-class initialization of static d...
s942380748
p00725
Java
import java.util.Scanner; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int w, h; int x, y; while(true){ w = sc.nextInt(); h = sc.nextInt(); if(w == 0 && h == 0) break; Game game = new Game(w, h); for(int i = 0; i < h; i++){ for(int j = ...
Main.java:31: error: class Game is public, should be declared in a file named Game.java public class Game{ ^ 1 error
s161153052
p00725
Java
import java.util.Scanner; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int w, h; int x = 0, y = 0; while(true){ w = sc.nextInt(); h = sc.nextInt(); if(w == 0 && h == 0) break; Game game = new Game(w, h); for(int i = 0; i < h; i++){ for(i...
Main.java:27: error: class Game is public, should be declared in a file named Game.java public class Game{ ^ 1 error
s612799001
p00725
Java
import java.util.Scanner; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int w, h; int x, y; while(true){ x = 0; y = 0; w = sc.nextInt(); h = sc.nextInt(); if(w == 0 && h == 0) break; Game game = new Game(w, h); for(int i = 0; i < h; i++...
Main.java:30: error: class Game is public, should be declared in a file named Game.java public class Game{ ^ 1 error
s985547649
p00725
Java
public class Game{ int answer = 11; int w, h; int[][] map; int[][] v = new int[][]{{1, 0}, {0, 1}, {-1, 0}, {0, -1}}; Game(int iw, int ih){ w = iw; h = ih; map = new int[h][w]; } void search(int x, int y, int k){ if(k >= answer) return; int p, q; for(int i = 0; i < v.length; i++){ p = x + v[i][...
Main.java:1: error: class Game is public, should be declared in a file named Game.java public class Game{ ^ Main.java:39: error: duplicate class: Game class Game{ ^ 2 errors
s147258765
p00725
Java
import java.util.LinkedList; import java.util.Queue; import java.util.Scanner; public class Main2 { static int w, h; static int[][] field; static Queue<int[][]> q; static Queue<Integer> x; static Queue<Integer> y; static Queue<Integer> floor; static int[] v1 = {1, 0, -1, 0}; static i...
Main.java:5: error: class Main2 is public, should be declared in a file named Main2.java public class Main2 { ^ 1 error
s777399288
p00725
Java
import java.util.*; public class Curling { static int startX, startY, goalX, goalY; static int[] moveX = {0,0,-1,1}; static int[] moveY = {-1,1,0,0}; static int w, h; static int maxMove = 10; static int ans; public static void finish (int move) { if (ans == -1) { ans = move; } else { ans = Math.min(...
Main.java:3: error: class Curling is public, should be declared in a file named Curling.java public class Curling { ^ 1 error
s978602716
p00725
Java
import java.util.*; public class Main { int w, h, sx, sy, ans; int[][] map; LinkedList<Integer> x, y; void loop(int p, int q, int r){ if(r>=ans || r>=10) return; for(int i=p-1;i>=0;i--){ if(map[q][i]==3){ ans = r+1; }else if(map[q][i]==1){ if(i==p-1){ break; }else{ map[q][i] = ...
Main.java:109: error: cannot find symbol new Main.solve(); ^ symbol: class solve location: class Main 1 error
s436012612
p00725
Java
import java.util.Arrays; import java.util.Scanner; public class Curling2 { Scanner in = new Scanner(System.in); int W, H; int[][] map; int vx[] = {0, -1, 1, 0}; int vy[] = {-1, 0, 0, 1}; int ans = -1; void search(int x, int y, int dir, int cnt) { for (int i = 0; i < vx.length; i++) { int nextDir = (i + 2...
Main.java:4: error: class Curling2 is public, should be declared in a file named Curling2.java public class Curling2 { ^ 1 error
s884482632
p00725
C
#include<stdio.h> int map[20][20]; int W, H; int mx(int a, int b) { if (a == -1 && b == -1) return -1; if (a == -1) return b; if (b == -1) return a; if (a < b) { if (a == 10) return -1; return a; if (b == 10) return -1; return b; } int solve(int x, int y) { int righ, lef, up, dow; int i, n; if (x == H - 1)...
main.c: In function 'mx': main.c:102:1: error: expected declaration or statement at end of input 102 | } | ^
s942440294
p00725
C
#include<algorithm> #include<cstring> #include<cstdio> #include<string> #include<queue> #include<stack> #include<iostream> #include<cmath> using namespace std; #define inf 0x3f3f3f3f const int maxn = 20 + 8; int n,m,sx,sy,x,y; int g[maxn][maxn]; int ans; int dx[] = {-1,0,1,0}; int dy[] = {0,1,0,-1}; bool is_in(int x,...
main.c:1:9: fatal error: algorithm: No such file or directory 1 | #include<algorithm> | ^~~~~~~~~~~ compilation terminated.
s858237086
p00725
C
#include<cstdio> #include<iostream> #include<algorithm> #define INF 0x3f3f3f3f using namespace std; int dx[4]={0,1,0,-1}; int dy[4]={1,0,-1,0}; int map[111][111]; int ans; int w,h; int judge(int x,int y) { if(x>=0&&x<h&&y>=0&&y<w) return 1; return 0; } void dfs(int x,int y,int step) { if(step>10) ...
main.c:1:9: fatal error: cstdio: No such file or directory 1 | #include<cstdio> | ^~~~~~~~ compilation terminated.
s425611503
p00725
C
#include <iostream> #include <algorithm> using namespace std; int w,h; int area[21][21]; int dx[4]={1,-1,0,0}; int dy[4]={0,0,1,-1}; int ans; void rec( int x, int y, int n ){ // cout << "rec : " << x << " " << y << " " << n << endl; int nn=n+1; bool f; if( n>10 ) return; for( int i,j, k=0;k<4;k++ ){ ...
main.c:1:10: fatal error: iostream: No such file or directory 1 | #include <iostream> | ^~~~~~~~~~ compilation terminated.
s844472184
p00725
C++
#include <iostream> #include <vector> using namespace std; int w, h, ans; void curling(int x, int y, vector< vector<int> > m, int sum) { if (x < 0 || y < 0 || x >= m[y].size() || y >= m.size() || sum > 10) { return; } if (m[y][x] == 3) { if (sum < ans) { ans = sum; } return; } int minx = -10, miny =...
a.cc: In function 'int main()': a.cc:115:18: error: expected '}' at end of input 115 | return 0; | ^ a.cc:94:1: note: to match this '{' 94 | { | ^
s055981110
p00725
C++
3 0 0 1 1 0 0 1 1 1 1 1 3 3 2 0 0 0 0 3 1 0 0 3 3 0 0 2 3 0 0 0 0 1 3 3 0 3 0 0 0 0 2 0 1 3 3 0 3 0 0 0 0 1 0 2 3 3 1 0 0 0 0 3 2 0 0 5 5 1 1 2 0 0 0 0 0 0 3 0 0 0 0 0 1 0 0 0 1 1 1 1 1 1
a.cc:1:1: error: expected unqualified-id before numeric constant 1 | 3 0 0 1 | ^
s756391102
p00725
C++
#include <iostream> #include <fstream> #include <algorithm> #include <vector> #include <string> #include <functional> #include <array> #include <stack> #include <queue> #include <chrono> #include <numeric> #pragma warning(disable:4996) #define REP(i,n) for(int i = 0 ; i < n ; ++i) typedef long long Int; using namespa...
a.cc: In constructor 'point::point(Int, Int, Int, int (*)[20])': a.cc:34:17: error: 'memcpy' was not declared in this scope 34 | memcpy(tile, tile_, sizeof(tile)); | ^~~~~~ a.cc:12:1: note: 'memcpy' is defined in header '<cstring>'; this is probably fixable by adding '#include <...
s718373689
p00725
C++
#include<iostream> using namespace std; int grid[40][40]; int dy[4] = {1, 0, -1, 0}; int dx[4] = {0,-1, 0, 1}; int w, h; int dfs(int x, int y, int depth){ if(depth >= 10)return 1e9; int res = 1e9; bool flag = false; for (int i = 0; i < 4; i++) { int nx = x, ny = y; if(grid[ny + dy[i]][nx + dx[i]] ...
a.cc: In function 'int main(int, char**)': a.cc:38:5: error: 'memset' was not declared in this scope 38 | memset(grid, 0, sizeof(grid)); | ^~~~~~ a.cc:2:1: note: 'memset' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>' 1 | #include<iostream> +++ |+#includ...
s891853034
p00725
C++
#include <iostream> #define MAX_W 20 #define MAX_H 20 int w, h; int sx, sy; int ans; char field[MAX_W][MAX_H]; const int dx[] = {1, 0, -1, 0}, dy[] = {0, 1, 0, -1}; bool dfs(int x, int y, int count); int main(){ while(true){ std::cin >> w >>h; for(int i = 0; i < h; ++i){ for(int j = 0; j < w; ++j){ std::cin >> fie...
a.cc: In function 'bool dfs(int, int, int)': a.cc:59:2: error: expected '}' at end of input 59 | } | ^ a.cc:34:34: note: to match this '{' 34 | bool dfs(int x, int y, int count){ | ^ a.cc:59:2: warning: control reaches end of non-void function [-Wreturn-type] 59 | ...
s738614587
p00725
C++
#include <cmath> #include <cstdio> #include <vector> #include <iostream> #include <algorithm> #define MAX 20 #define FLOOR 0 #define BLOCK 1 #define START 2 #define GOAL 3 #define OUT 4 #define UP 0 #define DOWN 1 #define RIGHT 2 #define LEFT 3 #define VARIATION 4 #define INFTY 100//>MAX using namespace std; int ...
a.cc: In function 'int dfs(int, int, int, int)': a.cc:47:47: error: 'cnt' was not declared in this scope; did you mean 'int'? 47 | if(grid[row][column+1]!=BLOCK)cnt = min(cnt,dfs(i,j,UP,0)); | ^~~ | ...
s982939640
p00725
C++
#include <iostream> using namespace std; int w, h; int f[21][21]; int ans; int dx[] = { 0, 0, -1, 1}; int dy[] = {-1, 1, 0, 0}; void rec(int n, int x, int y) { if (n >= ans) { return; } for (int i=0; i<4; i++) { int mx=x, my=y; mx += dx[i]; my += dy[i]; if (mx < 0 || mx >= w) { continue; } if ...
a.cc: In function 'int main()': a.cc:60:12: error: expected '}' at end of input 60 | return 0; | ^ a.cc:42:12: note: to match this '{' 42 | int main() { | ^
s874978763
p00725
C++
#include<iostream> #include<algorithm> using namespace std; int map[30][30]; int sx, sy, gx, gy, h, w; int dfs(int x, int y, int n) { if (n > 11)return 11; int ret = 11, p; p = x - 1; if (p > 0 && map[p][y] != 1) { while (p > 0) { if (map[p - 1][y] == 1) { map[p - 1][y] = 0; ret = min(ret, dfs(p, y, n ...
a.cc: In function 'int main()': a.cc:61:17: error: 'memset' was not declared in this scope 61 | memset(map, 0, sizeof(map)); | ^~~~~~ a.cc:3:1: note: 'memset' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>' 2 | #include<algorithm> ...
s013948606
p00725
C++
#include<iostream> #include<algorithm> using namespace std; int map[30][30]; int sx, sy, gx, gy, h, w; int dfs(int x, int y, int n) { if (n > 11)return 11; int ret = 11, p; p = x - 1; if (p > 0 && map[p][y] != 1) { while (p > 0) { if (map[p - 1][y] == 1) { map[p - 1][y] = 0; ret = min(ret, dfs(p, y, n ...
a.cc: In function 'int main()': a.cc:61:17: error: 'memset' was not declared in this scope 61 | memset(map, 0, sizeof(map)); | ^~~~~~ a.cc:3:1: note: 'memset' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>' 2 | #include<algorithm> ...
s587006079
p00725
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
s838415094
p00725
C++
#include <string.h> int gx, gy, h, w; int cost[20][20]; const int dx[4] = {1,0,-1,0}, dy[4] = {0,1,0,-1}; void solve(int x,int y, int field[20][20]){ static int count = 0; int i, j, flag; if(cost[y][x] > count || cost[y][x] == -1){ cost[y][x] = count; if(field[y][x] == 3) return; } if(count < 10){ for(i...
a.cc: In function 'int main()': a.cc:44:17: error: 'scanf' was not declared in this scope 44 | scanf("%d%d",&w,&h); | ^~~~~ a.cc:63:17: error: 'printf' was not declared in this scope 63 | printf("%d\n",cost[gy][gx]); | ^~~~~~ a.cc:2:1: no...
s640445884
p00725
C++
// cleartime: 4時間くらい? #include <iostream> #include <string> #include <vector> #define REP(i, n) for ( int i = 0; i < n; i++ ) using namespace std; typedef vector< vector<int> > field; int w, h; field f, closed; int mx[] = {0, 0, 1, -1}, my[] = {1, -1, 0, 0}; int in_range(int x, int y, int w, int h) { retur...
a.cc: In function 'int bt(int, int, int)': a.cc:22:15: error: 'INT_MAX' was not declared in this scope 22 | int res = INT_MAX, tmp; | ^~~~~~~ a.cc:5:1: note: 'INT_MAX' is defined in header '<climits>'; this is probably fixable by adding '#include <climits>' 4 | #include <vector> +++ |+#...
s750574444
p00725
C++
// BT法 #include <iostream> #include <algorithm> #include <vector> #include <string> #include <cmath> #define N 20 using namespace std; int h, w, num; void print(vector<vector <char> > map) { for (int i = 0; i < map.size(); i++) { for (int j = 0; j < map[i].size(); j++) { cout << map[i][j] << flush; cout << ...
a.cc: In function 'int rec(std::vector<std::vector<char> >*, int, int, int, int, int)': a.cc:39:31: error: no match for 'operator==' (operand types are '__gnu_cxx::__alloc_traits<std::allocator<std::vector<char> >, std::vector<char> >::value_type' {aka 'std::vector<char>'} and 'char') 39 | if (map[y]...
s183888042
p00725
C++
if(board[y+dy[i]][x+dx[i]] ==1){ flag[i] = 1; } } if(k <=10){ //左方向 if(flag[2]==0){ for(int j = x;j >0;j--){ if(board[y][j] ==3){ step = min(step,k); break; }else if(board[y][j-1] ==1){ board[y][j-1] =0; dfs(j,y,k+1); board[y][j-1] = 1; break; } } } //右方...
a.cc:1:5: error: expected unqualified-id before 'if' 1 | if(board[y+dy[i]][x+dx[i]] ==1){ | ^~ a.cc:4:3: error: expected declaration before '}' token 4 | } | ^ a.cc:5:3: error: expected unqualified-id before 'if' 5 | if(k <=10){ | ^~ a.cc:63:5: error: expected unqualified-i...
s772479776
p00726
C++
#include <iostream> #include <cstdio> #include <vector> #include <queue> #include <cmath> #include <algorithm> #include <functional> using namespace std; #define rep(i,n) for(int i=0;i<(n);++i) #define rep1(i,n) for(int i=1;i<=(n);++i) #define all(c) (c).begin(),(c).end() #define pb push_back #define fs first #define s...
a.cc: In function 'std::string expr(State&)': a.cc:35:47: error: reference to 'ref' is ambiguous 35 | if(ret.size()>ref) break; | ^~~ In file included from /usr/include/c++/14/string:52, from /usr/include/c++/14/bits...
s620359896
p00726
C++
a
a.cc:1:1: error: 'a' does not name a type 1 | a | ^
s573221300
p00726
C++
#include "bits/stdc++.h" #pragma warning(disable:4996) using namespace std; char ans; int a; string st; long long int getnum() { long long int anum=0; while (1) { if (isdigit(st[a])) { anum *= 10; anum += st[a]-'0'; a++; } else { return anum; } } } string getst() { string ast; while (1) { i...
a.cc: In function 'std::string getans(long long int, int)': a.cc:47:52: error: no matching function for call to 'min(long int, long long int)' 47 | plusst= (getans(min(1000000000000,repeatnum*num), targetnum - nst.size()*repeatnum)); | ...
s718957886
p00726
C++
#include "bits/stdc++.h" #pragma warning(disable:4996) using namespace std; char ans; int a; string st; long long int getnum() { long long int anum=0; while (1) { if (isdigit(st[a])) { anum *= 10; anum += st[a]-'0'; a++; } else { return anum; } } } string getst() { string ast; while (1) { i...
a.cc: In function 'std::string getans(long long int, int)': a.cc:47:51: error: no matching function for call to 'min(long int, long long int)' 47 | plusst= getans(min(1000000000000,repeatnum*num), targetnum - nst.size()*repeatnum); | ...
s689399514
p00726
C++
#include <iostream> #include <algorithm> #include <cmath> #include <vector> #include <complex> #include <queue> #include <deque> #include <set> #include <map> #include <unordered_set> #include <unordered_map> #include <iomanip> #include <assert.h> #include <array> #include <cstdio> #include <cstring> #include <random> ...
a.cc:31:9: error: 'shared_ptr' does not name a type 31 | typedef shared_ptr<struct tree> tree_ptr; | ^~~~~~~~~~ a.cc:35:10: error: 'tree_ptr' was not declared in this scope 35 | vector<tree_ptr> children; | ^~~~~~~~ a.cc:35:18: error: template argument 1 is invalid 35 | vector<...
s516519127
p00726
C++
#include <iostream> #include <algorithm> #include <cmath> #include <vector> #include <complex> #include <queue> #include <deque> #include <set> #include <map> #include <unordered_set> #include <unordered_map> #include <iomanip> #include <assert.h> #include <array> #include <cstdio> #include <cstring> #include <random> ...
a.cc:31:9: error: 'shared_ptr' does not name a type 31 | typedef shared_ptr<struct tree> tree_ptr; | ^~~~~~~~~~ a.cc:35:10: error: 'tree_ptr' was not declared in this scope 35 | vector<tree_ptr> children; | ^~~~~~~~ a.cc:35:18: error: template argument 1 is invalid 35 | vector<...
s010811031
p00726
C++
#include <iostream> #include <algorithm> #include <cmath> #include <vector> #include <complex> #include <queue> #include <deque> #include <set> #include <map> #include <unordered_set> #include <unordered_map> #include <iomanip> #include <assert.h> #include <array> #include <cstdio> #include <cstring> #include <random> ...
a.cc:31:9: error: 'shared_ptr' does not name a type 31 | typedef shared_ptr<struct tree> tree_ptr; | ^~~~~~~~~~ a.cc:35:10: error: 'tree_ptr' was not declared in this scope 35 | vector<tree_ptr> children; | ^~~~~~~~ a.cc:35:18: error: template argument 1 is invalid 35 | vector<...
s023137594
p00726
C++
#include <iostream> #include <algorithm> #include <cmath> #include <vector> #include <complex> #include <queue> #include <deque> #include <set> #include <map> #include <unordered_set> #include <unordered_map> #include <iomanip> #include <assert.h> #include <array> #include <cstdio> #include <cstring> #include <random> ...
a.cc:31:9: error: 'shared_ptr' does not name a type 31 | typedef shared_ptr<struct tree> tree_ptr; | ^~~~~~~~~~ a.cc:35:10: error: 'tree_ptr' was not declared in this scope 35 | vector<tree_ptr> children; | ^~~~~~~~ a.cc:35:18: error: template argument 1 is invalid 35 | vector<...
s092698260
p00726
C++
#include <iostream> #include <string> #include <vector> #include <algorithm> #include <cassert> using namespace std; string s; int index; int cur; bool end; string rec() { string res; while(cur < s.size() && !end) { while('A' <= s[cur] && s[cur] <= 'Z') { res += s[cur]; cur++...
a.cc:9:5: warning: built-in function 'index' declared as non-function [-Wbuiltin-declaration-mismatch] 9 | int index; | ^~~~~ a.cc: In function 'std::string rec()': a.cc:18:30: error: reference to 'end' is ambiguous 18 | while(cur < s.size() && !end) { | ^~~ In fi...
s627026851
p00726
C++
1>------ ?????????????§?: ???????????§??????: 1145, ?§????: Debug Win32 ------ 1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppBuild.targets(364,5): warning MSB8004: Output Directory does not end with a trailing slash. This build instance will add the slash as it is required to allow proper evalu...
a.cc:1:23: error: extended character § is not valid in an identifier 1 | 1>------ ?????????????§?: ???????????§??????: 1145, ?§????: Debug Win32 ------ | ^ a.cc:1:38: error: extended character § is not valid in an identifier 1 | 1>------ ?????????????§?: ???????????§??????: 1145, ?§?...
s464226476
p00726
C++
string in; int p; void next(int& p){ ++p; while(p<SZ(in) && in[p]!=')'){ if(in[p]=='(')next(p); else ++p; } ++p; } ll get(int po,int re){ ll le=0; if(in[po]!='(')return 1; ++po; while(po<SZ(in) && in[po]!=')'){ if(isdigit(in[po])){ ll t=0; while(isdigit(in[po]))t=t*10+in[po++]-...
a.cc:1:1: error: 'string' does not name a type 1 | string in; | ^~~~~~ a.cc: In function 'void next(int&)': a.cc:6:14: error: 'in' was not declared in this scope; did you mean 'int'? 6 | while(p<SZ(in) && in[p]!=')'){ | ^~ | int a.cc:6:11: error: 'SZ' was not declar...
s583415214
p00726
C++
#include<iostream> #include<string> #include<cstdlib> using namespace std; int pos,n;#include<iostream> #include<string> #include<cstdlib> using namespace std; int pos,n; string s,t,p; string f(); string expr(){ string a=f(); while(isdigit(s[pos])||isalpha(s[pos])){ if(a.size()>n) break; a+=f(); } return a; ...
a.cc:5:11: error: stray '#' in program 5 | int pos,n;#include<iostream> | ^ a.cc:5:12: error: 'include' does not name a type 5 | int pos,n;#include<iostream> | ^~~~~~~ a.cc:9:5: error: redefinition of 'int pos' 9 | int pos,n; | ^~~ a.cc:5:5: note: 'int pos' previou...
s887588833
p00726
C++
#include<iostream> #include<sstream> #include<cmath> using namespace std; class Parsing { private: string parse; int pos; int size; int x; public: Parsing(string parse,int x):parse(parse),pos(0),x(x),size(0){} int StringToInt(string v) { int ret = 0; for(int i=0;i<v.size();i++) ret += (v[...
a.cc: In function 'int main()': a.cc:107:26: error: expected ';' before 'else' 107 | cout << 0 << endl | ^ | ; 108 | else | ~~~~
s455883306
p00726
C++
#include <algorithm> #include <iostream> #include <set> #include <string> #include <vector> #define rep(i,a) for(int i = 0;i < a; i++) using namespace std; struct expr; struct term { bool flg; string str; int n; expr *inner; term(bool flg, string str, int n, expr *inner); int length(); char charAt(in...
a.cc: In function 'std::ostream& operator<<(std::ostream&, term)': a.cc:30:12: error: invalid use of incomplete type 'struct expr' 30 | out << *t.inner << ' ' << t.n << " times" << endl; | ^~~~~~~~ a.cc:11:8: note: forward declaration of 'struct expr' 11 | struct expr; | ^~~~ a.c...
s797578505
p00727
C++
#include <iostream> #include <vector> #include <algorithm> #include <cstdio> extern "C" { #include "quadmath.h" } using namespace std; #define rep(i, n) for (int i = 0; i < int(n); ++i) typedef __float128 D; const D PI = acosq(-1); int n; D x[100], y[100]; D solve(D theta) { vector<D> xx; rep (i, n) xx.push_b...
/usr/bin/ld: /tmp/cc5tPzzA.o: in function `solve(__float128)': a.cc:(.text+0x56): undefined reference to `sinq' /usr/bin/ld: a.cc:(.text+0x9a): undefined reference to `cosq' /usr/bin/ld: /tmp/cc5tPzzA.o: in function `main': a.cc:(.text+0x2d2): undefined reference to `strtoflt128' /usr/bin/ld: a.cc:(.text+0x305): undefi...
s976445091
p00727
C++
#include <iostream> #include <vector> #include <algorithm> #include <cstdio> extern "C" { #include "quadmath.h" } using namespace std; #define rep(i, n) for (int i = 0; i < int(n); ++i) typedef __float128 D; const D PI = acosq(-1); int n; D x[100], y[100]; D solve(D theta) { vector<D> xx; rep (i, n) xx....
/usr/bin/ld: /tmp/ccJSjzox.o: in function `solve(__float128)': a.cc:(.text+0x56): undefined reference to `sinq' /usr/bin/ld: a.cc:(.text+0x9a): undefined reference to `cosq' /usr/bin/ld: /tmp/ccJSjzox.o: in function `main': a.cc:(.text+0x2d2): undefined reference to `strtoflt128' /usr/bin/ld: a.cc:(.text+0x305): undefi...
s665478211
p00728
Java
import java.util.*; class Main{ public static void main(String args[]){ Scanner sc = new Scanner(System.in); while(true){ int a = sc.nextInt(); if(a == 0){break;} int total = 0; int syo = 1000; int dai = 0; for(int n = 0; n < a; n++){ int tmp = sc.nextInt(); total = total + tmp; if(tmp <...
Main.java:21: error: cannot find symbol System.out.println(heikin); ^ symbol: variable heikin location: class Main 1 error
s919035455
p00728
Java
import java.util.*; /** * ICPCScoreTotalizerSoftware */ 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; List<Integer> list = new ArrayLis...
Main.java:6: error: illegal character: '\u3000' public class?Main { ^ 1 error
s692797959
p00728
Java
import java; public class Main{ public static void main(String[] args){ int n; Scanner sc =new Scanner(System.in); n = sc.nextInt(); if(n==0){ exit(1); } int[] s; int i=0; int max=0; int min=1000; while(i<n){ s[i]=sc.nextInt(); if(s[i]>max){ ...
Main.java:1: error: '.' expected import java; ^ 1 error
s179917035
p00728
Java
import java.util; public class Main{ public static void main(String[] args){ int n; Scanner sc =new Scanner(System.in); n = sc.nextInt(); if(n==0){ exit(1); } int[] s; int i=0; int max=0; int min=1000; while(i<n){ s[i]=sc.nextInt(); if(s[i]>max){ ...
Main.java:1: error: cannot find symbol import java.util; ^ symbol: class util location: package java Main.java:5: error: cannot find symbol Scanner sc =new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:5: error: cannot find symbol Scanner sc =new Scanner(...
s352593968
p00728
Java
import java.util; public class Main{ public static void main(String[] args){ int n; Scanner sc =new Scanner(System.in); n = sc.nextInt(); if(n==0){ exit(1); } int[] s; int i=0; int max=0; int min=1000; while(i<n){ s[i]=sc.nextInt(); if(s[i]>max){ ...
Main.java:1: error: cannot find symbol import java.util; ^ symbol: class util location: package java Main.java:5: error: cannot find symbol Scanner sc =new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:5: error: cannot find symbol Scanner sc =new Scanner(...
s261503351
p00728
Java
import java.util.*; public class Main{ public static void main(String[] args){ int n; Scanner sc =new Scanner(System.in); n = sc.nextInt(); if(n==0){ exit(1); } int[] s; int i=0; int max=0; int min=1000; while(i<n){ s[i]=sc.nextInt(); if(s[i]>max){ ...
Main.java:8: error: cannot find symbol exit(1); ^ symbol: method exit(int) location: class Main Main.java:42: error: cannot find symbol SyStem.out.println(agerage); ^ symbol: variable agerage location: class Main Main.java:42: error: package SyStem does not exist ...
s964394253
p00728
Java
import java.util.*; public class Main{ public static void main(String[] args){ int n; Scanner sc =new Scanner(System.in); n = sc.nextInt(); if(n==0){ System.exit(0); } int[] s; int i=0; int max=0; int min=1000; while(i<n){ s[i]=sc.nextInt(); if(s[i]>m...
Main.java:42: error: cannot find symbol SyStem.out.println(agerage); ^ symbol: variable agerage location: class Main Main.java:42: error: package SyStem does not exist SyStem.out.println(agerage); ^ 2 errors
s382849756
p00728
Java
import java.util.*; public class Main{ public static void main(String[] args){ while(ture){ int n; Scanner sc =new Scanner(System.in); n = sc.nextInt(); if(n==0){ System.exit(0); } int[] s; int i=0; int max=0; int min=1000; ...
Main.java:4: error: cannot find symbol while(ture){ ^ symbol: variable ture location: class Main Main.java:43: error: package SyStem does not exist SyStem.out.println(average); ^ 2 errors
s351112581
p00728
Java
import java.util.*; public class Main{ public static void main(String[] args){ while(true){ int n; Scanner sc =new Scanner(System.in); n = sc.nextInt(); if(n==0){ System.exit(0); } int[] s; int i=0; int max=0; int min=1000; ...
Main.java:43: error: package SyStem does not exist SyStem.out.println(average); ^ 1 error
s688300477
p00728
Java
import java.util.*; public class Main{ public static void main(String[] args){ while(true){ int n; Scanner sc =new Scanner(System.in); n = sc.nextInt(); System.out.println(n); if(n==0){ System.exit(0); } int[] s; int i=0; int m...
Main.java:44: error: package SyStem does not exist SyStem.out.println(average); ^ 1 error
s962277809
p00728
Java
import java.util.*; public class Main{ public static void main(String[] args){ while(true){ int n; Scanner sc =new Scanner(System.in); n = sc.nextInt(); System.out.println(n); if(n==0){ System.exit(0); } int[] s; int i=0; int m...
Main.java:17: error: variable s might not have been initialized s[i]=sc.nextInt(); ^ Main.java:31: error: variable s might not have been initialized if(s[i]!=min && s[i]!=max){ ^ 2 errors
s705307968
p00728
Java
import java.util.*; public class Main{ public static void main(String[] args){ while(true){ int n; Scanner sc =new Scanner(System.in); n = sc.nextInt(); if(n==0){ System.exit(0); } int[] s; int i=0; ...
Main.java:22: error: cannot find symbol sum+=s[i]; ^ symbol: variable sum location: class Main Main.java:24: error: cannot find symbol SyStem.out.println(sum/(n-2)); ^ symbol: variable sum location: class Main Main.java:24: error: pa...
s444081490
p00728
Java
import java.util.*; public class Main{ public static void main(String[] args){ while(true){ int n; Scanner sc =new Scanner(System.in); n = sc.nextInt(); if(n==0){ System.exit(0); } int[] s; int i=0; ...
Main.java:23: error: cannot find symbol sum+=s[i]; ^ symbol: variable sum location: class Main Main.java:26: error: cannot find symbol SyStem.out.println(sum/(n-2)); ^ symbol: variable sum location: class Main Main.java:26: error: pa...
s007549279
p00728
Java
import java.util.*; public class Main{ public static void main(String[] args){ while(true){ int n; Scanner sc =new Scanner(System.in); n = sc.nextInt(); if(n==0){ System.exit(0); } int[] s; int i=0; ...
Main.java:27: error: package SyStem does not exist SyStem.out.println(sum/(n-2)); ^ 1 error
s105358687
p00728
Java
import java.util.Scanner; public class Main{ public static void main(String[] args){ while(true){ int n; Scanner sc =new Scanner(System.in); n = sc.nextInt(); if(n==0){ System.exit(0); } int[] s; int i=0; ...
Main.java:18: error: cannot find symbol Arrays.sort(s); ^ symbol: variable Arrays location: class Main 1 error
s427927493
p00728
Java
import java.util.Arrays; import java.util.Scanner; public class Main { /** * @param args */ Scanner sc = new Scanner(System.in); public static void main(String[] args) { // TODO Auto-generated method stub new Main().run(); } void run() { while (true) { int n = sc.nextInt(); if (n == 0) br...
Main.java:37: error: class, interface, enum, or record expected import java.util.Arrays; ^ Main.java:38: error: class, interface, enum, or record expected import java.util.Scanner; ^ 2 errors
s631837096
p00728
Java
import java.util.Scanner; public class Sample { public static void main(String[] args) { int[] x = new int [256]; int[] y = new int [256]; Scanner stdIn = new Scanner(System.in); int min,max,k=0,h=0; while(true) { int a = stdIn.nextInt(); if(a==0) { break; } else { for(int i=0;i...
Main.java:4: error: class Sample is public, should be declared in a file named Sample.java public class Sample { ^ 1 error
s348247303
p00728
Java
import java.util.Scanner; public class Main{ public static void main(String[] args){ Scanner stdIn = new Scanner(System.in); int n=0; int count = 0; while(count<20){ n=stdIn.nextInt(); if(n>=3&&n<=100) break; count++; } int[] s=new int[n]; for(int i=0;i<s.length;i++){ while(count<20){ s[...
Main.java:47: error: reached end of file while parsing } ^ 1 error
s957930592
p00728
Java
import java.util.Scanner; public class Main{ public static void main(String[] args){ Scanner stdIn = new Scanner(System.in); int n=0; int count = 0; while(count<20){ n=stdIn.nextInt(); if(n>=3&&n<=100) break; count++; } int[] s=new int[n]; for(int i=0;i<s.length;i++){ while(count<20){ s[...
Main.java:47: error: reached end of file while parsing } ^ 1 error
s022236444
p00728
Java
import java.util.Scanner; public class HelloWorld{ public static void main(String[] args){ Scanner stdIn = new Scanner(System.in); int n=0; int count = 0; while(count<20){ n=stdIn.nextInt(); if(n>=3&&n<=100) break; count++; } int[] s=new int[n]; for(int i=0;i<s.length;i++){ while(count<20){ ...
Main.java:3: error: class HelloWorld is public, should be declared in a file named HelloWorld.java public class HelloWorld{ ^ 1 error
s664048424
p00728
Java
public class Main{ public static void main(String[] args) { Scanner sc = new Scanner(System.in); int N; int max, min; int score; int x; while(true){ score=0; max=0; min=1000; x=sc.nextInt(); if(x==0){ break; }else{ N=x; } for(int i=0;i<N;i++){ x=sc.nextInt(); ...
Main.java:4: error: cannot find symbol Scanner sc = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:4: error: cannot find symbol Scanner sc = new Scanner(System.in); ^ symbol: class Scanner location: class Main 2 errors
s159023308
p00728
Java
import java.io.*; public class Main{ public static void main(String[] args){ BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); String line; int i; int n; //int[] scores; int max; int min; int ave; int score; try{ while(null != (line=reader.readLine())){ n = Intege...
Main.java:20: error: cannot find symbol scores = new int[n]; ^ symbol: variable scores location: class Main 1 error
s982960945
p00728
Java
import java.util.Scanner; public class Main2 { public static void main(String[] args) { int n, w, sum = 0; int min = 10000; int max = -100; Scanner sc = new Scanner(System.in); w = sc.nextInt(); for (int i = 0; i < w; i++) { n = sc.nextInt(); sum += n; if (n > max) max = n; else if (n < ...
Main.java:4: error: class Main2 is public, should be declared in a file named Main2.java public class Main2 { ^ 1 error
s780597679
p00728
Java
import java.util.Scanner; public class Main2 { public static void main(String[] args) { int n, w, sum = 0; int min = 10000; int max = -100; Scanner sc = new Scanner(System.in); w = sc.nextInt(); for (int i = 0; i < w; i++) { n = sc.nextInt(); sum += n; if (n > max) max = n; else if (n < ...
Main.java:4: error: class Main2 is public, should be declared in a file named Main2.java public class Main2 { ^ 1 error
s431100264
p00728
Java
import java.util.Scanner; public class ICPCScoreTotalizerSoftware { public static void main(String[] args){ Scanner sc = new Scanner(System.in); int max; int min; int sum = 0; int ave = 0; int n = 0; int score; while(true) { n = sc.nextInt(); if(n == 0){ break; } score = sc.nextInt(); max =...
Main.java:2: error: class ICPCScoreTotalizerSoftware is public, should be declared in a file named ICPCScoreTotalizerSoftware.java public class ICPCScoreTotalizerSoftware { ^ 1 error
s984231896
p00728
Java
import java.util.Scanner; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int[] sum = new int[10000]; int small=0; int max=0; int wa= 0; for(int i=0;i<=n-1;i++){ int k = sc.nextInt(); sum[i] = k; wa = wa + sum[i]; if(i...
Main.java:41: error: ')' or ',' expected System.out.println(Math.floor(ave); ^ 1 error
s920149931
p00728
Java
iimport java.util.Scanner; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int[] sum = new int[10000]; int small=0; int max=0; int wa= 0; for(int i=0;i<=n-1;i++){ int k = sc.nextInt(); sum[i] = k; wa = wa + sum[i]; if(...
Main.java:1: error: class, interface, enum, or record expected iimport java.util.Scanner; ^ 1 error
s605921244
p00728
Java
package ICPC_Score_Totalizer_Software; import java.io.BufferedReader; import java.io.InputStreamReader; public class Judge { static int number; //?????£??????????????° int score; //?????? public static void setNumberOfJudge() { //?????£??????????????°????????? try{ BufferedReader in = new BufferedReade...
Main.java:6: error: class Judge is public, should be declared in a file named Judge.java public class Judge { ^ Main.java:34: error: class Exec is public, should be declared in a file named Exec.java public class Exec { ^ 2 errors
s779371350
p00728
Java
package ICPC_Score_Totalizer_Software; import java.io.BufferedReader; import java.io.InputStreamReader; public class Judge { static int number; //?????£??????????????° int score; //?????? public static void setNumberOfJudge() { //?????£??????????????°????????? try{ BufferedReader in = new BufferedReade...
Main.java:6: error: class Judge is public, should be declared in a file named Judge.java public class Judge { ^ 1 error
s128736511
p00728
Java
package ICPC_Score_Totalizer_Software; import java.io.BufferedReader; import java.io.InputStreamReader; public class Judge { static int number; //?????£??????????????° int score; //?????? public static void setNumberOfJudge() { //?????£??????????????°????????? try{ BufferedReader in = new BufferedReade...
Main.java:6: error: class Judge is public, should be declared in a file named Judge.java public class Judge { ^ 1 error
s301754748
p00728
Java
import java.io.BufferedReader; import java.io.InputStreamReader; public class Judge { static int number; //?????£??????????????° int score; //?????? public static void setNumberOfJudge() { //?????£??????????????°????????? try{ BufferedReader in = new BufferedReader(new InputStreamReader(System.in)); ...
Main.java:63: error: illegal start of expression sum += j[k].score;javascript:void(0) ^ Main.java:63: error: ';' expected sum += j[k].score;javascript:void(0) ^ 2 errors
s046099228
p00728
Java
import java.io.*; public class Exec { public static void main(String[] args) { while(true){ try{ BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); int number = Integer.parseInt(reader.readLine()); if(number == 0){System.exit(0);} int score[]; score = new int[numbe...
Main.java:3: error: class Exec is public, should be declared in a file named Exec.java public class Exec { ^ 1 error
s886084563
p00728
Java
public class Main { public static void main(String[] args) { while(true){ try{ BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); int number = Integer.parseInt(reader.readLine()); if(number < 3){return;} int score[]; score = new int[number]; int i; for(i=0;i...
Main.java:6: error: cannot find symbol BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); ^ symbol: class BufferedReader location: class Main Main.java:6: error: cannot find symbol BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); ...
s092434766
p00728
Java
package AOJ1147; import java.io.*; public class Main { public static void main(String[] args) { while(true){ try{ BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); int number = Integer.parseInt(reader.readLine()); if(number < 3){break;} int score[]; score = new in...
Main.java:47: error: incompatible types: unexpected return value return 0; ^ 1 error
s234169967
p00728
Java
package AOJ1147; import java.io.*; public class Main { public static void main(String[] args) { while(true){ try{ BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); int number = Integer.parseInt(reader.readLine()); if(number < 3){break;} int score[]; score = new in...
Main.java:47: error: incompatible types: unexpected return value return 0; ^ 1 error
s742256591
p00728
Java
package lesson1; import java.util.Scanner; public class Class { public static void main(String[] args) { Scanner sc = new Scanner(System.in); while (true) { int judge = sc.nextInt(); if (judge == 0) break; int[] score = new int[judge]; int max = 0, min = 1000, sum = 0; for (int i = 0; i < j...
Main.java:5: error: class Class is public, should be declared in a file named Class.java public class Class { ^ 1 error
s033743770
p00728
Java
import java.util.Scanner; public class Class { public static void main(String[] args) { Scanner sc = new Scanner(System.in); while (true) { int judge = sc.nextInt(); if (judge == 0) break; int[] score = new int[judge]; int max = 0, min = 1000, sum = 0; for (int i = 0; i < judge; i++) { s...
Main.java:3: error: class Class is public, should be declared in a file named Class.java public class Class { ^ 1 error
s614891192
p00728
Java
import java.util.Scanner; public class Class { public static void main(String[] args) { Scanner sc = new Scanner(System.in); while (true) { int judge = sc.nextInt(); if (judge == 0) break; int[] score = new int[judge]; int max = 0, min = 1000, sum = 0; for (int i = 0; i < judge; i++) { s...
Main.java:3: error: class Class is public, should be declared in a file named Class.java public class Class { ^ 1 error
s309130101
p00728
Java
import java.util.Scanner; public class MAIN { public static void main(String[] args) { // !!initialize!! Scanner sc = new Scanner(System.in); // !!initialize!! for (int count = 0; -1 < count; count++) { // ??????????????°?????\?????? // val:??\??????????????°????????? int val = sc.nextInt(); // ...
Main.java:3: error: class MAIN is public, should be declared in a file named MAIN.java public class MAIN { ^ 1 error