Borderou de evaluare (job #1011271)
Utilizator | Data | 16 octombrie 2013 17:31:48 | |
---|---|---|---|
Problema | Suma | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:3:3: error: stray ‘#’ in program
..#include<conio.h>
^
user.cpp:3:1: error: expected unqualified-id before ‘.’ token
..#include<conio.h>
^
user.cpp: In function ‘int main()’:
user.cpp:10:2: error: ‘ifstream’ was not declared in this scope
ifstream f("suma.in");
^
user.cpp:10:2: note: suggested alternative:
In file included from /usr/local/include/c++/4.8.0/ios:38:0,
from /usr/local/include/c++/4.8.0/ostream:38,
from /usr/local/include/c++/4.8.0/iostream:39,
from user.cpp:1:
/usr/local/include/c++/4.8.0/iosfwd:157:34: note: ‘std::ifstream’
typedef basic_ifstream<char> ifstream;
^
user.cpp:10:11: error: expected ‘;’ before ‘f’
ifstream f("suma.in");
^
user.cpp:11:2: error: ‘f’ was not declared in this scope
f>>n>>p;
^
user.cpp:25:2: error: expected primary-expression before ‘.’ token
..getch();
^
user.cpp:25:3: error: expected unqualified-id before ‘.’ token
..getch();
^
user.cpp:27:2: error: ‘ofstream’ was not declared in this scope
ofstream g("suma.out");
^
user.cpp:27:2: note: suggested alternative:
In file included from /usr/local/include/c++/4.8.0/ios:38:0,
from /usr/local/include/c++/4.8.0/ostream:38,
from /usr/local/include/c++/4.8.0/iostream:39,
from user.cpp:1:
/usr/local/include/c++/4.8.0/iosfwd:160:34: note: ‘std::ofstream’
typedef basic_ofstream<char> ofstream;
^
user.cpp:27:11: error: expected ‘;’ before ‘g’
ofstream g("suma.out");
^
user.cpp:28:2: error: ‘g’ was not declared in this scope
g<<sum<<"\n";
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !