Pagini recente » Borderou de evaluare (job #652364) | Borderou de evaluare (job #2557276) | Borderou de evaluare (job #2682568) | Borderou de evaluare (job #1022686) | Borderou de evaluare (job #2360844)
Borderou de evaluare (job #2360844)
Raport evaluator
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){char* v[]={"Robert Tarjan","Leslie Valiant","Alexander Razborov","Avi Wigderson","Peter Shor","Madhu Sudan","Jon Kleinberg","Daniel Spielman","Subhash Khot"};std::fstream("random.in")>>a;std::ofstream("random.out")<<v[a/4-495];}
^
main.cpp:2:1: warning: 'int main(int)' takes only zero or two arguments [-Wmain]
main(int a){char* v[]={"Robert Tarjan","Leslie Valiant","Alexander Razborov","Avi Wigderson","Peter Shor","Madhu Sudan","Jon Kleinberg","Daniel Spielman","Subhash Khot"};std::fstream("random.in")>>a;std::ofstream("random.out")<<v[a/4-495];}
^~~~
main.cpp: In function 'int main(int)':
main.cpp:2:169: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
main(int a){char* v[]={"Robert Tarjan","Leslie Valiant","Alexander Razborov","Avi Wigderson","Peter Shor","Madhu Sudan","Jon Kleinberg","Daniel Spielman","Subhash Khot"};std::fstream("random.in")>>a;std::ofstream("random.out")<<v[a/4-495];}
^
main.cpp:2:169: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
main.cpp:2:169: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
main.cpp:2:169: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
main.cpp:2:169: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
main.cpp:2:169: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
main.cpp:2:169: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
main.cpp:2:169: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
main.cpp:2:169: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 2ms | 131kb | OK | 10 |
2 | 2ms | 131kb | OK | 10 |
3 | 2ms | 131kb | OK | 10 |
4 | 2ms | 131kb | OK | 10 |
5 | 2ms | 131kb | OK | 10 |
6 | 2ms | 131kb | OK | 10 |
7 | 2ms | 131kb | OK | 10 |
8 | 2ms | 131kb | OK | 10 |
9 | 2ms | 131kb | OK | 10 |
10 | 2ms | 131kb | OK | 10 |
Punctaj total | 100 |