Borderou de evaluare (job #1505778)
Utilizator | Data | 19 octombrie 2015 19:10:52 | |
---|---|---|---|
Problema | Scara 3 | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:3:7: error: ‘nmax’ does not name a type
const nmax=121;
^
user.cpp:4:20: error: ‘nmax’ was not declared in this scope
unsigned long cost[nmax+1][nmax+1];
^
user.cpp:4:28: error: ‘nmax’ was not declared in this scope
unsigned long cost[nmax+1][nmax+1];
^
user.cpp:5:17: error: ‘nmax’ was not declared in this scope
unsigned long c[nmax+1],pd[nmax+1],d[nmax+1],min;
^
user.cpp:5:28: error: ‘nmax’ was not declared in this scope
unsigned long c[nmax+1],pd[nmax+1],d[nmax+1],min;
^
user.cpp:5:38: error: ‘nmax’ was not declared in this scope
unsigned long c[nmax+1],pd[nmax+1],d[nmax+1],min;
^
user.cpp:6:9: error: ‘nmax’ was not declared in this scope
int eng[nmax+1];
^
user.cpp:8:11: error: ‘::main’ must return ‘int’
void main()
^
user.cpp: In function ‘int main()’:
user.cpp:9:2: error: ‘ifstream’ was not declared in this scope
{ifstream fi("scara3.in");
^
user.cpp:9:2: 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:1:
/usr/include/c++/4.8/iosfwd:157:34: note: ‘std::ifstream’
typedef basic_ifstream<char> ifstream;
^
user.cpp:9:11: error: expected ‘;’ before ‘fi’
{ifstream fi("scara3.in");
^
user.cpp:10:2: error: ‘ofstream’ was not declared in this scope
ofstream fo("scara3.out");
^
user.cpp:10:2: 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:1:
/usr/include/c++/4.8/iosfwd:160:34: note: ‘std::ofstream’
typedef basic_ofstream<char> ofstream;
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !