Ugnikalnis
- [1] 2021-12-17 10:30 (83.9)
- [2] 2021-12-17 10:34 (93.5)
- [3] 2021-12-17 10:36 (0)
- [4] 2021-12-18 12:12 (0)
- [5] 2021-12-18 12:13 (100)
Taškai: 0
Compile: FAIL
ugnikalnis.cpp:4:16: error: two or more data types in declaration of ‘type name’ vector <double double> duomenys[1000]; ^ ugnikalnis.cpp:4:22: error: template argument 1 is invalid vector <double double> duomenys[1000]; ^ ugnikalnis.cpp:4:22: error: template argument 2 is invalid ugnikalnis.cpp:6:16: error: two or more data types in declaration of ‘type name’ vector <double double> mas[1000]; ^ ugnikalnis.cpp:6:22: error: template argument 1 is invalid vector <double double> mas[1000]; ^ ugnikalnis.cpp:6:22: error: template argument 2 is invalid ugnikalnis.cpp:10:15: error: two or more data types in declaration of ‘kmax’ double double kmax = (1e9)+1, dmax = 0; ^ ugnikalnis.cpp:10:31: error: two or more data types in declaration of ‘dmax’ double double kmax = (1e9)+1, dmax = 0; ^ ugnikalnis.cpp: In function ‘void dfs(int)’: ugnikalnis.cpp:14:5: error: ‘kmax’ was not declared in this scope kmax = min(duomenys[l][0]-duomenys[l][2], kmax); ^ ugnikalnis.cpp:14:29: error: invalid types ‘int[int]’ for array subscript kmax = min(duomenys[l][0]-duomenys[l][2], kmax); ^ ugnikalnis.cpp:14:44: error: invalid types ‘int[int]’ for array subscript kmax = min(duomenys[l][0]-duomenys[l][2], kmax); ^ ugnikalnis.cpp:15:5: error: ‘dmax’ was not declared in this scope dmax = max(duomenys[l][0]+duomenys[l][2], dmax); ^ ugnikalnis.cpp:15:29: error: invalid types ‘int[int]’ for array subscript dmax = max(duomenys[l][0]+duomenys[l][2], dmax); ^ ugnikalnis.cpp:15:44: error: invalid types ‘int[int]’ for array subscript dmax = max(duomenys[l][0]+duomenys[l][2], dmax); ^ ugnikalnis.cpp:16:30: error: request for member ‘size’ in ‘mas[l]’, which is of non-class type ‘int’ for (int i = 0; i<mas[l].size(); i++){ ^ ugnikalnis.cpp:17:24: error: invalid types ‘int[int]’ for array subscript if (ar[mas[l][i]] != true) dfs(mas[l][i]); ^ ugnikalnis.cpp:17:48: error: invalid types ‘int[int]’ for array subscript if (ar[mas[l][i]] != true) dfs(mas[l][i]); ^ ugnikalnis.cpp: In function ‘int main()’: ugnikalnis.cpp:23:19: error: two or more data types in declaration of ‘x’ double double x, y, r; ^ ugnikalnis.cpp:23:22: error: two or more data types in declaration of ‘y’ double double x, y, r; ^ ugnikalnis.cpp:23:25: error: two or more data types in declaration of ‘r’ double double x, y, r; ^ ugnikalnis.cpp:30:23: error: two or more data types in declaration of ‘w’ double double w, l; ^ ugnikalnis.cpp:30:26: error: two or more data types in declaration of ‘l’ double double w, l; ^ ugnikalnis.cpp:31:21: error: ‘w’ was not declared in this scope cin >> n >> w >> l; ^ ugnikalnis.cpp:31:26: error: ‘l’ was not declared in this scope cin >> n >> w >> l; ^ ugnikalnis.cpp:34:20: error: ‘x’ was not declared in this scope cin >> x >> y >> r; ^ ugnikalnis.cpp:34:25: error: ‘y’ was not declared in this scope cin >> x >> y >> r; ^ ugnikalnis.cpp:34:30: error: ‘r’ was not declared in this scope cin >> x >> y >> r; ^ ugnikalnis.cpp:35:25: error: request for member ‘push_back’ in ‘duomenys[p]’, which is of non-class type ‘int’ duomenys[p].push_back(x); ^ ugnikalnis.cpp:36:25: error: request for member ‘push_back’ in ‘duomenys[p]’, which is of non-class type ‘int’ duomenys[p].push_back(y); ^ ugnikalnis.cpp:37:25: error: request for member ‘push_back’ in ‘duomenys[p]’, which is of non-class type ‘int’ duomenys[p].push_back(r); ^ ugnikalnis.cpp:44:31: error: two or more data types in declaration of ‘h1’ double double h1 = sqrt((duomenys[j][0]-duomenys[z][0])*(duomenys[j][0]-duomenys[z][0])+(duomenys[j][1]-duomenys[z][1])*(duomenys[j][1]-duomenys[z][1])); ^ ugnikalnis.cpp:44:55: error: invalid types ‘int[int]’ for array subscript double double h1 = sqrt((duomenys[j][0]-duomenys[z][0])*(duomenys[j][0]-duomenys[z][0])+(duomenys[j][1]-duomenys[z][1])*(duomenys[j][1]-duomenys[z][1])); ^ ugnikalnis.cpp:44:70: error: invalid types ‘int[int]’ for array subscript double double h1 = sqrt((duomenys[j][0]-duomenys[z][0])*(duomenys[j][0]-duomenys[z][0])+(duomenys[j][1]-duomenys[z][1])*(duomenys[j][1]-duomenys[z][1])); ^ ugnikalnis.cpp:44:87: error: invalid types ‘int[int]’ for array subscript double double h1 = sqrt((duomenys[j][0]-duomenys[z][0])*(duomenys[j][0]-duomenys[z][0])+(duomenys[j][1]-duomenys[z][1])*(duomenys[j][1]-duomenys[z][1])); ^ ugnikalnis.cpp:44:102: error: invalid types ‘int[int]’ for array subscript double double h1 = sqrt((duomenys[j][0]-duomenys[z][0])*(duomenys[j][0]-duomenys[z][0])+(duomenys[j][1]-duomenys[z][1])*(duomenys[j][1]-duomenys[z][1])); ^ ugnikalnis.cpp:44:119: error: invalid types ‘int[int]’ for array subscript double double h1 = sqrt((duomenys[j][0]-duomenys[z][0])*(duomenys[j][0]-duomenys[z][0])+(duomenys[j][1]-duomenys[z][1])*(duomenys[j][1]-duomenys[z][1])); ^ ugnikalnis.cpp:44:134: error: invalid types ‘int[int]’ for array subscript double double h1 = sqrt((duomenys[j][0]-duomenys[z][0])*(duomenys[j][0]-duomenys[z][0])+(duomenys[j][1]-duomenys[z][1])*(duomenys[j][1]-duomenys[z][1])); ^ ugnikalnis.cpp:44:151: error: invalid types ‘int[int]’ for array subscript double double h1 = sqrt((duomenys[j][0]-duomenys[z][0])*(duomenys[j][0]-duomenys[z][0])+(duomenys[j][1]-duomenys[z][1])*(duomenys[j][1]-duomenys[z][1])); ^ ugnikalnis.cpp:44:166: error: invalid types ‘int[int]’ for array subscript double double h1 = sqrt((duomenys[j][0]-duomenys[z][0])*(duomenys[j][0]-duomenys[z][0])+(duomenys[j][1]-duomenys[z][1])*(duomenys[j][1]-duomenys[z][1])); ^ ugnikalnis.cpp:45:21: error: ‘h1’ was not declared in this scope if (h1<(duomenys[z][2]+duomenys[j][2])){ ^ ugnikalnis.cpp:45:38: error: invalid types ‘int[int]’ for array subscript if (h1<(duomenys[z][2]+duomenys[j][2])){ ^ ugnikalnis.cpp:45:53: error: invalid types ‘int[int]’ for array subscript if (h1<(duomenys[z][2]+duomenys[j][2])){ ^ ugnikalnis.cpp:46:28: error: request for member ‘push_back’ in ‘mas[j]’, which is of non-class type ‘int’ mas[j].push_back(z); ^ ugnikalnis.cpp:47:28: error: request for member ‘push_back’ in ‘mas[z]’, which is of non-class type ‘int’ mas[z].push_back(j); ^ ugnikalnis.cpp:58:17: error: ‘kmax’ was not declared in this scope if (kmax<=0 && dmax >= w){ ^ ugnikalnis.cpp:58:28: error: ‘dmax’ was not declared in this scope if (kmax<=0 && dmax >= w){ ^ ugnikalnis.cpp:61:17: error: ‘kmax’ was not declared in this scope kmax = (1e9)+1; ^ ugnikalnis.cpp:62:17: error: ‘dmax’ was not declared in this scope dmax = 0; ^ ugnikalnis.cpp:70:25: error: request for member ‘clear’ in ‘duomenys[g]’, which is of non-class type ‘int’ duomenys[g].clear(); ^ ugnikalnis.cpp:71:20: error: request for member ‘clear’ in ‘mas[g]’, which is of non-class type ‘int’ mas[g].clear(); ^ ugnikalnis.cpp:80:1: error: expected ‘}’ at end of input } ^
nr. | result | time | message |
---|