Submission #1986652


Source Code Expand

#include <iostream>//cin/cout/wcin/wcout/left/right/internal/dec/hex/oct/fixed/scientific

using namespace std;

int main(void) {
    string s;
    cin >> s;
    cout << (s == "a") ? "-1" : "a" << endl;

    return 0;
}

Submission Info

Submission Time
Task B - 辞書式順序
User L3Sota
Language C++14 (GCC 5.4.1)
Score 0
Code Size 231 Byte
Status CE

Compile Error

./Main.cpp: In function ‘int main()’:
./Main.cpp:8:40: error: invalid operands of types ‘const char [2]’ and ‘<unresolved overloaded function type>’ to binary ‘operator<<’
     cout << (s == "a") ? "-1" : "a" << endl;
                                        ^