Borderou de evaluare (job #2918935)
Utilizator | Data | 14 august 2022 09:47:23 | |
---|---|---|---|
Problema | Scara 3 | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:2:7: error: 'nmax' does not name a type; did you mean 'fmax'?
2 | const nmax=121;
| ^~~~
| fmax
main.cpp:3:20: error: 'nmax' was not declared in this scope; did you mean 'fmax'?
3 | unsigned long cost[nmax+1][nmax+1];
| ^~~~
| fmax
main.cpp:3:28: error: 'nmax' was not declared in this scope; did you mean 'fmax'?
3 | unsigned long cost[nmax+1][nmax+1];
| ^~~~
| fmax
main.cpp:4:17: error: 'nmax' was not declared in this scope; did you mean 'fmax'?
4 | unsigned long c[nmax+1],pd[nmax+1],d[nmax+1],min;
| ^~~~
| fmax
main.cpp:4:28: error: 'nmax' was not declared in this scope; did you mean 'fmax'?
4 | unsigned long c[nmax+1],pd[nmax+1],d[nmax+1],min;
| ^~~~
| fmax
main.cpp:4:38: error: 'nmax' was not declared in this scope; did you mean 'fmax'?
4 | unsigned long c[nmax+1],pd[nmax+1],d[nmax+1],min;
| ^~~~
| fmax
main.cpp:5:9: error: 'nmax' was not declared in this scope; did you mean 'fmax'?
5 | int eng[nmax+1];
| ^~~~
| fmax
main.cpp:7:1: error: '::main' must return 'int'
7 | void main()
| ^~~~
main.cpp: In function 'int main()':
main.cpp:8:2: error: 'ifstream' was not declared in this scope; did you mean 'std::ifstream'?
8 | {ifstream fi("scara3.in");
| ^~~~~~~~
| std::ifstream
In file included from /usr/include/c++/10/ios:38,
from /usr/include/c++/10/istream:38,
from /usr/include/c++/10/sstream:38,
from /usr/include/c++/10/complex:45,
from /usr/include/c++/10/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:54,
from main.cpp:1:
/usr/include/c++/10/iosfwd:162:34: note: 'std::ifstream' declared here
162 | typedef basic_ifstream<char> ifstream;
| ^~~~~~~~
main.cpp:9:2: error: 'ofstream' was not declared in this scope; did you mean 'std::ofstream'?
9 | ofstream fo("scara3.out");
| ^~~~~~~~
| std::ofstream
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !