Borderou de evaluare (job #2517487)
Utilizator | Data | 3 ianuarie 2020 17:24:14 | |
---|---|---|---|
Problema | Concert2 | Status | done |
Runda | Arhiva Monthly | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:21:24: error: 'up' was not declared in this scope
if(up[j] == k1)continue;
^~
main.cpp:31:24: error: 'down' was not declared in this scope
if(down[j] == k2)continue;
^~~~
main.cpp:15:9: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
for(int i = 2 ; i<= N ; ++i )
^~~
main.cpp:40:13: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
for(int i = 1 ; i<= N ; ++i )
^~~
main.cpp:8:46: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("concert2.in" , "r" , stdin );
^
main.cpp:9:48: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("concert2.out" , "w" , stdout );
^
main.cpp:10:42: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d%d" , &N , &k1 , &k2 );
^
main.cpp:12:32: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d" , &v[i]);
^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !