Borderou de evaluare (job #1243858)
Utilizator | Data | 16 octombrie 2014 15:27:50 | |
---|---|---|---|
Problema | Secventa 5 | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘long long int nrsec(long int)’:
user.cpp:62:11: error: ‘n’ was not declared in this scope
while(R<=n)
^
user.cpp: In function ‘int main()’:
user.cpp:80:28: warning: format ‘%u’ expects argument of type ‘unsigned int*’, but argument 2 has type ‘long unsigned int*’ [-Wformat=]
scanf("%ul%ul%ul",&n,&l,&u);
^
user.cpp:80:28: warning: format ‘%u’ expects argument of type ‘unsigned int*’, but argument 3 has type ‘long unsigned int*’ [-Wformat=]
user.cpp:80:28: warning: format ‘%u’ expects argument of type ‘unsigned int*’, but argument 4 has type ‘long unsigned int*’ [-Wformat=]
user.cpp:82:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(long i=1;i<=n;i++)
^
user.cpp:83:20: warning: format ‘%u’ expects argument of type ‘unsigned int*’, but argument 2 has type ‘long unsigned int*’ [-Wformat=]
scanf("%ul",&v[i]);
^
user.cpp:77:31: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("secv5.in","r",stdin);
^
user.cpp:78:33: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("secv5.out","w",stdout);
^
user.cpp:80:29: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%ul%ul%ul",&n,&l,&u);
^
user.cpp:83:21: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%ul",&v[i]);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !