Borderou de evaluare (job #1713117)
Utilizator | Data | 4 iunie 2016 19:10:24 | |
---|---|---|---|
Problema | Granita | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:2:1: error: ‘ifstream’ does not name a type
ifstream fin("granita.in");
^
user.cpp:3:1: error: ‘ofstream’ does not name a type
ofstream fout("granita.out");
^
user.cpp:6:11: error: expected unqualified-id before ‘)’ token
struct xy(){
^
user.cpp: In function ‘bool comp(xy, xy)’:
user.cpp:10:6: error: ‘x’ has incomplete type
bool comp(xy x,xy y){
^
user.cpp:6:8: error: forward declaration of ‘struct xy’
struct xy(){
^
user.cpp:10:6: error: ‘y’ has incomplete type
bool comp(xy x,xy y){
^
user.cpp:6:8: error: forward declaration of ‘struct xy’
struct xy(){
^
user.cpp: At global scope:
user.cpp:15:11: error: elements of array ‘xy A [15000]’ have incomplete type
xy A[15000];
^
user.cpp:15:11: error: storage size of ‘A’ isn’t known
user.cpp: In function ‘int main()’:
user.cpp:19:2: error: ‘fin’ was not declared in this scope
fin>>N;
^
user.cpp:21:8: error: expected ‘)’ before ‘;’ token
sort(A;A+N;comp);
^
user.cpp:21:17: error: expected ‘;’ before ‘)’ token
sort(A;A+N;comp);
^
user.cpp:21:18: warning: statement is a reference, not call, to function ‘comp’ [-Waddress]
sort(A;A+N;comp);
^
user.cpp:21:18: warning: statement has no effect [-Wunused-value]
user.cpp:26:2: error: ‘fout’ was not declared in this scope
fout<<rs;
^
user.cpp:27:16: error: ‘system’ was not declared in this scope
system("pause");
^
user.cpp:28:9: error: ‘_getch’ was not declared in this scope
_getch();
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !