Borderou de evaluare (job #1335558)
| Utilizator | Data | 5 februarie 2015 18:13:00 | |
|---|---|---|---|
| Problema | Lungimi de interval | Status | done |
| Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
| Scor | 0 | ||
Raport evaluator
Eroare de compilare:
user.cpp:2:1: error: ‘define’ does not name a type
define int64 long long
^
user.cpp:5:1: error: ‘ifstream’ does not name a type
ifstream in("linterv.in");
^
user.cpp:6:1: error: ‘ofstream’ does not name a type
ofstream out("linterv.out");
^
user.cpp:7:1: error: ‘vector’ does not name a type
vector< pair<int,int> > a;
^
user.cpp:8:1: error: ‘int64’ does not name a type
int64 n,x,y,sum,t;
^
user.cpp: In function ‘int main()’:
user.cpp:11:9: error: ‘in’ was not declared in this scope
for(in>>t;t;t--)
^
user.cpp:11:13: error: ‘t’ was not declared in this scope
for(in>>t;t;t--)
^
user.cpp:13:13: error: ‘n’ was not declared in this scope
in>>n;
^
user.cpp:14:9: error: ‘a’ was not declared in this scope
a=vector< pair<int,int> >();
^
user.cpp:14:11: error: ‘vector’ was not declared in this scope
a=vector< pair<int,int> >();
^
user.cpp:14:11: note: suggested alternative:
In file included from /usr/include/c++/4.8/vector:64:0,
from /usr/include/c++/4.8/bits/random.h:34,
from /usr/include/c++/4.8/random:50,
from /usr/include/c++/4.8/bits/stl_algo.h:65,
from /usr/include/c++/4.8/algorithm:62,
from /usr/include/i386-linux-gnu/c++/4.8/bits/stdc++.h:64,
from user.cpp:1:
/usr/include/c++/4.8/bits/stl_vector.h:210:11: note: ‘std::vector’
class vector : protected _Vector_base<_Tp, _Alloc>
^
user.cpp:14:19: error: ‘pair’ was not declared in this scope
a=vector< pair<int,int> >();
^
user.cpp:14:19: note: suggested alternative:
In file included from /usr/include/c++/4.8/bits/stl_algobase.h:64:0,
from /usr/include/c++/4.8/bits/char_traits.h:39,
from /usr/include/c++/4.8/ios:40,
from /usr/include/c++/4.8/istream:38,
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !
