Borderou de evaluare (job #1523933)
Utilizator | Data | 13 noiembrie 2015 14:48:23 | |
---|---|---|---|
Problema | Tamplar | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:5:27: error: ‘::main’ must return ‘int’
void main(int v[], int val)
^
user.cpp:5:6: warning: first argument of ‘int main(int*, int)’ should be ‘int’ [-Wmain]
void main(int v[], int val)
^
user.cpp:5:6: warning: second argument of ‘int main(int*, int)’ should be ‘char **’ [-Wmain]
user.cpp: In function ‘int main()’:
user.cpp:14:10: error: declaration of C function ‘int main()’ conflicts with
int main()
^
user.cpp:5:6: error: previous declaration ‘int main(int*, int)’ here
void main(int v[], int val)
^
user.cpp:19:30: error: ‘prod’ was not declared in this scope
for(i=2;i<n;i++) prod(a,i);
^
user.cpp:15:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
{ freopen("tamplar.in","r",stdin);
^
user.cpp:16:38: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("tamplar.out","w",stdout);
^
user.cpp:18:19: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&n);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !