Borderou de evaluare (job #2042270)
Utilizator | Data | 18 octombrie 2017 11:54:16 | |
---|---|---|---|
Problema | Editor | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘char top()’:
user.cpp:13:20: error: invalid types ‘char [60010][char()]’ for array subscript
return v.st[top];
^
user.cpp: In function ‘void pop()’:
user.cpp:19:12: error: ISO C++ forbids decrementing a pointer of type ‘char (*)()’ [-fpermissive]
top--;
^
user.cpp:19:12: error: lvalue required as decrement operand
user.cpp: In function ‘int popu(char)’:
user.cpp:25:1: warning: no return statement in function returning non-void [-Wreturn-type]
}
^
user.cpp: In function ‘void push(char)’:
user.cpp:29:12: error: ISO C++ forbids incrementing a pointer of type ‘char (*)()’ [-fpermissive]
v.st[++top] = x;
^
user.cpp:29:12: error: lvalue required as increment operand
user.cpp: In function ‘int ver()’:
user.cpp:37:1: error: expected primary-expression before ‘}’ token
}
^
user.cpp:37:1: error: expected ‘;’ before ‘}’ token
user.cpp:37:1: warning: no return statement in function returning non-void [-Wreturn-type]
user.cpp: In function ‘int main()’:
user.cpp:41:5: error: ‘ifstream’ was not declared in this scope
ifstream f("editor.in");
^
user.cpp:41:14: error: expected ‘;’ before ‘f’
ifstream f("editor.in");
^
user.cpp:42:5: error: ‘ofstream’ was not declared in this scope
ofstream g("editor.out");
^
user.cpp:42:14: error: expected ‘;’ before ‘g’
ofstream g("editor.out");
^
user.cpp:44:5: error: ‘f’ was not declared in this scope
f>>T;
^
user.cpp:44:8: error: ‘T’ was not declared in this scope
f>>T;
^
user.cpp:48:19: error: ‘s’ was not declared in this scope
f.getline(s,60010);
^
user.cpp:49:25: error: ‘strlen’ was not declared in this scope
int n = strlen(s);
^
user.cpp:50:13: error: ‘i’ was not declared in this scope
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !