Submission #195636

#TimeUsernameProblemLanguageResultExecution timeMemory
195636juanmartinez111Crayfish scrivener (IOI12_scrivener)C++14
34 / 100
250 ms262148 KiB
#include<bits/stdc++.h> using namespace std; vector<string>posicion; string pal="",x; void Init() { } void TypeLetter(char L) { if(posicion.empty()){ x=L; posicion.push_back(x); } else { x=posicion.back(); x+=L; posicion.push_back(x); } } void UndoCommands(int U) { if(posicion.size()-1-U>=0 and posicion.size()-1-U<posicion.size()){ x=posicion[posicion.size()-1-U]; posicion.push_back(x); } } char GetLetter(int P) { if(posicion.size()){ return posicion.back()[P]; } }

Compilation message (stderr)

scrivener.cpp: In function 'char GetLetter(int)':
scrivener.cpp:34:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...