Borderou de evaluare (job #1971203)
Utilizator | Data | 19 aprilie 2017 23:00:50 | |
---|---|---|---|
Problema | Plicuri | 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:17:20: error: conflicting declaration ‘plicuri a [256000]’
plicuri a[256000];
^
user.cpp:16:14: error: ‘a’ has a previous declaration as ‘long long int a’
long long a;
^
user.cpp:22:11: error: a function-definition is not allowed here before ‘{’ token
int main(){
^
user.cpp:36:1: error: expected ‘}’ at end of input
}
^
In file included from /usr/include/c++/4.8/algorithm:62:0,
from /usr/include/i386-linux-gnu/c++/4.8/bits/stdc++.h:64,
from user.cpp:1:
/usr/include/c++/4.8/bits/stl_algo.h: In instantiation of ‘void std::sort(_RAIter, _RAIter, _Compare) [with _RAIter = long long int; _Compare = bool (*)(plicuri, plicuri)]’:
user.cpp:20:24: required from here
/usr/include/c++/4.8/bits/stl_algo.h:5501:2: error: no type named ‘value_type’ in ‘struct std::iterator_traits<long long int>’
_ValueType;
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !