Borderou de evaluare (job #2435921)
Utilizator | Data | 4 iulie 2019 14:18:22 | |
---|---|---|---|
Problema | Supersenzor | Status | done |
Runda | Junior Challenge 2019 Runda 2 | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:49:59: error: expected ';' before numeric constant
for (int fi = a[i] + 100; fi >= k 0 && fi >= a[i] - 100; fi--)
^
main.cpp:49:61: warning: for increment expression has no effect [-Wunused-value]
for (int fi = a[i] + 100; fi >= k 0 && fi >= a[i] - 100; fi--)
~~^~~~~~~~~~~~~~~~~~~
main.cpp:49:80: error: expected ')' before ';' token
for (int fi = a[i] + 100; fi >= k 0 && fi >= a[i] - 100; fi--)
^
main.cpp:49:25: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
for (int fi = a[i] + 100; fi >= k 0 && fi >= a[i] - 100; fi--)
^~~
main.cpp:49:82: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
for (int fi = a[i] + 100; fi >= k 0 && fi >= a[i] - 100; fi--)
^~
main.cpp:49:82: error: 'fi' was not declared in this scope
main.cpp:50:59: error: 'sc' was not declared in this scope
for (int sc = a[j] + 100; sc >=k && sc >= a[j] - 100; sc--)
^~
main.cpp:45:13: warning: unused variable 'nax' [-Wunused-variable]
int nax = 100;
^~~
main.cpp:38:47: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen ("supersenzor.in", "r", stdin);
^
main.cpp:39:49: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen ("supersenzor.out", "w", stdout);
^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !