Borderou de evaluare (job #2244354)
Utilizator | Data | 22 septembrie 2018 17:17:15 | |
---|---|---|---|
Problema | Panouri | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:21:6: warning: ISO C++ forbids declaration of ‘main’ with no type [-Wreturn-type]
main()
^
user.cpp: In function ‘int main()’:
user.cpp:23:2: error: ‘IOS’ was not declared in this scope
IOS
^~~
user.cpp:26:9: error: ‘n’ was not declared in this scope
cin >> n >> k;
^
user.cpp:26:14: error: ‘k’ was not declared in this scope
cin >> n >> k;
^
user.cpp:58:67: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses]
while(panou[v[j]] == 0 || (panou[v[j]] == 1 && cnt[v[j]] >= 2) && j < i)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !