Borderou de evaluare (job #2063305)
Utilizator | Data | 11 noiembrie 2017 10:39:20 | |
---|---|---|---|
Problema | Livada | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘int main()’:
user.cpp:18:15: error: invalid conversion from ‘long unsigned int*’ to ‘long unsigned int’ [-fpermissive]
{ cand=a[0]; nr=1;
^
user.cpp:20:19: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
if (a[i]==cand) nr++;
^
user.cpp:22:30: error: invalid conversion from ‘long unsigned int*’ to ‘long unsigned int’ [-fpermissive]
if (!nr) { cand=a[i+1]; nr=1; i++; }
^
user.cpp:27:23: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
if (a[i]==cand) nr++;
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !