Kelionė namo 1
- [1] 2020-04-18 11:55 (35.3)
- [2] 2020-04-18 11:58 (76.5)
- [3] 2020-04-18 11:59 (76.5)
- [4] 2020-04-18 12:08 (100)
- [5] 2020-04-18 15:22 (0)
Taškai: 0
Compile: FAIL
kelione_namo_1.cpp:1:1: error: ‘include’ does not name a type include <bits/stdc++.h> ^ kelione_namo_1.cpp:5:1: error: ‘string’ does not name a type string lelija; ^ kelione_namo_1.cpp: In function ‘int hop(int, int)’: kelione_namo_1.cpp:15:17: error: ‘lelija’ was not declared in this scope else if(lelija[vieta+dd]=='1'){ ^ kelione_namo_1.cpp: In function ‘int main()’: kelione_namo_1.cpp:28:5: error: ‘cin’ was not declared in this scope cin.tie(nullptr); ^ kelione_namo_1.cpp:29:5: error: ‘ios_base’ has not been declared ios_base::sync_with_stdio(0); ^ kelione_namo_1.cpp:31:5: error: ‘ifstream’ was not declared in this scope ifstream fd ("kelione_namo_1.in"); ^ kelione_namo_1.cpp:32:5: error: ‘ofstream’ was not declared in this scope ofstream fr ("kelione_namo_1.out"); ^ kelione_namo_1.cpp:35:5: error: ‘fd’ was not declared in this scope fd >> n >> d; ^ kelione_namo_1.cpp:36:11: error: ‘lelija’ was not declared in this scope fd >> lelija; ^ kelione_namo_1.cpp:40:5: error: ‘fr’ was not declared in this scope fr << hop(vieta, dd) << endl; ^ kelione_namo_1.cpp:40:29: error: ‘endl’ was not declared in this scope fr << hop(vieta, dd) << endl; ^
nr. | result | time | message |
---|