Borderou de evaluare (job #688724)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Pav | Compilator | cpp-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 19 ian. 2023 18:43:57 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'void construire(int, int, int, int, int, int)':
main.cpp:8:7: warning: suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else]
8 | if(i1<i2)
| ^
main.cpp: In function 'int main()':
main.cpp:70:5: error: 'ifstream' was not declared in this scope; did you mean 'std::ifstream'?
70 | ifstream fin("forma.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:71:5: error: 'fin' was not declared in this scope
71 | fin>>n;
| ^~~
main.cpp:78:5: error: 'ofstream' was not declared in this scope; did you mean 'std::ofstream'?
78 | ofstream fout("forma.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:82:13: error: 'fout' was not declared in this scope
82 | fout<<a[i][j]<<" ";
| ^~~~
main.cpp:83:9: error: 'fout' was not declared in this scope
83 | fout<<'\n';
| ^~~~
main.cpp:85:5: error: 'fout' was not declared in this scope
85 | fout.close();
| ^~~~