Borderou de evaluare (job #1431440)
Utilizator | Data | 9 mai 2015 10:46:25 | |
---|---|---|---|
Problema | Secv1 | Status | done |
Runda | test_practic_pa_1 | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:3:1: error: ‘std’ does not name a type
std using namespace std;
^
user.cpp: In function ‘int main()’:
user.cpp:8:5: error: ‘ifstream’ was not declared in this scope
ifstream f("secv1.in");
^
user.cpp:8:5: note: suggested alternative:
In file included from /usr/include/c++/4.8/ios:38:0,
from /usr/include/c++/4.8/istream:38,
from /usr/include/c++/4.8/fstream:38,
from user.cpp:2:
/usr/include/c++/4.8/iosfwd:157:34: note: ‘std::ifstream’
typedef basic_ifstream<char> ifstream;
^
user.cpp:8:14: error: expected ‘;’ before ‘f’
ifstream f("secv1.in");
^
user.cpp:9:5: error: ‘ofstream’ was not declared in this scope
ofstream g("secv1.out");
^
user.cpp:9:5: note: suggested alternative:
In file included from /usr/include/c++/4.8/ios:38:0,
from /usr/include/c++/4.8/istream:38,
from /usr/include/c++/4.8/fstream:38,
from user.cpp:2:
/usr/include/c++/4.8/iosfwd:160:34: note: ‘std::ofstream’
typedef basic_ofstream<char> ofstream;
^
user.cpp:9:14: error: expected ‘;’ before ‘g’
ofstream g("secv1.out");
^
user.cpp:10:5: error: ‘f’ was not declared in this scope
f>>n;
^
user.cpp:24:9: error: ‘max’ was not declared in this scope
max=1;
^
user.cpp:24:9: note: suggested alternative:
In file included from /usr/include/c++/4.8/bits/char_traits.h:39:0,
from /usr/include/c++/4.8/ios:40,
from /usr/include/c++/4.8/istream:38,
from /usr/include/c++/4.8/fstream:38,
from user.cpp:2:
/usr/include/c++/4.8/bits/stl_algobase.h:260:5: note: ‘std::max’
max(const _Tp& __a, const _Tp& __b, _Compare __comp)
^
user.cpp:30:13: error: ‘g’ was not declared in this scope
g<<max;
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !