Borderou de evaluare (job #1653395)
Utilizator | Data | 15 martie 2016 22:43:29 | |
---|---|---|---|
Problema | Nucleul Valoros Season 2 | Status | done |
Runda | Arhiva ICPC | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘int main()’:
user.cpp:13:12: error: cannot bind ‘std::basic_istream<char>’ lvalue to ‘std::basic_istream<char>&&’
f>>a;
^
In file included from /usr/include/c++/4.8/sstream:38:0,
from /usr/include/c++/4.8/complex:45,
from /usr/include/c++/4.8/ccomplex:38,
from /usr/include/i386-linux-gnu/c++/4.8/bits/stdc++.h:52,
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 = long long int [3001]]’
operator>>(basic_istream<_CharT, _Traits>&& __is, _Tp& __x)
^
user.cpp:14:11: error: incompatible types in assignment of ‘int64_t [3001] {aka long long int [3001]}’ to ‘int64_t [3001][3001] {aka long long int [3001][3001]}’
dp=a;
^
user.cpp:15:10: error: incompatible types in assignment of ‘int64_t {aka long long int}’ to ‘int64_t [3001] {aka long long int [3001]}’
a+=a[i-1];
^
user.cpp:16:10: error: incompatible types in assignment of ‘int’ to ‘int [3001][3001]’
b=i;
^
user.cpp:21:20: error: invalid conversion from ‘int*’ to ‘int’ [-fpermissive]
l=b[j-1];
^
user.cpp:23:18: error: incompatible types in assignment of ‘long long int’ to ‘int64_t [3001] {aka long long int [3001]}’
dp[j]=(1LL<<60);
^
user.cpp:26:24: error: invalid conversion from ‘int64_t* {aka long long int*}’ to ‘int64_t {aka long long int}’ [-fpermissive]
m=dp[k]+dp[k+1][j];
^
user.cpp:27:26: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
if(m<dp[j])
^
user.cpp:29:26: error: incompatible types in assignment of ‘int64_t {aka long long int}’ to ‘int64_t [3001] {aka long long int [3001]}’
dp[j]=m;
^
user.cpp:30:25: error: incompatible types in assignment of ‘int’ to ‘int [3001]’
b[j]=k;
^
user.cpp:33:18: error: incompatible types in assignment of ‘int64_t {aka long long int}’ to ‘int64_t [3001] {aka long long int [3001]}’
dp[j]+=a[j]-a[i-1];
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !