Borderou de evaluare (job #1598123)
Utilizator | Data | 12 februarie 2016 17:14:38 | |
---|---|---|---|
Problema | Triunghi5 | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘int adaug_incep(int, int, int)’:
user.cpp:36:17: error: ‘sur1’ was not declared in this scope
y = sur1[incep+1];
^
user.cpp:44:52: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long long int’ [-Wformat=]
printf("ll%d %lld %lld",y,x,sir1[incep]);
^
user.cpp:64:1: warning: no return statement in function returning non-void [-Wreturn-type]
}
^
user.cpp: In function ‘void adaug_final(int)’:
user.cpp:71:15: warning: unused variable ‘numar2’ [-Wunused-variable]
long long numar2 = 0;
^
user.cpp: In function ‘int main()’:
user.cpp:88:38: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("triunghi5.in","r",stdin);
^
user.cpp:89:40: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("triunghi5.out","w",stdout);
^
user.cpp:90:33: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d %d\n",&v,&n,&k);
^
user.cpp:96:30: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%lld ",&l);
^
user.cpp:106:36: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%lld ",&sir1[i]);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !