Borderou de evaluare (job #1544439)
Utilizator | Data | 6 decembrie 2015 13:13:35 | |
---|---|---|---|
Problema | KBetray | Status | done |
Runda | Algoritmiada 2016 - Runda 1, Juniori | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:3:1: error: stray ‘##’ in program
##include<fstream.h>
^
user.cpp:3:3: error: ‘include’ does not name a type
##include<fstream.h>
^
user.cpp: In function ‘int main()’:
user.cpp:11:2: error: ‘ifstream’ was not declared in this scope
ifstream f("KBetray.in");
^
user.cpp:11:2: note: suggested alternative:
In file included from /usr/include/c++/4.8/ios:38:0,
from /usr/include/c++/4.8/ostream:38,
from /usr/include/c++/4.8/iostream:39,
from user.cpp:2:
/usr/include/c++/4.8/iosfwd:157:34: note: ‘std::ifstream’
typedef basic_ifstream<char> ifstream;
^
user.cpp:11:11: error: expected ‘;’ before ‘f’
ifstream f("KBetray.in");
^
user.cpp:12:2: error: ‘ofstream’ was not declared in this scope
ofstream g("KBetray.out");
^
user.cpp:12:2: note: suggested alternative:
In file included from /usr/include/c++/4.8/ios:38:0,
from /usr/include/c++/4.8/ostream:38,
from /usr/include/c++/4.8/iostream:39,
from user.cpp:2:
/usr/include/c++/4.8/iosfwd:160:34: note: ‘std::ofstream’
typedef basic_ofstream<char> ofstream;
^
user.cpp:12:11: error: expected ‘;’ before ‘g’
ofstream g("KBetray.out");
^
user.cpp:13:2: error: ‘f’ was not declared in this scope
f>>m;
^
user.cpp:13:5: error: ‘m’ was not declared in this scope
f>>m;
^
user.cpp:15:2: error: ‘cin’ was not declared in this scope
cin>>n>>k;
^
user.cpp:15:2: note: suggested alternative:
In file included from user.cpp:2:0:
/usr/include/c++/4.8/iostream:60:18: note: ‘std::cin’
extern istream cin; /// Linked to standard input
^
user.cpp:19:2: error: ‘cout’ was not declared in this scope
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !