Italai
- [1] 2025-10-29 09:21 (16.7)
- [2] 2025-10-29 09:27 (16.7)
- [3] 2025-11-07 20:47 (0)
- [4] 2025-11-07 20:56 (41.7)
Taškai: 0
Compile: FAIL
italai.cpp: In function ‘int main()’: italai.cpp:4:1: error: ‘ion_base’ has not been declared 4 | ion_base::sync_with_stdio(false); | ^~~~~~~~ italai.cpp:5:1: error: ‘cin’ was not declared in this scope; did you mean ‘std::cin’? 5 | cin.tie(nullptr); | ^~~ | std::cin In file included from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:75, from italai.cpp:1: /usr/include/c++/11/iostream:60:18: note: ‘std::cin’ declared here 60 | extern istream cin; /// Linked to standard input | ^~~ italai.cpp:6:1: error: ‘ifstream’ was not declared in this scope; did you mean ‘std::ifstream’? 6 | ifstream fin("italai.in"); | ^~~~~~~~ | std::ifstream In file included from /usr/include/c++/11/ios:38, from /usr/include/c++/11/istream:38, from /usr/include/c++/11/sstream:38, from /usr/include/c++/11/complex:45, from /usr/include/c++/11/ccomplex:39, from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:54, from italai.cpp:1: /usr/include/c++/11/iosfwd:162:41: note: ‘std::ifstream’ declared here 162 | typedef basic_ifstream<char> ifstream; | ^~~~~~~~ italai.cpp:7:1: error: ‘ofstream’ was not declared in this scope; did you mean ‘std::ofstream’? 7 | ofstream fout("italai.out"); | ^~~~~~~~ | std::ofstream In file included from /usr/include/c++/11/ios:38, from /usr/include/c++/11/istream:38, from /usr/include/c++/11/sstream:38, from /usr/include/c++/11/complex:45, from /usr/include/c++/11/ccomplex:39, from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:54, from italai.cpp:1: /usr/include/c++/11/iosfwd:165:41: note: ‘std::ofstream’ declared here 165 | typedef basic_ofstream<char> ofstream; | ^~~~~~~~ italai.cpp:9:1: error: ‘vector’ was not declared in this scope; did you mean ‘std::vector’? 9 | vector<long long> elementai; | ^~~~~~ | std::vector In file included from /usr/include/c++/11/vector:67, from /usr/include/c++/11/queue:61, from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:86, from italai.cpp:1: /usr/include/c++/11/bits/stl_vector.h:389:11: note: ‘std::vector’ declared here 389 | class vector : protected _Vector_base<_Tp, _Alloc> | ^~~~~~ italai.cpp:9:8: error: expected primary-expression before ‘long’ 9 | vector<long long> elementai; | ^~~~ italai.cpp:10:1: error: ‘fin’ was not declared in this scope; did you mean ‘sin’? 10 | fin>>T>>N; | ^~~ | sin italai.cpp:14:4: error: ‘elementai’ was not declared in this scope 14 | if(elementai.find(j)==elementai.end()) elementai.push_back(j); | ^~~~~~~~~ italai.cpp:18:1: error: ‘fout’ was not declared in this scope 18 | fout<<elementai.size(); | ^~~~ italai.cpp:18:7: error: ‘elementai’ was not declared in this scope 18 | fout<<elementai.size(); | ^~~~~~~~~
| nr. | result | time | message |
|---|
