Borderou de evaluare (job #2257303)

Utilizator victordanielfanaru victor victordaniel Data 9 octombrie 2018 22:00:19
Problema Tsunami Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘int main()’: user.cpp:30:9: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation] for(i=1;i<=n;i++) ^~~ user.cpp:32:13: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the ‘for’ for(i=1;i<=n;i++) ^~~ user.cpp:24:29: warning: unused variable ‘s’ [-Wunused-variable] long long n,m,h,i,j,s=0,nr=0; ^ In file included from /usr/include/c++/6/bits/char_traits.h:39:0, from /usr/include/c++/6/ios:40, from /usr/include/c++/6/istream:38, from /usr/include/c++/6/sstream:38, from /usr/include/c++/6/complex:45, from /usr/include/c++/6/ccomplex:39, from /usr/include/x86_64-linux-gnu/c++/6/32/bits/stdc++.h:52, from user.cpp:1: /usr/include/c++/6/bits/stl_algobase.h: In instantiation of ‘typename __gnu_cxx::__enable_if<std::__is_scalar<_Tp>::__value, void>::__type std::__fill_a(_ForwardIterator, _ForwardIterator, const _Tp&) [with _ForwardIterator = long long int; _Tp = long long int; typename __gnu_cxx::__enable_if<std::__is_scalar<_Tp>::__value, void>::__type = void]’: /usr/include/c++/6/bits/stl_algobase.h:731:20: required from ‘void std::fill(_ForwardIterator, _ForwardIterator, const _Tp&) [with _ForwardIterator = long long int; _Tp = long long int]’ user.cpp:31:40: required from here /usr/include/c++/6/bits/stl_algobase.h:696:2: error: invalid type argument of unary ‘*’ (have ‘long long int’) *__first = __tmp; ^~~~~~~~

Ceva nu functioneaza?