Borderou de evaluare (job #2223431)
Utilizator | Data | 20 iulie 2018 11:48:07 | |
---|---|---|---|
Problema | Stiva3 | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘bool solve()’:
user.cpp:22:28: error: ‘memset’ was not declared in this scope
memset(viz, 0, sizeof(viz));
^
user.cpp:44:3: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
if(viz[a[i - 1] - mi + 1] - viz[a[i] - mi] < a[i - 1] - a[i] + 1)
^~
user.cpp:46:4: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the ‘if’
viz[a[i] - mi + 1] = viz[a[i] - mi] + 1;
^~~
user.cpp: At global scope:
user.cpp:51:6: warning: ISO C++ forbids declaration of ‘main’ with no type [-Wreturn-type]
main()
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !