Borderou de evaluare (job #1247850)
Utilizator | Data | 24 octombrie 2014 10:49:49 | |
---|---|---|---|
Problema | Panouri | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:10:29: error: expected ‘,’ or ‘...’ before ‘*’ token
bool contains(int val, int v*)
^
user.cpp: In function ‘bool contains(int, int)’:
user.cpp:13:22: error: invalid types ‘int[int]’ for array subscript
if(val == v[t]) return true;
^
user.cpp: At global scope:
user.cpp:16:21: error: expected ‘,’ or ‘...’ before ‘*’ token
void findFirst(int v*, int tip*)
^
user.cpp: In function ‘void findFirst(int)’:
user.cpp:19:24: error: invalid types ‘int[int]’ for array subscript
if(contains(v[i], tip))
^
user.cpp:19:27: error: ‘tip’ was not declared in this scope
if(contains(v[i], tip))
^
user.cpp: At global scope:
user.cpp:26:20: error: expected ‘,’ or ‘...’ before ‘*’ token
void findLast(int v*, int tip*)
^
user.cpp: In function ‘void findLast(int)’:
user.cpp:29:24: error: invalid types ‘int[int]’ for array subscript
if(contains(v[i], tip))
^
user.cpp:29:27: error: ‘tip’ was not declared in this scope
if(contains(v[i], tip))
^
user.cpp: In function ‘int main()’:
user.cpp:42:40: error: invalid types ‘int[int]’ for array subscript
for(int i = 0; i < t; i++) f >> t[i];
^
user.cpp:43:15: error: too few arguments to function ‘void findFirst(int)’
findFirst();
^
user.cpp:16:6: note: declared here
void findFirst(int v*, int tip*)
^
user.cpp:44:14: error: too few arguments to function ‘void findLast(int)’
findLast();
^
user.cpp:26:6: note: declared here
void findLast(int v*, int tip*)
^
user.cpp:40:9: warning: unused variable ‘tip’ [-Wunused-variable]
int tip[t];
^
user.cpp: In function ‘bool contains(int, int)’:
user.cpp:14:1: warning: control reaches end of non-void function [-Wreturn-type]
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !