Borderou de evaluare (job #651122)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Control (clasa a 6-a) | Compilator | cpp-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 25 mai 2022 15:34:45 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:3:17: error: 'st' is not a namespace-name
3 | using namespace st;
| ^~
main.cpp: In function 'int main()':
main.cpp:7:5: error: 'ifstream' was not declared in this scope; did you mean 'std::ifstream'?
7 | ifstream fin("control.in");
| ^~~~~~~~
| std::ifstream
In file included from /usr/lib/gcc/i686-pc-linux-gnu/11.2.1/include/g++-v11/ios:38,
from /usr/lib/gcc/i686-pc-linux-gnu/11.2.1/include/g++-v11/istream:38,
from /usr/lib/gcc/i686-pc-linux-gnu/11.2.1/include/g++-v11/fstream:38,
from main.cpp:1:
/usr/lib/gcc/i686-pc-linux-gnu/11.2.1/include/g++-v11/iosfwd:162:41: note: 'std::ifstream' declared here
162 | typedef basic_ifstream<char> ifstream;
| ^~~~~~~~
main.cpp:8:5: error: 'ofstream' was not declared in this scope; did you mean 'std::ofstream'?
8 | ofstream fout("control.out");
| ^~~~~~~~
| std::ofstream
In file included from /usr/lib/gcc/i686-pc-linux-gnu/11.2.1/include/g++-v11/ios:38,
from /usr/lib/gcc/i686-pc-linux-gnu/11.2.1/include/g++-v11/istream:38,
from /usr/lib/gcc/i686-pc-linux-gnu/11.2.1/include/g++-v11/fstream:38,
from main.cpp:1:
/usr/lib/gcc/i686-pc-linux-gnu/11.2.1/include/g++-v11/iosfwd:165:41: note: 'std::ofstream' declared here
165 | typedef basic_ofstream<char> ofstream;
| ^~~~~~~~
main.cpp:10:5: error: 'fin' was not declared in this scope
10 | fin>>n;
| ^~~
main.cpp:13:9: error: 'cin' was not declared in this scope
13 | cin>>a;
| ^~~
main.cpp:14:9: error: 'v' was not declared in this scope
14 | v[a]++;
| ^
main.cpp:18:12: error: 'v' was not declared in this scope
18 | if(v[i]!=0)
| ^
main.cpp:20:13: error: 'k' was not declared in this scope
20 | k[numar]=v[i]
| ^
main.cpp:35:5: error: 'fout' was not declared in this scope
35 | fout<<nr;
| ^~~~