Submission #3818820


Source Code Expand

#include<iostream>
#include<cmath>
#include<cstdio>
#include<string>
using namespace std;
int main() {
    int a;
    char b[4];
    cin >> a >> b;
    printf("%d", 2 * (a * (int)pow(10, strlen(b)) + atoi(b) ));
    return 0;
}

Submission Info

Submission Time
Task B - 足し算
User tac_
Language C++14 (GCC 5.4.1)
Score 0
Code Size 242 Byte
Status CE

Compile Error

./Main.cpp: In function ‘int main()’:
./Main.cpp:10:48: error: ‘strlen’ was not declared in this scope
     printf("%d", 2 * (a * (int)pow(10, strlen(b)) + atoi(b) ));
                                                ^