Borderou de evaluare (job #1519437)

Utilizator lorena1999Marginean Lorena lorena1999 Data 7 noiembrie 2015 12:38:39
Problema Taxe2 Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:5:7: error: ‘dx’ does not name a type const dx[]=(-1, +0 ,+1, +0); ^ user.cpp:6:7: error: ‘dy’ does not name a type dy[]=(+0, +1, +0, -1); ^ user.cpp: In function ‘int main()’: user.cpp:13:14: error: cannot bind ‘std::basic_istream<char>’ lvalue to ‘std::basic_istream<char>&&’ fin>>a>>n; ^ In file included from /usr/include/c++/4.8/iostream:40:0, from user.cpp:1: /usr/include/c++/4.8/istream:872: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 [105][105]]’ operator>>(basic_istream<_CharT, _Traits>&& __is, _Tp& __x) ^ user.cpp:15:17: error: ‘j’ was not declared in this scope for(j=1; j<=n; ++j) ^ user.cpp:17:19: error: ‘i’ was not declared in this scope d[i][j]= 999999; ^ user.cpp:17:22: error: ‘j’ was not declared in this scope d[i][j]= 999999; ^ user.cpp:30:22: error: ‘dx’ was not declared in this scope int xx=x+dx[k]; ^ user.cpp:31:23: error: ‘dy’ was not declared in this scope int yy=y+ dy[k]; ^

Ceva nu functioneaza?