Submission #44347622
Source Code Expand
Copy
#include <stdio.h>#include <math.h>int main(void) {int a, b, c;char s[1024];if (scanf("%d%d%d%1023s", &a, &b, &c, s) != 4) return 1;printf("%d %s\n", (int)(sqrt((a + b + c) * (c + b + a)) + 0.1), s);return 0;}
#include <stdio.h> #include <math.h> int main(void) { int a, b, c; char s[1024]; if (scanf("%d%d%d%1023s", &a, &b, &c, s) != 4) return 1; printf("%d %s\n", (int)(sqrt((a + b + c) * (c + b + a)) + 0.1), s); return 0; }
Submission Info
Submission Time | |
---|---|
Task | PracticeA - Welcome to AtCoder |
User | mikecat |
Language | C (gcc 12.2.0) |
Score | 0 |
Code Size | 234 Byte |
Status | CE |
Compile Error
/usr/bin/ld: /tmp/cc8VpyJz.o: in function `main': Main.c:(.text.startup+0x8b): undefined reference to `sqrt' collect2: error: ld returned 1 exit status