Borderou de evaluare (job #1450946)

Utilizator valen.valentinValentin Valeanu valen.valentin Data 15 iunie 2015 12:30:10
Problema Dictree Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:6:22: error: ‘int j1’ redeclared as different kind of symbol int n,i,j,sol=1,m,i1,j1; ^ In file included from /usr/include/features.h:357:0, from /usr/include/stdio.h:28, from user.cpp:1: /usr/include/i386-linux-gnu/bits/mathcalls.h:240:1: error: previous declaration of ‘double j1(double)’ __MATHCALL (j1,, (_Mdouble_)); ^ user.cpp: In function ‘int main()’: user.cpp:18:49: error: assignment of function ‘double j1(double)’ n=s[i-1].size(); m=s[i].size(); i1=0; j1=0; ^ user.cpp:18:49: error: cannot convert ‘int’ to ‘double(double)throw ()’ in assignment user.cpp:19:27: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] while (i1<n && j1<m){ ^ user.cpp:20:36: error: invalid conversion from ‘double (*)(double)throw ()’ to ‘std::basic_string<char>::size_type {aka unsigned int}’ [-fpermissive] if (s[i-1][i1]!=s[i][j1]) break; ^ In file included from /usr/include/c++/4.8/string:52:0, from user.cpp:2: /usr/include/c++/4.8/bits/basic_string.h:843:7: error: initializing argument 1 of ‘std::basic_string<_CharT, _Traits, _Alloc>::reference std::basic_string<_CharT, _Traits, _Alloc>::operator[](std::basic_string<_CharT, _Traits, _Alloc>::size_type) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; std::basic_string<_CharT, _Traits, _Alloc>::reference = char&; std::basic_string<_CharT, _Traits, _Alloc>::size_type = unsigned int]’ [-fpermissive] operator[](size_type __pos) ^ user.cpp:23:20: error: invalid operands of types ‘int’ and ‘double(double)throw ()’ to binary ‘operator-’ sol=sol+(m-j1-1); ^

Ceva nu functioneaza?