Borderou de evaluare (job #340436)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Lightbot (clasa a 6-a) | Compilator | cpp |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 18 ian. 2018 11:15:29 | Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘int main()’:
user.cpp:13:17: error: cannot bind ‘std::basic_istream<char>::__istream_type {aka std::basic_istream<char>}’ lvalue to ‘std::basic_istream<char>&&’
/usr/include/c++/4.6/istream:852:5: error: initializing argument 1 of ‘std::basic_istream<_CharT, _Traits>& std::operator>>(std::basic_istream<_CharT, _Traits>&&, _Tp&) [with _CharT = char, _Traits = std::char_traits<char>, _Tp = int [500000]]’
user.cpp:26:21: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
user.cpp:37:18: error: invalid operands of types ‘int’ and ‘int [500000]’ to binary ‘operator-’
user.cpp:43:18: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
user.cpp:48:15: error: incompatible types in assignment of ‘int’ to ‘int [500000]’
user.cpp:8:13: warning: unused variable ‘a’ [-Wunused-variable]