Borderou de evaluare (job #605462)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | La școală (clasa a 5-a) | Compilator | cpp-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 5 sept. 2021 12:47:22 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:14:5: warning: "/*" within comment [-Wcomment]
14 | /*while(true)
|
main.cpp:28:5: warning: "/*" within comment [-Wcomment]
28 | /*p = sqrt(k);
|
main.cpp:49:1: error: 'include' does not name a type
49 | include <fstream>
| ^~~~~~~
In file included from /usr/lib/gcc/i686-pc-linux-gnu/10.3.0/include/g++-v10/cmath:43,
from main.cpp:51:
/usr/lib/gcc/i686-pc-linux-gnu/10.3.0/include/g++-v10/ext/type_traits.h:162:35: error: 'bool __gnu_cxx::__is_null_pointer' redeclared as different kind of entity
162 | __is_null_pointer(std::nullptr_t)
| ^
/usr/lib/gcc/i686-pc-linux-gnu/10.3.0/include/g++-v10/ext/type_traits.h:157:5: note: previous declaration 'template<class _Type> bool __gnu_cxx::__is_null_pointer(_Type)'
157 | __is_null_pointer(_Type)
| ^~~~~~~~~~~~~~~~~
/usr/lib/gcc/i686-pc-linux-gnu/10.3.0/include/g++-v10/ext/type_traits.h:162:26: error: 'nullptr_t' is not a member of 'std'
162 | __is_null_pointer(std::nullptr_t)
| ^~~~~~~~~
main.cpp:55:1: error: 'ifstream' does not name a type
55 | ifstream in("lascoala.in");
| ^~~~~~~~
main.cpp:57:1: error: 'ofstream' does not name a type
57 | ofstream out("lascoala.out");
| ^~~~~~~~
main.cpp: In function 'int main()':
main.cpp:79:5: error: 'in' was not declared in this scope; did you mean 'n'?
79 | in>>n;
| ^~
| n
main.cpp:91:5: error: 'out' was not declared in this scope
91 | out<<n<<'\n';
| ^~~