| Task: | Rotations |
| Sender: | TuomoPera |
| Submission time: | 2020-09-26 13:48:11 +0300 |
| Language: | C++ (C++11) |
| Status: | READY |
| Result: | RUNTIME ERROR |
| test | verdict | time | |
|---|---|---|---|
| #1 | RUNTIME ERROR | 0.01 s | details |
| #2 | RUNTIME ERROR | 0.01 s | details |
| #3 | RUNTIME ERROR | 0.01 s | details |
| #4 | RUNTIME ERROR | 0.01 s | details |
| #5 | RUNTIME ERROR | 0.01 s | details |
| #6 | RUNTIME ERROR | 0.01 s | details |
| #7 | RUNTIME ERROR | 0.01 s | details |
| #8 | RUNTIME ERROR | 0.01 s | details |
| #9 | RUNTIME ERROR | 0.01 s | details |
| #10 | RUNTIME ERROR | 0.01 s | details |
| #11 | RUNTIME ERROR | 0.01 s | details |
| #12 | RUNTIME ERROR | 0.01 s | details |
Compiler report
input/code.cpp: In function 'int main()':
input/code.cpp:13:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = 0; i < s.size() - 1; i++) {
~~^~~~~~~~~~~~~~
input/code.cpp:10:9: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("cases.txt", "r", stdin);
~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~Code
#include <iostream>
#include <string>
#include <vector>
#include <algorithm>
using namespace std;
string s;
int main() {
freopen("cases.txt", "r", stdin);
cin >> s;
cout << s[s.size() - 1];
for (int i = 0; i < s.size() - 1; i++) {
cout << s[i];
}
return 0;
}