Borderou de evaluare (job #713940)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Ouă (clasa a 6-a) | Compilator | cpp-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 31 mar. 2023 10:45:03 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:10:5: error: 'ifstream' was not declared in this scope; did you mean 'std::ifstream'?
10 | ifstream cin("oua.in");
| ^~~~~~~~
| std::ifstream
In file included from /usr/lib/gcc/i686-pc-linux-gnu/11/include/g++-v11/ios:38,
from /usr/lib/gcc/i686-pc-linux-gnu/11/include/g++-v11/istream:38,
from /usr/lib/gcc/i686-pc-linux-gnu/11/include/g++-v11/fstream:38,
from main.cpp:1:
/usr/lib/gcc/i686-pc-linux-gnu/11/include/g++-v11/iosfwd:162:41: note: 'std::ifstream' declared here
162 | typedef basic_ifstream<char> ifstream;
| ^~~~~~~~
main.cpp:11:5: error: 'ofstream' was not declared in this scope; did you mean 'std::ofstream'?
11 | ofstream cout("oua.out");
| ^~~~~~~~
| std::ofstream
In file included from /usr/lib/gcc/i686-pc-linux-gnu/11/include/g++-v11/ios:38,
from /usr/lib/gcc/i686-pc-linux-gnu/11/include/g++-v11/istream:38,
from /usr/lib/gcc/i686-pc-linux-gnu/11/include/g++-v11/fstream:38,
from main.cpp:1:
/usr/lib/gcc/i686-pc-linux-gnu/11/include/g++-v11/iosfwd:165:41: note: 'std::ofstream' declared here
165 | typedef basic_ofstream<char> ofstream;
| ^~~~~~~~
main.cpp:13:5: error: 'cin' was not declared in this scope; did you mean 'in'?
13 | cin >> l >> p;
| ^~~
| in
main.cpp:23:9: error: 'pajiste' was not declared in this scope
23 | pajiste[i][j] = val;
| ^~~~~~~
main.cpp:51:22: error: 'ldir' was not declared in this scope; did you mean 'ldiv'?
51 | i += ldir[dir[in]];
| ^~~~
| ldiv
main.cpp:52:22: error: 'cdir' was not declared in this scope; did you mean 'dir'?
52 | j += cdir[dir[in]];
| ^~~~
| dir
main.cpp:59:14: error: 'max' was not declared in this scope; did you mean 'std::max'?
59 | cosm=max(cosm, s[i]);
| ^~~
| std::max
In file included from /usr/lib/gcc/i686-pc-linux-gnu/11/include/g++-v11/bits/char_traits.h:39,
from /usr/lib/gcc/i686-pc-linux-gnu/11/include/g++-v11/ios:40,
from /usr/lib/gcc/i686-pc-linux-gnu/11/include/g++-v11/istream:38,
from /usr/lib/gcc/i686-pc-linux-gnu/11/include/g++-v11/fstream:38,
from main.cpp:1:
/usr/lib/gcc/i686-pc-linux-gnu/11/include/g++-v11/bits/stl_algobase.h:300:5: note: 'std::max' declared here
300 | max(const _Tp& __a, const _Tp& __b, _Compare __comp)
| ^~~