Borderou de evaluare (job #2360887)
Utilizator | Data | 2 martie 2019 11:11:10 | |
---|---|---|---|
Problema | Random | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:1:2: warning: #import is a deprecated GCC extension [-Wdeprecated]
#import<fstream>
^~~~~~
main.cpp:2:11: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
main(int a){std::fstream("random.in")>>a;std::ofstream("random.out")<<(char*){"Robert Tarjan","Leslie Valiant","Alexander Razborov","Avi Wigderson","Peter Shor","Madhu Sudan","Jon Kleinberg","Daniel Spielman","Subhash Khot"}[a/4-495];}
^
main.cpp:2:1: warning: 'int main(int)' takes only zero or two arguments [-Wmain]
main(int a){std::fstream("random.in")>>a;std::ofstream("random.out")<<(char*){"Robert Tarjan","Leslie Valiant","Alexander Razborov","Avi Wigderson","Peter Shor","Madhu Sudan","Jon Kleinberg","Daniel Spielman","Subhash Khot"}[a/4-495];}
^~~~
main.cpp: In function 'int main(int)':
main.cpp:2:224: error: too many initializers for 'char*'
main(int a){std::fstream("random.in")>>a;std::ofstream("random.out")<<(char*){"Robert Tarjan","Leslie Valiant","Alexander Razborov","Avi Wigderson","Peter Shor","Madhu Sudan","Jon Kleinberg","Daniel Spielman","Subhash Khot"}[a/4-495];}
^
main.cpp:2:224: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !