submission_id
stringlengths
10
10
problem_id
stringlengths
6
6
language
stringclasses
3 values
code
stringlengths
1
522k
compiler_output
stringlengths
43
10.2k
s619457609
p00200
C
// ConsoleApplication3.cpp : ??????????????? ??¢????????±????????§????????¨????????? ????????????????????????????????? // #include "stdafx.h" #include <stdio.h> #define Limit 10000000 int MinCost(int, int); int MinTime(int, int); typedef struct { int time; int cost; } LINE; int n, m, times[101], costs[101]; LINE...
main.c:4:10: fatal error: stdafx.h: No such file or directory 4 | #include "stdafx.h" | ^~~~~~~~~~ compilation terminated.
s234969219
p00200
C
// ConsoleApplication3.cpp : ??????????????? ??¢????????±????????§????????¨????????? ????????????????????????????????? // #include "stdafx.h" #include <stdio.h> #define Limit 10000000 int MinCost(int, int); int MinTime(int, int); typedef struct { int time; int cost; } LINE; int n, m, times[101], costs[101]; LINE...
main.c:4:10: fatal error: stdafx.h: No such file or directory 4 | #include "stdafx.h" | ^~~~~~~~~~ compilation terminated.
s900610443
p00200
C
#include <stdio.h> int line[100][100][2] = {0}; int m;//number of station int minvalue(int p, int q, int r); int main(void) { int i; int n;//number of line int a; int b; int cost; int time; int k;//number of request int p;//station1 int q;//station2 int r;//cost or time while(1) { for(i=0;i<100;i++) ...
main.c: In function 'main': main.c:26:29: error: 'j' undeclared (first use in this function) 26 | for(j=0;j<100;j++) | ^ main.c:26:29: note: each undeclared identifier is reported only once for each function it appears in
s122678108
p00200
C
// v ????????±??????????????§cost?????´??°??§?????????????????? for ( u = 1 ; u < m + 1 ; u++ ) { cost[ u ] = min( cost[ u ], cost[ v ] + route[ v ][ u ] ); } } } int main( void ) { int i, j, k; int result; while ( scanf( "%d %d", &n, &m ), n != 0 ) { for ( i = 0 ; i < MAX_STATION ; i++ ) { for (j ...
main.c:2:17: error: expected identifier or '(' before 'for' 2 | for ( u = 1 ; u < m + 1 ; u++ ) { | ^~~ main.c:2:33: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token 2 | for ( u = 1 ; u < m + 1 ; u++ ) { | ...
s368923299
p00200
C
/* ?????????????????? ????????\?????????????¬???¨??? ??? ??? ???????????´??????????´\????????????????????????????????§????????????????¨?????????????????????????????????? ????????????????????§??????????????????????????????????????????????????§???????????????????????????????????? ??????????????\????????????????????????...
main.c: In function 'dijkstra': main.c:71:23: error: 'INF' undeclared (first use in this function) 71 | min = INF; | ^~~ main.c:71:23: note: each undeclared identifier is reported only once for each function it appears in
s855127092
p00200
C
/* ?????????????????? ????????\?????????????¬???¨??? ??? ??? ???????????´??????????´\????????????????????????????????§????????????????¨?????????????????????????????????? ????????????????????§??????????????????????????????????????????????????§???????????????????????????????????? ??????????????\????????????????????????...
main.c: In function 'main': main.c:101:69: error: 'MAX' undeclared (first use in this function) 101 | croute[ i ][ j ] = ( i == j ) ? 0 : MAX; | ^~~ main.c:101:69: note: each undeclared identifier is reported onl...
s182975170
p00200
C
#include<iostream> #include<map> #include<queue> using namespace std; #define P pair<int, int> #define MAX_M 300 #define MAX_N 100 int n, m, k, trainMap[MAX_N + 1][MAX_N + 1][2]; void resetTrainMap(); void inputTrainMap(int n); int check(int p, int q, int r); int main(){ while(cin >>n >>m){ if(n == 0 &&...
main.c:1:9: fatal error: iostream: No such file or directory 1 | #include<iostream> | ^~~~~~~~~~ compilation terminated.
s368880598
p00200
C
#include<iostream> #include<vector> #include<map> #include<queue> #include<functional> #define pb push_back #define MAX_V 2000//場合によって変更 #define INF 1000000000 using namespace std; typedef pair<int,int> P;//firstは最短距離,secondは頂点番号 struct edge{ int to,cost; }; int V;//頂点の数 vector<vector<edge> > G; //----------- vector<v...
main.c:1:9: fatal error: iostream: No such file or directory 1 | #include<iostream> | ^~~~~~~~~~ compilation terminated.
s761327813
p00200
C
#include<stdio.h> int min(int a,int b){ if(a > b)return b; return a; } int main(){ int i,j,l,n,m,x,y,cost,time,p,q,r,k,matrix1[300][300],matrix2[300][300]; while(1){ scanf("%d %d",&n,&m); if(n+m == 0)break; for(i=0;i<m+2;i++){ for(j=0;j<m+2;j++){ matrix2[i][j] 100000000; matrix1[i][j...
main.c: In function 'main': main.c:17:22: error: expected ';' before numeric constant 17 | matrix2[i][j] 100000000; | ^~~~~~~~~~ | ;
s795543735
p00200
C
#include <stdio.h> #define MAX 1000000000 #define min(x,y) ((x)<(y)?(x):(y)) int cost[101]; int check[101]; int route[101][101]; int n,m; void dijkstra(int start, int route[101][101]) { int i,j,k; for (i = 1; i < m + 1; i++) { cost[i] = MAX; check[i] = 0; } cost[start] =0; while ...
main.c: In function 'main': main.c:55:36: error: 'c' undeclared (first use in this function) 55 | scanf("%d%d%d%d", &a, &b, &c, &t); | ^ main.c:55:36: note: each undeclared identifier is reported only once for each function it appears in main.c:55:40: error: 't' undec...
s954871046
p00200
C
#include <stdio.h> #include <algorithm> using namespace std; int cost[101][101][2]; int d[101]; //始点固定は最初 bool used[101]; int n,m; //mは頂点数 void dijkstra(int s,int r){ for(int j=0;j<m;j++){ d[j]=1000000; used[j]=false; } d[s]=0; while(true){ int v=-1; for(int u=0; u<m;u++){ if(!used[u] && (v ==...
main.c:2:10: fatal error: algorithm: No such file or directory 2 | #include <algorithm> | ^~~~~~~~~~~ compilation terminated.
s485318728
p00200
C
#include <limits.h> #include <stdbool.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #define MAX_N 100 #define MAX_M 3000 #define SWAP(type, a, b) do {type _tmp; _tmp = a; a = b; b = _tmp;} while(0) typedef struct { int v; int dist; } state; bool greater(state a, state b) { return a.dist > b.dist;...
main.c: In function 'dijkstra': main.c:105:9: error: implicit declaration of function 'assert' [-Wimplicit-function-declaration] 105 | assert(dist[goal] != INT_MAX); | ^~~~~~ main.c:6:1: note: 'assert' is defined in header '<assert.h>'; this is probably fixable by adding '#include <assert.h>' ...
s571277775
p00200
C++
import sys import heapq as h inf = sys.maxsize # おまじない class heapq: def __init__(self): self.q = [] def push(self,v): h.heappush(self.q, v) def pop(self): return h.heappop(self.q) def is_empty(self): return len(self.q) == 0 # 入力:graphと始点s # 出力:始点sから各頂点tへの距離dist ...
a.cc:6:3: error: invalid preprocessing directive #\U0000304a\U0000307e\U00003058\U0000306a\U00003044 6 | # おまじない | ^~~~~~~~~~ a.cc:20:3: error: invalid preprocessing directive #\U00005165\U0000529b 20 | # 入力:graphと始点s | ^~~~ a.cc:21:3: error: invalid preprocessing directive #\U000051fa\U0000529b ...
s020949742
p00200
C++
#include<iostream> #include<algorithm> using namespace std; int time[3001][3001]; int cost[3001][3001]; int main(){ int i,j,k,a,b,t,c; int rail, station; int q,start,goal,dotti; int temp; while (1){ cin >> rail >> station; if (rail == 0 && station == 0){ break; } for (i = 0; i < stati...
a.cc:5:20: error: 'int time [3001][3001]' redeclared as different kind of entity 5 | int time[3001][3001]; | ^ In file included from /usr/include/pthread.h:23, from /usr/include/x86_64-linux-gnu/c++/14/bits/gthr-default.h:35, from /usr/include/x86_64-linux-...
s402009515
p00200
C++
#include<iostream> #include<algorithm> using namespace std; int time[3001][3001]; int cost[3001][3001]; int main(){ int i,j,k,a,b,t,c; int rail, station; int q,start,goal,dotti; int temp; while (1){ cin >> rail >> station; if (rail == 0 && station == 0){ break; } for (i = 0; i < stati...
a.cc:5:20: error: 'int time [3001][3001]' redeclared as different kind of entity 5 | int time[3001][3001]; | ^ In file included from /usr/include/pthread.h:23, from /usr/include/x86_64-linux-gnu/c++/14/bits/gthr-default.h:35, from /usr/include/x86_64-linux-...
s290464917
p00200
C++
#include<iostream> #include<algorithm> using namespace std; int clock[3001][3001]; int cost[3001][3001]; int main(){ int i,j,k,a,b,t,c; int rail, station; int q,start,goal,dotti; int temp; while (1){ cin >> rail >> station; if (rail == 0 && station == 0){ break; } for (i = 0; i < stat...
a.cc:5:21: error: 'int clock [3001][3001]' redeclared as different kind of entity 5 | int clock[3001][3001]; | ^ In file included from /usr/include/pthread.h:23, from /usr/include/x86_64-linux-gnu/c++/14/bits/gthr-default.h:35, from /usr/include/x86_64-lin...
s085828052
p00200
C++
#define _CRT_SECURE_NO_WARNINGS #include<fstream> #include<iostream> #include<string> #include<iomanip> #include<list> #include<math.h> #include<stack> #include<queue> #include<vector> #include<algorithm> #include<utility> using namespace std; short cost[3000][3000]; short time_data[3000][3000]; short main(){ sho...
cc1plus: error: '::main' must return 'int'
s311026728
p00200
C++
#include <algorithm> #define MAX_M 100 #define INF (1<<21) using namespace std; int dp_cost[MAX_M][MAX_M]; int dp_time[MAX_M][MAX_M]; int m; void warshall_froyd(){ for(int k=0;k<m;k++){ for(int i=0;i<m;i++){ for(int j=0;j<m;j++){ dp_cost[i][j] = min(dp_cost[i][j], dp_cost[i][k] + dp_cost[k][j]); ...
a.cc: In function 'int main()': a.cc:23:3: error: 'cin' was not declared in this scope 23 | cin >> n >> m; | ^~~ a.cc:2:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>' 1 | #include <algorithm> +++ |+#include <iostream> 2 | #define MA...
s745140659
p00200
C++
6 5 1 2 200 10 1 4 400 15 1 3 250 25 2 4 100 10 4 5 150 20 3 5 300 20 2 1 5 0 1 5 1 0 0
a.cc:1:1: error: expected unqualified-id before numeric constant 1 | 6 5 | ^
s868758597
p00200
C++
#include<iostream> #include<algorithm> const int INF = 10000000; const int N = 101; int cost[N][N]; int time[N][N]; using namespace std; int main() { int n, m, a, b, co, ti,r; while (1){ cin >> n >> m; if (n == 0 && m == 0)break; for (int i = 0; i < n; i++){ for (int i2 = 0; i2 < n; i2++){ cost[i][i2] = ...
a.cc:6:14: error: 'int time [101][101]' redeclared as different kind of entity 6 | int time[N][N]; | ^ In file included from /usr/include/pthread.h:23, from /usr/include/x86_64-linux-gnu/c++/14/bits/gthr-default.h:35, from /usr/include/x86_64-linux-gnu/c++/14/bit...
s386329277
p00200
C++
#include <iostream> #include <iomanip> #include <string> #include <vector> #include <map> #include <set> #include <queue> #include <algorithm> #include <functional> #include <sstream> #include <complex> #include <regex> #include <cmath> #include <bitset> #include <array> #include <deque> #include <list> #include <stack...
a.cc:175:17: error: reference to 'index_sequence' is ambiguous 175 | typedef index_sequence<> type; | ^~~~~~~~~~~~~~ In file included from /usr/include/c++/14/bits/stl_pair.h:62, from /usr/include/c++/14/bits/stl_algobase.h:64, from /usr/include/c++/14/s...
s759927686
p00200
C++
#include <iostream> #include <iomanip> #include <string> #include <vector> #include <map> #include <set> #include <queue> #include <algorithm> #include <functional> #include <sstream> #include <complex> #include <regex> #include <cmath> #include <bitset> #include <array> #include <deque> #include <list> #include <stack...
a.cc:175:17: error: reference to 'index_sequence' is ambiguous 175 | typedef index_sequence<> type; | ^~~~~~~~~~~~~~ In file included from /usr/include/c++/14/bits/stl_pair.h:62, from /usr/include/c++/14/bits/stl_algobase.h:64, from /usr/include/c++/14/s...
s365610972
p00200
C++
#include <iostream> #include <iomanip> #include <string> #include <vector> #include <map> #include <set> #include <queue> #include <algorithm> #include <functional> #include <sstream> #include <complex> #include <regex> #include <cmath> #include <bitset> #include <array> #include <deque> #include <list> #include <stack...
a.cc:168:17: error: reference to 'index_sequence' is ambiguous 168 | typedef index_sequence<> type; | ^~~~~~~~~~~~~~ In file included from /usr/include/c++/14/bits/stl_pair.h:62, from /usr/include/c++/14/bits/stl_algobase.h:64, from /usr/include/c++/14/s...
s975801330
p00200
C++
#include <iostream> #include <iomanip> #include <string> #include <vector> #include <map> #include <set> #include <queue> #include <algorithm> #include <functional> #include <sstream> #include <complex> #include <regex> #include <cmath> #include <bitset> #include <array> #include <deque> #include <list> #include <stack...
a.cc:174:17: error: reference to 'index_sequence' is ambiguous 174 | typedef index_sequence<> type; | ^~~~~~~~~~~~~~ In file included from /usr/include/c++/14/bits/stl_pair.h:62, from /usr/include/c++/14/bits/stl_algobase.h:64, from /usr/include/c++/14/s...
s935595262
p00200
C++
Y
a.cc:1:1: error: 'Y' does not name a type 1 | Y | ^
s787119581
p00200
C++
Y
a.cc:1:1: error: 'Y' does not name a type 1 | Y | ^
s293760757
p00200
C++
Y
a.cc:1:1: error: 'Y' does not name a type 1 | Y | ^
s106859040
p00200
C++
#include <iostream> #include <vector> #include <array> #include <algorithm> #include <iterator> using namespace std; struct AboutTo; class Node{ public: int aa; int Lowest; bool IsSelected; vector<AboutTo> ToCollection; Node(){ Lowest = 2147483647/2; IsSelected = false; } void Reset(){ Lowest = 214748364...
a.cc: In function 'int main()': a.cc:91:46: error: could not convert '(q - 1)' from 'int' to 'Node' 91 | cout << GetShortest(p - 1, q - 1, NodeCollection, r) << endl; | ~~^~~ | | | ...
s745974434
p00200
C++
// 0200.cpp : テ」ツδ。テ」ツつ、テ」ツδウ テ」ツδ療」ツδュテ」ツつクテ」ツつァテ」ツつッテ」ツδ?テ」ツδ陛」ツつ。テ」ツつ、テ」ツδォテ」ツ?ァテ」ツ?凖」ツ?? #include "stdafx.h" #include <iostream> #include <cstring> using namespace std; const int INF=100000; int cost[101][101]; int tim[101][101]; int main(void){ int n,m,a,b,c; while(1){ for(a=0;a<=100;a++){ for(b=0;b<=10...
a.cc:3:10: fatal error: stdafx.h: No such file or directory 3 | #include "stdafx.h" | ^~~~~~~~~~ compilation terminated.
s214768887
p00200
C++
#include <iostream> #include <set> #include <vector> #include <string> #include <utility> #include <algorithm> using namespace std; typedef pair<int,int> P; int n,m,K; int cost[100][100],time[100][100]; int main() { while(cin>>n>>m&&(n||m)){ fill(cost[0],cost[100],1000000); fill(time[0],time[100],1000000); fo...
a.cc:10:33: error: 'int time [100][100]' redeclared as different kind of entity 10 | int cost[100][100],time[100][100]; | ^ In file included from /usr/include/pthread.h:23, from /usr/include/x86_64-linux-gnu/c++/14/bits/gthr-default.h:35, from /...
s931794151
p00200
C++
#include <iostream> #include <cstdio> #include <cstdlib> #include <time.h> #include <math.h> #include <vector> #include <queue> #include <map> #include <set> #include <algorithm> #include <iterator> #include <sstream> #include <string> #include <bitset> using namespace std; #define FOR(I,F,N) for(int I = F; I < (int)(N...
a.cc: In function 'int main()': a.cc:54:78: error: expected ';' before '}' token 54 | timm[i][j] = min(timm[i][j], timm[i][k] + timm[k][j]) | ^ | ...
s781888412
p00200
C++
#include<iostream> #include<set> #define loop(i,a,b) for(int i=a;i<b;i++) #define rep(i,a) loop(i,0,a) #define INF 1e6 using namespace std; int n,m,k,a,b,c,d,p,q,r; int cost[101][101],tm[101][101],d[101]; bool used[101]; void dfunc(int s,int r){ d[s]=0; rep(i,101){ used[i]=true; d[i]=INF; } while(1){ int mem...
a.cc:8:33: error: conflicting declaration 'int d [101]' 8 | int cost[101][101],tm[101][101],d[101]; | ^ a.cc:7:17: note: previous declaration as 'int d' 7 | int n,m,k,a,b,c,d,p,q,r; | ^ a.cc: In function 'void dfunc(int, int)': a.cc:12:10: error: inval...
s444272871
p00200
C++
#include<iostream> #include<algorithm> #define MAX 1000000 using namespace std; int main(){ int n, m, a, b, cost, ti, k, p, q, r, point = 0; int cost_[101][101], time_[101][101], k_[101]; for (int i = 0; i < 101; i++){ for (int l = 0; l < 101; l++){ cost_[i][l] = MAX; ti_[i][l] = MAX; } } cin >> n >> m; ...
a.cc: In function 'int main()': a.cc:11:25: error: 'ti_' was not declared in this scope; did you mean 'ti'? 11 | ti_[i][l] = MAX; | ^~~ | ti a.cc:19:25: error: 'ti_' was not declared in this scope; did you mean 'ti'? 19 | ...
s192755496
p00200
C++
#include <cstdio> #include <algorithm> using namespace std; #define chmin(a,b) a=min(a,b) #define rep(i,x) for(int i=0;i<(x);++i) const int inf = 1e9; int N, M; int mc[100][100], mt[100][100]; int main() { while (scanf("%d %d", &N, &M), N || M) { fill(mc, mc[M], inf); fill(mt, mt[M], inf); rep(i, M) mc[i][...
a.cc: In function 'int main()': a.cc:17:21: error: no matching function for call to 'fill(int [100][100], int [100], const int&)' 17 | fill(mc, mc[M], inf); | ~~~~^~~~~~~~~~~~~~~~ In file included from /usr/include/c++/14/algorithm:60, from a.cc:2: /usr/include/...
s201916772
p00200
C++
#include <list> #include <queue> #include <vector> #include <iostream> #include <algorithm> #include <functional> #define INF (1LL << 60) using namespace std; bool used[100]; long long dist[100]; void dijkstra(int V, int E, int s, vector<pair<int, long long> > X[]) { priority_queue<pair<long long, int>, vector<pair<lo...
a.cc: In function 'int main()': a.cc:42:33: error: 'dijksrta' was not declared in this scope; did you mean 'dijkstra'? 42 | dijksrta(m, n, a, G1); | ^~~~~~~~ | dijkstra
s698111304
p00200
C++
#include <iostream> #include <string> #include <vector> #include <algorithm> #include <cmath> #include <cstdio> #include <functional> #include <numeric> #include <stack> #include <queue> #include <map> #include <set> #include <utility> #include <sstream> #include <complex> using namespace std; #define FOR(i,a,b) for(...
a.cc:39:23: error: 'int time' redeclared as different kind of entity 39 | int n, m, a, b, cost, time, k, s, g, f; | ^~~~ In file included from /usr/include/pthread.h:23, from /usr/include/x86_64-linux-gnu/c++/14/bits/gthr-default.h:35, from /usr/include/x...
s472051002
p00200
C++
#include <iostream> #include <string> #include <vector> #include <algorithm> #include <cmath> #include <cstdio> #include <functional> #include <numeric> #include <stack> #include <queue> #include <map> #include <set> #include <utility> #include <sstream> #include <complex> using namespace std; #define FOR(i,a,b) for(...
a.cc:39:23: error: 'int time' redeclared as different kind of entity 39 | int n, m, a, b, cost, time, k, s, g, f; | ^~~~ In file included from /usr/include/pthread.h:23, from /usr/include/x86_64-linux-gnu/c++/14/bits/gthr-default.h:35, from /usr/include/x...
s739457239
p00200
C++
#include <iostream> #include <string> #include <vector> #include <algorithm> #include <cmath> #include <cstdio> #include <functional> #include <numeric> #include <stack> #include <queue> #include <map> #include <set> #include <utility> #include <sstream> #include <complex> using namespace std; #define FOR(i,a,b) for(...
a.cc:39:22: error: 'll time' redeclared as different kind of entity 39 | ll n, m, a, b, cost, time, k, s, g, f; | ^~~~ In file included from /usr/include/pthread.h:23, from /usr/include/x86_64-linux-gnu/c++/14/bits/gthr-default.h:35, from /usr/include/x86_...
s723974343
p00200
C++
#include <iostream> #include <string> #include <vector> #include <algorithm> #include <cmath> #include <cstdio> #include <functional> #include <numeric> #include <stack> #include <queue> #include <map> #include <set> #include <utility> #include <sstream> #include <complex> using namespace std; #define FOR(i,a,b) for(...
a.cc:39:22: error: 'll time' redeclared as different kind of entity 39 | ll n, m, a, b, cost, time, k, s, g, f; | ^~~~ In file included from /usr/include/pthread.h:23, from /usr/include/x86_64-linux-gnu/c++/14/bits/gthr-default.h:35, from /usr/include/x86_...
s748002050
p00200
C++
#include <iostream> #include <string> #include <vector> #include <algorithm> #include <cmath> #include <cstdio> #include <functional> #include <numeric> #include <stack> #include <queue> #include <map> #include <set> #include <utility> #include <sstream> #include <complex> using namespace std; #define FOR(i,a,b) for(...
a.cc:39:23: error: 'int time' redeclared as different kind of entity 39 | int n, m, a, b, cost, time, k, p, q, r; | ^~~~ In file included from /usr/include/pthread.h:23, from /usr/include/x86_64-linux-gnu/c++/14/bits/gthr-default.h:35, from /usr/include/x...
s963643006
p00200
C++
#include <iostream> #include <string> #include <vector> #include <algorithm> #include <cmath> #include <cstdio> #include <functional> #include <numeric> #include <stack> #include <queue> #include <map> #include <set> #include <utility> #include <sstream> #include <complex> using namespace std; #define FOR(i,a,b) for(...
a.cc:39:23: error: 'int time' redeclared as different kind of entity 39 | int n, m, a, b, cost, time, k, p, q, r; | ^~~~ In file included from /usr/include/pthread.h:23, from /usr/include/x86_64-linux-gnu/c++/14/bits/gthr-default.h:35, from /usr/include/x...
s519569649
p00200
C++
#include <iostream> #include <vector> #include <string> #include <algorithm> using namespace std; const int INF = 1 << 25; int cost[100][100], time[100][100]; int main() { int n, m, query; while (cin >> n >> m , n) { for (int i = 0; i < m; i++) { for (int j = 0; j < m; j++) { cost[i][j] = (i == j) ? 0 : I...
a.cc:8:34: error: 'int time [100][100]' redeclared as different kind of entity 8 | int cost[100][100], time[100][100]; | ^ In file included from /usr/include/pthread.h:23, from /usr/include/x86_64-linux-gnu/c++/14/bits/gthr-default.h:35, from ...
s214192895
p00200
C++
#include <iostream> #include <algorithm> using namespace std; const int INF = 1 << 25; int cost[100][100], time[100][100]; int main() { int n, m, query; while (cin >> n >> m , n) { for (int i = 0; i < m; i++) { for (int j = 0; j < m; j++) { cost[i][j] = (i == j) ? 0 : INF; time[i][j] = (i == j) ? 0 : ...
a.cc:6:34: error: 'int time [100][100]' redeclared as different kind of entity 6 | int cost[100][100], time[100][100]; | ^ In file included from /usr/include/pthread.h:23, from /usr/include/x86_64-linux-gnu/c++/14/bits/gthr-default.h:35, from ...
s199979821
p00200
C++
#include <iostream> #include <algorithm> using namespace std; const int INF = 1 << 25; int cost[100][100], time[100][100]; int main() { int n, m, query; while (cin >> n >> m , n) { for (int i = 0; i < m; i++) { for (int j = 0; j < m; j++) { cost[i][j] = (i == j) ? 0 : INF; time[i][j] = (i == j) ? 0 : ...
a.cc:6:34: error: 'int time [100][100]' redeclared as different kind of entity 6 | int cost[100][100], time[100][100]; | ^ In file included from /usr/include/pthread.h:23, from /usr/include/x86_64-linux-gnu/c++/14/bits/gthr-default.h:35, from ...
s738703017
p00200
C++
#include <iostream> #include <vector> #include <string> #include <algorithm> using namespace std; const int INF = 1 << 25; int cost[100][100], time[100][100]; int main() { int n, m, query; while (cin >> n >> m , n) { for (int i = 0; i < m; i++) { for (int j = 0; j < m; j++) { cost[i][j] = (i == j) ? 0 : IN...
a.cc:8:34: error: 'int time [100][100]' redeclared as different kind of entity 8 | int cost[100][100], time[100][100]; | ^ In file included from /usr/include/pthread.h:23, from /usr/include/x86_64-linux-gnu/c++/14/bits/gthr-default.h:35, from ...
s059597980
p00200
C++
#include <iostream> #include <algorithm> #define INF 1000000 using namespace std; int cost[100][100]; int time[100][100]; int d[100]; int m; void dcost(int s) { bool used[100]; fill(used, used + 100, false); fill(d, d + 100, INF); d[s] = 0; while (1) { int v = -1; for (int u = 0; u < m; ++u) { if (!used[u]...
a.cc:6:18: error: 'int time [100][100]' redeclared as different kind of entity 6 | int time[100][100]; | ^ In file included from /usr/include/pthread.h:23, from /usr/include/x86_64-linux-gnu/c++/14/bits/gthr-default.h:35, from /usr/include/x86_64-linux-gnu/c+...
s000139996
p00200
C++
#include <bits/stdc++.h> using namespace std; typedef pair<int,int > P; const int INF = 1 << 30; int Dijkstra(int s,int g,int r); int m,n; int min_cost[2][111]; typedef struct{ vector<int>edge_to; vector<int>edge_cost[2]; }Node_data; Node_data Graph[111]; priority_queue<P ,vector< P >, greater< P > >que; int ...
a.cc: In function 'int Dijkstra(int, int, int)': a.cc:65:32: error: invalid conversion from 'int*' to 'int' [-fpermissive] 65 | newcost = min_cost[node] + Graph[node].edge_cost[r][i];
s462032863
p00200
C++
#include<iostream> #include<vector> using namespace std; class NextNodesData { public: int nextNodesName; int nextNodesMany; int nextNodesTime; }; class Nodes { public: vector<NextNodesData> nextNodes; int name; int minValue; bool fixed; }; int main() { int N, M; cin >> N >> M; vector<Nodes> nodesList; for...
a.cc: In function 'int main()': a.cc:107:46: error: invalid use of member function 'std::vector<_Tp, _Alloc>::size_type std::vector<_Tp, _Alloc>::size() const [with _Tp = Nodes; _Alloc = std::allocator<Nodes>; size_type = long unsigned int]' (did you forget the '()' ?) 107 | if(candida...
s330562862
p00200
C++
V\\\#include<stack> #include<queue> #include<vector> #include<cstring> #include<iostream> #include<algorithm> using namespace std; static const int INFTY = (1 << 21); int main(){ int n, m, a, b, cost, time; int kk, p, q, r; int sta_c[101][101]; int sta_t[101][101]; while (cin >> n >> m, n, m){ for (int i = 0; i ...
a.cc:1:2: error: stray '\' in program 1 | V\\\#include<stack> | ^ a.cc:1:3: error: stray '\' in program 1 | V\\\#include<stack> | ^ a.cc:1:4: error: stray '\' in program 1 | V\\\#include<stack> | ^ a.cc:1:5: error: stray '#' in program 1 | V\\\#include<stack> | ^ a.cc:1...
s185979436
p00200
C++
#include<iostream> #include<string.h> using namespace std; int kingaku(void); int saitan(void); #define WHITE 0 #define GLAY 1 #define BLACK 2 #define INF 999999 int n; // ??????????????±?????° int m; // ?§??????° int p; // ????????° int q; // ??°?????° int minv; int cost[100][100]; int time[100][100]; int dd[100],Flag...
a.cc:16:18: error: 'int time [100][100]' redeclared as different kind of entity 16 | int time[100][100]; | ^ In file included from /usr/include/pthread.h:23, from /usr/include/x86_64-linux-gnu/c++/14/bits/gthr-default.h:35, from /usr/include/x86_64-linux-gnu/c...
s116270751
p00200
C++
#include<iostream> #include<string.h> using namespace std; int kingaku(void); int saitan(void); #define WHITE 0 #define GLAY 1 #define BLACK 2 #define INF 9999 int n; // ??????????????±?????° int m; // ?§??????° int p; // ????????° int q; // ??°?????° int minv; int cost[100][100]; int time[100][100]; int dd[100],Flag[1...
a.cc:16:18: error: 'int time [100][100]' redeclared as different kind of entity 16 | int time[100][100]; | ^ In file included from /usr/include/pthread.h:23, from /usr/include/x86_64-linux-gnu/c++/14/bits/gthr-default.h:35, from /usr/include/x86_64-linux-gnu/c...
s200588800
p00200
C++
#include<iostream> #include<string.h> using namespace std; int kingaku(void); int saitan(void); #define WHITE 0 #define GLAY 1 #define BLACK 2 #define INF 9999 int n; // ??????????????±?????° int m; // ?§??????° int p; // ????????° int q; // ??°?????° int minv; int cost[101][101]; int time[101][101]; int dd[101]; int m...
a.cc:16:18: error: 'int time [101][101]' redeclared as different kind of entity 16 | int time[101][101]; | ^ In file included from /usr/include/pthread.h:23, from /usr/include/x86_64-linux-gnu/c++/14/bits/gthr-default.h:35, from /usr/include/x86_64-linux-gnu/c...
s821514552
p00200
C++
#include<iostream> using namespace std; #include<algorithm> #include<string> #define REP(i,a) for(int i=0;i<a;i++) int A[101][101]; int B[101][101]; int main(){ int a,b=0,c=0,d,n,m; cin>>n>>m; while(n!=0||m!=0){ REP(i,m){ REP(j,m){ A[i][j]=1001; B[i][j]=1001; } } REP(i,n){ cin>>a>>b>>c>>d; A[a-1][b-...
a.cc: In function 'int main()': a.cc:27:23: error: 'j' was not declared in this scope 27 | if(i==j) continue; | ^
s601356885
p00200
C++
#include<iostream> using namespace std; #include<algorithm> #include<string> #define REP(i,a) for(int i=0;i<a;i++) int A[101][101]; int B[101][101]; int main(){ int a,b=0,c=0,d,n,m; cin>>n>>m; while(n!=0||m!=0){ REP(i,m){ REP(j,m){ A[i][j]=1001; B[i][j]=1001; } } REP(i,n){ cin>>a>>b>>c>>d; A[a-1][b-...
a.cc: In function 'int main()': a.cc:29:22: error: 'j' was not declared in this scope 29 | A[i][j]=min(A[i][j],A[i][k]+A[k][j]); | ^
s343965509
p00200
C++
#include<cstdio> #include<cstring> #include<algorithm> #include<functional> #define M 1000000000 using namespace std; void Warshall_Floyd(); void GYORETU(); int cc[1001][1001],ti[1001][1001]; int n,m,a,b,cost,time,; int main(void) { while(1) { scanf("%d %d",&n,&m); if(n==0&&m==0) break; GYORETU(); Warshall_Flo...
a.cc:10:23: error: expected unqualified-id before ';' token 10 | int n,m,a,b,cost,time,; | ^
s329335026
p00200
C++
#include<iostream> #include<vector> #include<string> #define int long long using namespace std; signed main() { int a, b; while (cin >>b>>a, a | b) { vector<vector<int>>cost(a, vector<int>(a, INT_MAX)); vector<vector<int>>time(a, vector<int>(a, INT_MAX)); for (int c = 0; c < b; c++) { int d, e, f, g; cin...
a.cc: In function 'int main()': a.cc:10:59: error: 'INT_MAX' was not declared in this scope 10 | vector<vector<int>>cost(a, vector<int>(a, INT_MAX)); | ^~~~~~~ a.cc:3:1: note: 'INT_MAX' is defined in header '<climits>'; this is probably ...
s930591833
p00200
C++
#include<stdio.h> #include<algorithm> #include <map> #include <list> #include <stack> #include <queue> #include <vector> #include <iostream> #include <functional> #include <time.h> using namespace std; clock_t fi, endtime; const int INF = 100 * 1000 + 2; const int r_c = 0; const int r_t = 1; const int MAX_V = 100; con...
a.cc: In function 'int main()': a.cc:28:9: error: 'scanf_s' was not declared in this scope; did you mean 'scanf'? 28 | scanf_s("%d %d", &m, &n); | ^~~~~~~ | scanf
s401602274
p00200
C++
#include<stdio.h> #include<algorithm> #include <map> #include <list> #include <stack> #include <queue> #include <vector> #include <iostream> #include <functional> #include <time.h> using namespace std; clock_t fi, endtime; const int INF = INT16_MAX; const int r_c = 0; const int r_t = 1; const int MAX_V = 100; const in...
a.cc:14:17: error: 'INT16_MAX' was not declared in this scope 14 | const int INF = INT16_MAX; | ^~~~~~~~~ a.cc:10:1: note: 'INT16_MAX' is defined in header '<cstdint>'; this is probably fixable by adding '#include <cstdint>' 9 | #include <functional> +++ |+#include <cstdint> 10 | #incl...
s602470769
p00200
C++
#include<stdio.h> #include<algorithm> #include <map> #include <list> #include <stack> #include <queue> #include <vector> #include <iostream> #include <functional> #include <time.h> using namespace std; clock_t fi, endtime; const int INF = INT16_MAX; const int r_c = 0; const int r_t = 1; const int MAX_V = 100; const in...
a.cc:14:17: error: 'INT16_MAX' was not declared in this scope 14 | const int INF = INT16_MAX; | ^~~~~~~~~ a.cc:10:1: note: 'INT16_MAX' is defined in header '<cstdint>'; this is probably fixable by adding '#include <cstdint>' 9 | #include <functional> +++ |+#include <cstdint> 10 | #incl...
s913150660
p00200
C++
#include <iostream> #include <vector> #include <algorithm> using namespace std; #define INF 1010001000 #define loop(i, n) for (int i = 1; i < n; i++) int main() { int n, m; cin >> n >> m; m++; vector<vector<int> > time(m,vector<int>(m,INF)), cost(m,vector<int>(m,INF)); loop(i, n+1){ int a,b,c,t; cin>>a>>b>>c>>t; time[...
a.cc: In function 'int main()': a.cc:18:9: error: 'j' was not declared in this scope 18 | time[i][j]=min(time[i][j],time[i][k]+time[k][j]); | ^
s228265477
p00200
C++
#include<iostream> #include<string> #include<cstdio> #include<algorithm> #include<stack> #include<queue> #include<vector> #include<cmath> #include<utility> #include<set> #include<complex> #include<map> #define vi vector<int> #define vvi vector<vector<int> > #define ll long long int #define vl vector<ll> #define vvl vec...
a.cc:37:35: error: stray '\' in program 37 | rep(i,n+1)v[i][i]=pii(0,0?\); | ^ a.cc: In function 'int main()': a.cc:37:30: error: expected primary-expression before '(' token 37 | rep(i,n+1)v[i][i]=pii(0,0?\); | ^ a.cc:37:3...
s766924906
p00200
C++
#include<iostream> #include<string> #include<cstdio> #include<algorithm> #include<stack> #include<queue> #include<vector> #include<cmath> #include<utility> #include<set> #include<complex> #include<map> #define vi vector<int> #define vvi vector<vector<int> > #define ll long long int #define vl vector<ll> #define vvl vec...
a.cc:37:35: error: stray '\' in program 37 | rep(i,n+1)v[i][i]=pii(0,0?\); | ^ a.cc: In function 'int main()': a.cc:37:30: error: expected primary-expression before '(' token 37 | rep(i,n+1)v[i][i]=pii(0,0?\); | ^ a.cc:37:3...
s625487132
p00200
C++
#define NODE 0 #define WEIGHT 1 #define COST_IDX 0 #define TIME_IDX 1 #define P_IDX 0 #define Q_IDX 1 #define R_IDX 2 #include <iostream> #include <queue> #include <vector> using namespace std; int n, m, k; int weights[101][101][2]; int requests[200][3]; bool read_input() { cin >> n >> m; if (n*m == 0) retur...
a.cc: In function 'bool read_input()': a.cc:21:3: error: 'memset' was not declared in this scope 21 | memset(weights, 0, sizeof(int)*101*101*2); | ^~~~~~ a.cc:10:1: note: 'memset' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>' 9 | #include <queue> +++ |+#inc...
s524131505
p00200
C++
#define NODE 0 #define WEIGHT 1 #define COST_IDX 0 #define TIME_IDX 1 #define P_IDX 0 #define Q_IDX 1 #define R_IDX 2 #include <iostream> #include <queue> #include <vector> using namespace std; int n, m, k; int weights[101][101][2]; int min_w[101][101][2]; int requests[200][3]; bool read_input() { cin >> n >> m; ...
a.cc: In function 'bool read_input()': a.cc:22:3: error: 'memset' was not declared in this scope 22 | memset(weights, 0, sizeof(int)*101*101*2); | ^~~~~~ a.cc:10:1: note: 'memset' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>' 9 | #include <queue> +++ |+#inc...
s363405484
p00200
C++
#include <bits/stdc++.h> #define r(i,n) for(int i=0;i<n;i++) #define INF 1<<29 using namespace std; main(){ int m,n; while(cin>>m>>n,n){ int a1[n][n],a2[n][n],q,w,e,r; r(i,n)r(j,n){ if(i==j)a2[i][j]=a1[i][j]=0; else a2[i][j]=a1[i][j]=INF; } while(m--){ scanf("%d%d%d%d",&q,&w,&e,&r)...
a.cc:5:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type] 5 | main(){ | ^~~~ a.cc: In function 'int main()': a.cc:14:36: error: expected ';' before 'q' 14 | scanf("%d%d%d%d",&q,&w,&e,&r)q--;w--; | ^ | ...
s003364490
p00200
C++
#include <bits/stdc++.h> #define r(i,n) for(int i=0;i<n;i++) #define INF 1<<29 using namespace std; main(){ int m,n; while(cin>>m>>n,n){ int a1[n][n],a2[n][n],q,w,e,r; r(i,n)r(j,n){ if(i==j)a2[i][j]=a1[i][j]=0; else a2[i][j]=a1[i][j]=INF; } while(m--){ scanf("%d%d%d%d",&q,&w,&e,&r)...
a.cc:5:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type] 5 | main(){ | ^~~~ a.cc: In function 'int main()': a.cc:24:31: error: expected ';' before 'q' 24 | scanf("%d%d%d",&q,&w,&r)q--;w--; | ^ | ;
s883308565
p00200
C++
#include <bits/stdc++.h> #define r(i,a,n) for(int i=a;i<n;i++) #define INF 1<<29 using namespace std; main(){ int m,n; while(cin>>m>>n,n){ int a1[n][n],a2[n][n],q,w,e,r; r(i,0,n)r(j,0,n){ if(i==j)a2[i][j]=a1[i][j]=0; else a2[i][j]=a1[i][j]=INF; } while(m--){ scanf("%d%d%d%d",&q,&w,...
a.cc:5:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type] 5 | main(){ | ^~~~ a.cc: In function 'int main()': a.cc:19:16: error: 'a' was not declared in this scope 19 | a1[i][j]=a[j][i]=min(a1[i][j],a1[i][k]+a1[k][j]); | ^
s435159727
p00200
C++
#define _USE_MATH_DEFINES #include<cstdio> #include <iostream> #include<algorithm> #include<string> #include<queue> #include<vector> #include<functional> #include<cmath> #include<map> #include<stack> #include<set> #define INF 10000000 using namespace std; typedef long long ll; int cost[110][110]; int time[110][110]; ...
a.cc:18:18: error: 'int time [110][110]' redeclared as different kind of entity 18 | int time[110][110]; | ^ In file included from /usr/include/pthread.h:23, from /usr/include/x86_64-linux-gnu/c++/14/bits/gthr-default.h:35, from /usr/include/x86_64-linux-gnu/c...
s873426542
p00200
C++
#include <iostream> #include <cstdio> #include <vector> #include <utility> #include <queue> #include <functional> #define N 101 #define INF 2000000000 using namespace std; int dist[N]; typedef pair<int,int> pii; std::vector<pii> e1[N]; std::vector<pii> e2[N]; int dijk1(int a,int b){ dist[a]=0; std::priori...
a.cc: In function 'int main()': a.cc:65:32: error: expected ')' before ';' token 65 | e1[b].push_back(make_pair(-c,a); | ~ ^ | ) a.cc:68:32: error: expected ')' before ';' token 68 | e2[b].push_back(make_pair(-d,a); | ~ ...
s256238289
p00200
C++
#include <iostream> #include <vector> #include <queue> #include <functional> using namespace std; int n, m; int k; int cost[100][100]; int time[100][100]; int main() { memset(cost, 0x0f, sizeof cost); memset(time, 0x0f, sizeof time); cin >> n >> m; for (int i = 0; i < n; ++i) { int a, b, cost_, time_; cin >...
a.cc:10:18: error: 'int time [100][100]' redeclared as different kind of entity 10 | int time[100][100]; | ^ In file included from /usr/include/pthread.h:23, from /usr/include/x86_64-linux-gnu/c++/14/bits/gthr-default.h:35, from /usr/include/x86_64-linux-gnu/c...
s340275396
p00200
C++
#include<bits/stdc++.h> #define ll long long int #define FOR(i,a,b) for(ll i=(ll)(a);i<(ll)(b);i++) #define REP(i,n) FOR(i,0,n) #define REP1(i,n) FOR(i,1,n) #define MIN(a, b) ((a)<(b)?(a):(b)) #define MAX(a, b) ((a)<(b)?(a):(b)) #define INF 10e6 using namespace std; /*temp*/ int main(){ int n, m, l; while(cin...
a.cc: In function 'int main()': a.cc:41:14: error: 'q' was not declared in this scope 41 | cin>>q; | ^ a.cc:47:23: error: no match for 'operator==' (operand types are 'std::basic_ostream<char>' and 'int') 47 | cout<<type==0?cost[s][d]:time[s][d]<<'\n'; | ~~...
s147073242
p00200
C++
#include <iostream> #include <vector> #define INF 1<<29 ?? using namespace std; ?? int main(void) { ????????int n,m,k,p,q,r; ????????while (cin >> n >> m && n && m) { ????????????????int dp[101][101][2]; ????????????????for (int i = 0; i < m + 1; ++i) { ????????????????????????for (int j = 0; j < m + 1; ++j) { ????????...
a.cc:4:1: error: expected unqualified-id before '?' token 4 | ?? | ^ a.cc:6:1: error: expected unqualified-id before '?' token 6 | ?? | ^
s646910863
p00200
C++
#include <iostream> #include <cctype> #include <algorithm> #include <vector> #include <map> #include <queue> #include <set> #include <stack> #include <utility> #include <string> #include <functional> #include <cctype> #include <cstring> #include <cstdio> #include <cstdlib> #include <cmath> typedef long long ll; const i...
a.cc:25:33: error: 'int time [105]' redeclared as different kind of entity 25 | int n, m, k, cost[105], time[105]; | ^ In file included from /usr/include/pthread.h:23, from /usr/include/x86_64-linux-gnu/c++/14/bits/gthr-default.h:35, from /usr/i...
s866503509
p00200
C++
#include <iostream> #include <cctype> #include <algorithm> #include <vector> #include <map> #include <queue> #include <set> #include <stack> #include <utility> #include <string> #include <functional> #include <cctype> #include <cstring> #include <cstdio> #include <cstdlib> #include <cmath> typedef long long ll; const i...
a.cc:25:33: error: 'int time [105]' redeclared as different kind of entity 25 | int n, m, k, cost[105], time[105]; | ^ In file included from /usr/include/pthread.h:23, from /usr/include/x86_64-linux-gnu/c++/14/bits/gthr-default.h:35, from /usr/i...
s406680050
p00200
C++
#include <iostream> #include <cctype> #include <algorithm> #include <vector> #include <map> #include <queue> #include <set> #include <stack> #include <utility> #include <string> #include <functional> #include <cctype> #include <cstring> #include <cstdio> #include <cstdlib> #include <cmath> typedef long long ll; const i...
a.cc:25:33: error: 'int time [105]' redeclared as different kind of entity 25 | int n, m, k, cost[105], time[105]; | ^ In file included from /usr/include/pthread.h:23, from /usr/include/x86_64-linux-gnu/c++/14/bits/gthr-default.h:35, from /usr/i...
s390346757
p00200
C++
#include <iostream> #include <cctype> #include <algorithm> #include <vector> #include <map> #include <queue> #include <set> #include <stack> #include <utility> #include <string> #include <functional> #include <cctype> #include <cstring> #include <cstdio> #include <cstdlib> #include <cmath> typedef long long ll; const i...
a.cc:25:33: error: 'int time [105]' redeclared as different kind of entity 25 | int n, m, k, cost[105], time[105]; | ^ In file included from /usr/include/pthread.h:23, from /usr/include/x86_64-linux-gnu/c++/14/bits/gthr-default.h:35, from /usr/i...
s042930905
p00200
C++
#include <iostream> #include <algorithm> #include <vector> #include <queue> using namespace std; template<class T> inline void YES(T condition){ if(condition) cout << "YES" << endl; else cout << "NO" << endl; } template<class T> inline void Yes(T condition){ if(condition) cout << "Yes" << endl; else cout << "No" << en...
a.cc: In function 'std::vector<_Tp> dijkstra(WeightedGraph<T>&, int)': a.cc:50:22: error: 'numeric_limits' was not declared in this scope 50 | const auto INF = numeric_limits< T >::max(); | ^~~~~~~~~~~~~~ a.cc:50:40: error: expected primary-expression before '>' token 50 | const...
s963847644
p00200
C++
#include <iostream> #include <algorithm> #include <vector> #include <queue> using namespace std; template<class T> inline void YES(T condition){ if(condition) cout << "YES" << endl; else cout << "NO" << endl; } template<class T> inline void Yes(T condition){ if(condition) cout << "Yes" << endl; else cout << "No" << en...
a.cc: In function 'std::vector<_Tp> dijkstra(WeightedGraph<T>&, int)': a.cc:50:22: error: 'numeric_limits' was not declared in this scope 50 | const auto INF = numeric_limits< T >::max(); | ^~~~~~~~~~~~~~ a.cc:50:40: error: expected primary-expression before '>' token 50 | const...
s801108771
p00200
C++
#include <iostream> #include <algorithm> #include <vector> #include <queue> using namespace std; template<class T> inline void YES(T condition){ if(condition) cout << "YES" << endl; else cout << "NO" << endl; } template<class T> inline void Yes(T condition){ if(condition) cout << "Yes" << endl; else cout << "No" << en...
a.cc: In function 'std::vector<_Tp> dijkstra(WeightedGraph<T>&, int)': a.cc:50:22: error: 'numeric_limits' was not declared in this scope 50 | const auto INF = numeric_limits< T >::max(); | ^~~~~~~~~~~~~~ a.cc:50:40: error: expected primary-expression before '>' token 50 | const...
s280156168
p00200
C++
#include<vector> #include<queue> #include<iostream> #include<algorithm> using namespace std; #define MAX_V 101 #define MAX_E 3001 #define INF 1e9 using namespace std; int cost[MAX_V][MAX_V]; int time[MAX_V][MAX_V]; int cost_d[MAX_V]; int time_d[MAX_V]; bool used[MAX_V]; int V; int E; void cost_dijkstra(int s) { for (...
a.cc:11:22: error: 'int time [101][101]' redeclared as different kind of entity 11 | int time[MAX_V][MAX_V]; | ^ In file included from /usr/include/pthread.h:23, from /usr/include/x86_64-linux-gnu/c++/14/bits/gthr-default.h:35, from /usr/include/x86_64-lin...
s239592019
p00200
C++
#include<vector> #include<queue> #include<iostream> #include<algorithm> using namespace std; #define INF 1e9 int cost[101][101]; int time[101][101]; int cost_d[101]; int time_d[101]; bool used[101]; int V; int E; void cost_dijkstra(int s) { for (int i = 0; i < V; i++) { cost_d[i] = INF; used[i] = false; } cos...
a.cc:10:18: error: 'int time [101][101]' redeclared as different kind of entity 10 | int time[101][101]; | ^ In file included from /usr/include/pthread.h:23, from /usr/include/x86_64-linux-gnu/c++/14/bits/gthr-default.h:35, from /usr/include/x86_64-linux-gnu/c...
s510853138
p00200
C++
#include<vector> #include<queue> #include<iostream> #include<algorithm> using namespace std; #define INF 1e9 int cost[101][101]; int time[101][101]; int cost_d[101]; int time_d[101]; bool used[101]; int V; int E; void cost_dijkstra(int s) { for (int i = 0; i < V; i++) { cost_d[i] = INF; used[i] = false; } cos...
a.cc:10:18: error: 'int time [101][101]' redeclared as different kind of entity 10 | int time[101][101]; | ^ In file included from /usr/include/pthread.h:23, from /usr/include/x86_64-linux-gnu/c++/14/bits/gthr-default.h:35, from /usr/include/x86_64-linux-gnu/c...
s764869184
p00200
C++
#include<iostream> #define INF 1001; using namespace std; int main(){ int n,m; while(1){ cin>>n>>m; if(n==0&&m==0)break; int s_tim[m][m]; int c_money[m][m]; int a,b,cost,tim; for(int i=0;i<m;i++){ for(int j=0;j<n;j++){ s_tim[i][j]=INF; c_money[i][j]=INF; } ...
a.cc: In function 'int main()': a.cc:51:38: error: expected '}' at end of input 51 | else{ cout<<c_money[p-1][q-1];} | ^ a.cc:48:32: note: to match this '{' 48 | for(int i=0;i<contacts;i++){ | ^ a.cc:51:38: error: expected '...
s289835175
p00200
C++
#include<iostream> #define INF ; using namespace std; int main(){ int n,m; while(1){ cin>>n>>m; if(n==0&&m==0){break;} int s_tim[m][m]; int c_money[m][m]; int a,b,cost,tim; for(int i=0;i<m;i++){ for(int j=0;j<m;j++){ s_tim[i][j]=INF; c_money[i][j]=INF; } }...
a.cc: In function 'int main()': a.cc:3:13: error: expected primary-expression before ';' token 3 | #define INF ; | ^ a.cc:18:21: note: in expansion of macro 'INF' 18 | s_tim[i][j]=INF; | ^~~ a.cc:3:13: error: expected primary-expression before ';' token 3 |...
s201500347
p00200
C++
##include <iostream> using namespace std; const int INF = 1000000000; int main() { int count=0; while(count!=50){ int n, m; cin >> n >> m; if(n==0 && m==0) break; int C[100][100]; int T[100][100]; for(int i=0; i<m; i++){ for(int j=0; j<m; j++){ if(i==j){ C[i][j] = T[i][j] ...
a.cc:1:1: error: stray '##' in program 1 | ##include <iostream> | ^~ a.cc:1:3: error: 'include' does not name a type 1 | ##include <iostream> | ^~~~~~~ a.cc: In function 'int main()': a.cc:11:17: error: 'cin' was not declared in this scope 11 | cin >> n >> m; | ...
s877263605
p00200
C++
##include <iostream> using namespace std; const int INF = 1000000000; int main() { int count=0; while(count!=50){ int n, m; cin >> n >> m; if(n==0 && m==0) break; int C[100][100]; int T[100][100]; for(int i=0; i<m; i++){ for(int j=0; j<m; j++){ if(i==j){ C[i][j] = T[i][j] ...
a.cc:1:1: error: stray '##' in program 1 | ##include <iostream> | ^~ a.cc:1:3: error: 'include' does not name a type 1 | ##include <iostream> | ^~~~~~~ a.cc: In function 'int main()': a.cc:11:17: error: 'cin' was not declared in this scope 11 | cin >> n >> m; | ...
s365135105
p00200
C++
##include <iostream> using namespace std; const int INF = 1000000000; int main() { int count=0; while(count!=50){ int n, m; cin >> n >> m; if(n==0 && m==0) break; int C[100][100]; int T[100][100]; for(int i=0; i<m; i++){ for(int j=0; j<m; j++){ if(i==j){ C[i][j] = T[i][j] ...
a.cc:1:1: error: stray '##' in program 1 | ##include <iostream> | ^~ a.cc:1:3: error: 'include' does not name a type 1 | ##include <iostream> | ^~~~~~~ a.cc: In function 'int main()': a.cc:11:17: error: 'cin' was not declared in this scope 11 | cin >> n >> m; | ...
s939405813
p00200
C++
##include <iostream> using namespace std; const int INF = 1000000000; int main() { int count=0; while(count==50){ int n, m; cin >> n >> m; if(n==0 && m==0) break; int C[100][100]; int T[100][100]; for(int i=0; i<m; i++){ for(int j=0; j<m; j++){ if(i==j){ C[i][j] = T[i][j] ...
a.cc:1:1: error: stray '##' in program 1 | ##include <iostream> | ^~ a.cc:1:3: error: 'include' does not name a type 1 | ##include <iostream> | ^~~~~~~ a.cc: In function 'int main()': a.cc:11:17: error: 'cin' was not declared in this scope 11 | cin >> n >> m; | ...
s993637206
p00200
C++
##include <iostream> using namespace std; const int INF = 1000000000; int main() { int count=0; while(count=50){ int n, m; cin >> n >> m; if(n==0 && m==0) break; int C[100][100]; int T[100][100]; for(int i=0; i<m; i++){ for(int j=0; j<m; j++){ if(i==j){ C[i][j] = T[i][j] =...
a.cc:1:1: error: stray '##' in program 1 | ##include <iostream> | ^~ a.cc:1:3: error: 'include' does not name a type 1 | ##include <iostream> | ^~~~~~~ a.cc: In function 'int main()': a.cc:11:17: error: 'cin' was not declared in this scope 11 | cin >> n >> m; | ...
s954101410
p00200
C++
##include <iostream> using namespace std; const int INF = 1000000000; int main() { while(false){ int n, m; cin >> n >> m; if(n==0 && m==0) break; int C[100][100]; int T[100][100]; for(int i=0; i<m; i++){ for(int j=0; j<m; j++){ if(i==j){ C[i][j] = T[i][j] = 0; }else{ ...
a.cc:1:1: error: stray '##' in program 1 | ##include <iostream> | ^~ a.cc:1:3: error: 'include' does not name a type 1 | ##include <iostream> | ^~~~~~~ a.cc: In function 'int main()': a.cc:10:17: error: 'cin' was not declared in this scope 10 | cin >> n >> m; | ...
s750086898
p00200
C++
#include <iostream> using namespace std; const int INF = 1000000000; int main() { while(false){ int n, m; cin >> n >> m; if(n==0 && m==0) break; int C[100][100]; int T[100][100]; for(int i=0; i<m; i++){ for(int j=0; j<m; j++){ if(i==j){ C[i][j] = T[i][j] = 0; }else{ ...
a.cc: In function 'int main()': a.cc:40:14: error: 'd' was not declared in this scope 40 | if(d[i][j]>d[i][k]+d[k][j]){ | ^
s546551395
p00200
C++
#include<iostream> #include<queue> #define inf 1000000000 using namespace std; int C[101][101],T[101][101]; int n,m; class sint{ public: int n,m; sint(){} sint(int a,int b){n=a;m=b;} operator < (const sint &a) const{ return m>a.m; } }; int dike(int st,int en,int va){ priority_queue<sint> state; int vi...
a.cc:16:9: error: ISO C++ forbids declaration of 'operator<' with no type [-fpermissive] 16 | operator < (const sint &a) const{ | ^~~~~~~~
s910978069
p00200
C++
#include <iostream> #include <vector> using namespace std; static const int TYPE_COST =0; static const int TYPE_TIME =1; class station{ public: int cost; bool visited; vector<int> edge_to; vector<int> edge_cost; vector<int> edge_time; public: station() : cost(-1), visited(false){} void add_to(int to, i...
a.cc: In function 'bool contain(std::vector<station>, station)': a.cc:98:20: error: 'memcmp' was not declared in this scope 98 | if(memcmp(&sta[i], &elem, sizeof(station)) == 0){ | ^~~~~~ a.cc:3:1: note: 'memcmp' is defined in header '<cstring>'; this is probably fixable by a...
s379708315
p00200
C++
#include <iostream> #include <vector> #include <stdlib.h> using namespace std; static const int TYPE_COST =0; static const int TYPE_TIME =1; class station{ public: int cost; bool visited; vector<int> edge_to; vector<int> edge_cost; vector<int> edge_time; public: station() : cost(-1), visited(false){} v...
a.cc: In function 'bool contain(std::vector<station>, station)': a.cc:99:20: error: 'memcmp' was not declared in this scope 99 | if(memcmp(&sta[i], &elem, sizeof(station)) == 0){ | ^~~~~~ a.cc:4:1: note: 'memcmp' is defined in header '<cstring>'; this is probably fixable by a...
s796599181
p00200
C++
6 5 1 2 200 10 1 4 400 15 1 3 250 25 2 4 100 10 4 5 150 20 3 5 300 20 2 1 5 0 1 5 1
a.cc:1:1: error: expected unqualified-id before numeric constant 1 | 6 5 | ^
s574668201
p00200
C++
#include <iostream> #include <vector> #include <queue> using namespace std; typedef pair<int, int> P; const int INF = 1 << 24; int c[200][200]; int t[200][200]; int cost[200][200]; int tim[200][200]; int main(){ int n, m, K; int p, q, r; while(cin >> n >> m && (n || m)){ fill(&cost[0][0], &cost[199][199] + 1...
a.cc: In function 'int main()': a.cc:29:39: error: expected '}' at end of input 29 | cost[a][b] = min(cost[a][b], d); | ^ a.cc:23:31: note: to match this '{' 23 | for(int i = 0; i < n; i++){ | ^ a.cc:29:39: error: expected '...
s200354522
p00200
C++
// http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=0200 /* http://www.deqnotes.net/acmicpc/dijkstra/ 9 6 1 2 5 0 1 3 4 0 1 4 2 0 2 3 2 0 3 4 3 0 2 6 6 0 3 5 2 0 5 6 4 0 4 5 6 0 1 1 6 0 0 0 */ #include <cstdio> #include <climits> #include <cstring> #define STATION_MAX 101 //#define dprintf(arg1, ... ) prin...
a.cc: In function 'int main()': a.cc:83:38: error: 'lcost' was not declared in this scope 83 | if ( lcost[nowstat][i] == -1 ) { continue; } | ^~~~~ a.cc:83:44: error: 'nowstat' was not declared in this scope 83 | ...
s191872759
p00200
C++
#include<cstdio> #include<iostream> #include<string> #include<map> #include<queue> #include<set> using namespace std; #define rep(i,n) for(int i=0;i<n;i++) #define reps(i,n) for(int i=1;i<=n;i++) int main(){ while(1){ int m,n; cin>>m>>n; if(m==0)break; int dp[2][111][111]; rep(p,2){ rep(i,111){ ...
a.cc: In function 'int main()': a.cc:24:41: error: 'dpc' was not declared in this scope; did you mean 'dp'? 24 | dpc[p][i][j]=dpt[p][i][j]=1000000000; | ^~~ | dp a.cc:24:54: error: 'dpt...
s367836536
p00200
C++
#include<cstdio> int costs[100][100][2]; int main(){ int n,m,a,b; scanf("%d%d",&n,&m); while(n--){ scanf("%d%d",&a,&b); scanf("%d%d",&costs[a][b][0],&costs[a][b][1]); costs[b][a][0]=costs[a][b][0]; costs[b][a][1]=costs[a][b][1]; } for(int i=0;i<m;i++){ for(int j=0;j<m;j++){ for(int k=0;k<m;k++){ ...
a.cc: In function 'int main()': a.cc:26:24: error: 'k' was not declared in this scope 26 | scanf("%d&d&d",&a,&b,&k); | ^
s560612770
p00200
C++
#include<algorithm> #define MAX_M 101 #define MAX_N 301 #define MAX_K 201 #define MAX_INT 1 << 28; using namespace std; //dx[‰wa][‰wb][ƒXƒCƒbƒ`(0:‹àŠz, 1:ŽžŠÔ)] = (‰wa‚ƉwbŠÔ‚Ì‹àŠz or ŽžŠÔ) int dx[MAX_N][MAX_N][2]; //p‚©‚çq‚܂ł̍ŏ¬‹àŠz‚Ü‚½‚͍ŒZŽžŠÔ‚ð•Ô‚· int tell(int p, int q, int n, int m, int r); int main(){ /...
a.cc: In function 'int main()': a.cc:19:15: error: 'cin' was not declared in this scope 19 | while(cin >>n >>m){ | ^~~ a.cc:2:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>' 1 | #include<algorithm> +++ |+#include <iostr...