Borderou de evaluare (job #2095222)
Utilizator | Data | 27 decembrie 2017 11:26:21 | |
---|---|---|---|
Problema | Sticle | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:2:14: warning: ISO C++ forbids declaration of ‘main’ with no type [-Wreturn-type]
int T,N;main(){std::ifstream i("sticle.in");std::ofstream o("sticle.out")i>>T;for(;T--;)i>>N,o<<((int)log2(N)+!!(~-N&N))<<"\n";}
^
user.cpp: In function ‘int main()’:
user.cpp:2:74: error: expected ‘,’ or ‘;’ before ‘i’
int T,N;main(){std::ifstream i("sticle.in");std::ofstream o("sticle.out")i>>T;for(;T--;)i>>N,o<<((int)log2(N)+!!(~-N&N))<<"\n";}
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !