Borderou de evaluare (job #2640700)
Utilizator | Data | 7 august 2020 15:55:28 | |
---|---|---|---|
Problema | Secventa 2 | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:10:42: error: 'int index' redeclared as different kind of symbol
int N, K, left, right, max_sum, sum = 0, index = 1;
^~~~~
In file included from /usr/include/c++/6/cstring:42:0,
from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:48,
from main.cpp:1:
/usr/include/string.h:477:1: note: previous declaration 'const char* index(const char*, int)'
index (const char *__s, int __c) __THROW
^~~~~
main.cpp:11:11: error: size of array 'v' has non-integral type 'double'
int v[maxn], sp[maxn];
^
main.cpp:11:21: error: size of array 'sp' has non-integral type 'double'
int v[maxn], sp[maxn];
^
main.cpp: In function 'int main()':
main.cpp:14:12: error: 'n' was not declared in this scope
fin >> n >> n;
^
main.cpp:15:25: error: 'k' was not declared in this scope
for(int i = 1; i <= k ; i++) {
^
main.cpp:21:5: error: reference to 'left' is ambiguous
left = 1;
^~~~
main.cpp:10:11: note: candidates are: int left
int N, K, left, right, max_sum, sum = 0, index = 1;
^~~~
In file included from /usr/include/c++/6/ios:42:0,
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/bits/stdc++.h:52,
from main.cpp:1:
/usr/include/c++/6/bits/ios_base.h:999:3: note: std::ios_base& std::left(std::ios_base&)
left(ios_base& __base)
^~~~
main.cpp:22:5: error: reference to 'right' is ambiguous
right = k;
^~~~~
main.cpp:10:17: note: candidates are: int right
int N, K, left, right, max_sum, sum = 0, index = 1;
^~~~~
In file included from /usr/include/c++/6/ios:42:0,
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/bits/stdc++.h:52,
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !